diff options
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index dd50e30b6dcf..b42e71bb9e67 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -1272,12 +1272,13 @@ static void unlock_fs(struct mapped_device *md) | |||
1272 | * dm_bind_table, dm_suspend must be called to flush any in | 1272 | * dm_bind_table, dm_suspend must be called to flush any in |
1273 | * flight bios and ensure that any further io gets deferred. | 1273 | * flight bios and ensure that any further io gets deferred. |
1274 | */ | 1274 | */ |
1275 | int dm_suspend(struct mapped_device *md, int do_lockfs) | 1275 | int dm_suspend(struct mapped_device *md, unsigned suspend_flags) |
1276 | { | 1276 | { |
1277 | struct dm_table *map = NULL; | 1277 | struct dm_table *map = NULL; |
1278 | DECLARE_WAITQUEUE(wait, current); | 1278 | DECLARE_WAITQUEUE(wait, current); |
1279 | struct bio *def; | 1279 | struct bio *def; |
1280 | int r = -EINVAL; | 1280 | int r = -EINVAL; |
1281 | int do_lockfs = suspend_flags & DM_SUSPEND_LOCKFS_FLAG ? 1 : 0; | ||
1281 | 1282 | ||
1282 | down(&md->suspend_lock); | 1283 | down(&md->suspend_lock); |
1283 | 1284 | ||