diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-ioctl.c | 4 | ||||
-rw-r--r-- | drivers/md/dm.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 6d7a3d0c8f88..cd6a184536a1 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -774,6 +774,8 @@ static int do_suspend(struct dm_ioctl *param) | |||
774 | 774 | ||
775 | if (param->flags & DM_SKIP_LOCKFS_FLAG) | 775 | if (param->flags & DM_SKIP_LOCKFS_FLAG) |
776 | suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG; | 776 | suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG; |
777 | if (param->flags & DM_NOFLUSH_FLAG) | ||
778 | suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG; | ||
777 | 779 | ||
778 | if (!dm_suspended(md)) | 780 | if (!dm_suspended(md)) |
779 | r = dm_suspend(md, suspend_flags); | 781 | r = dm_suspend(md, suspend_flags); |
@@ -815,6 +817,8 @@ static int do_resume(struct dm_ioctl *param) | |||
815 | /* Suspend if it isn't already suspended */ | 817 | /* Suspend if it isn't already suspended */ |
816 | if (param->flags & DM_SKIP_LOCKFS_FLAG) | 818 | if (param->flags & DM_SKIP_LOCKFS_FLAG) |
817 | suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG; | 819 | suspend_flags &= ~DM_SUSPEND_LOCKFS_FLAG; |
820 | if (param->flags & DM_NOFLUSH_FLAG) | ||
821 | suspend_flags |= DM_SUSPEND_NOFLUSH_FLAG; | ||
818 | if (!dm_suspended(md)) | 822 | if (!dm_suspended(md)) |
819 | dm_suspend(md, suspend_flags); | 823 | dm_suspend(md, suspend_flags); |
820 | 824 | ||
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index 293d5ce62a21..c307ca9a4c33 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h | |||
@@ -47,6 +47,7 @@ | |||
47 | * Suspend feature flags | 47 | * Suspend feature flags |
48 | */ | 48 | */ |
49 | #define DM_SUSPEND_LOCKFS_FLAG (1 << 0) | 49 | #define DM_SUSPEND_LOCKFS_FLAG (1 << 0) |
50 | #define DM_SUSPEND_NOFLUSH_FLAG (1 << 1) | ||
50 | 51 | ||
51 | /* | 52 | /* |
52 | * List of devices that a metadevice uses and should open/close. | 53 | * List of devices that a metadevice uses and should open/close. |