]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ce9a1028d15efae427900ba5acf21fdae7abd42
treea26fa9657db6b9f2faa6805693db282f7bfa052c
parentd1f32881d2382ad839a1da0925138fa879657b2f
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