dm: remove fmode_t argument from .prepare_ioctl hook
authorMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 20:54:10 +0000 (16:54 -0400)
committerMike Snitzer <snitzer@redhat.com>
Wed, 4 Apr 2018 16:12:39 +0000 (12:12 -0400)
commit5bd5e8d891c1fd2d966a7e2c26f0452d22410683
treea26fa9657db6b9f2faa6805693db282f7bfa052c
parent971888c46993f871f20d02d1fe43486a924fad11
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>
drivers/md/dm-flakey.c
drivers/md/dm-linear.c
drivers/md/dm-log-writes.c
drivers/md/dm-mpath.c
drivers/md/dm-switch.c
drivers/md/dm-verity-target.c
drivers/md/dm-zoned-target.c
drivers/md/dm.c
include/linux/device-mapper.h