diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-04-03 16:54:10 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-04-04 12:12:39 -0400 |
commit | 5bd5e8d891c1fd2d966a7e2c26f0452d22410683 (patch) | |
tree | a26fa9657db6b9f2faa6805693db282f7bfa052c /drivers/md/dm-log-writes.c | |
parent | 971888c46993f871f20d02d1fe43486a924fad11 (diff) |
dm: remove fmode_t argument from .prepare_ioctl hook
Use the fmode_t that is passed to dm_blk_ioctl() rather than
inconsistently (varies across targets) drop it on the floor by
overriding it with the fmode_t stored in 'struct dm_dev'.
All the persistent reservation functions weren't using the fmode_t they
got back from .prepare_ioctl so remove them.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-log-writes.c')
-rw-r--r-- | drivers/md/dm-log-writes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-log-writes.c b/drivers/md/dm-log-writes.c index fefe6719a64d..9de072b7782a 100644 --- a/drivers/md/dm-log-writes.c +++ b/drivers/md/dm-log-writes.c | |||
@@ -864,7 +864,7 @@ static void log_writes_status(struct dm_target *ti, status_type_t type, | |||
864 | } | 864 | } |
865 | 865 | ||
866 | static int log_writes_prepare_ioctl(struct dm_target *ti, | 866 | static int log_writes_prepare_ioctl(struct dm_target *ti, |
867 | struct block_device **bdev, fmode_t *mode) | 867 | struct block_device **bdev) |
868 | { | 868 | { |
869 | struct log_writes_c *lc = ti->private; | 869 | struct log_writes_c *lc = ti->private; |
870 | struct dm_dev *dev = lc->dev; | 870 | struct dm_dev *dev = lc->dev; |