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>
Showing
- drivers/md/dm-flakey.c 1 addition, 2 deletionsdrivers/md/dm-flakey.c
- drivers/md/dm-linear.c 1 addition, 2 deletionsdrivers/md/dm-linear.c
- drivers/md/dm-log-writes.c 1 addition, 1 deletiondrivers/md/dm-log-writes.c
- drivers/md/dm-mpath.c 1 addition, 2 deletionsdrivers/md/dm-mpath.c
- drivers/md/dm-switch.c 1 addition, 3 deletionsdrivers/md/dm-switch.c
- drivers/md/dm-verity-target.c 1 addition, 2 deletionsdrivers/md/dm-verity-target.c
- drivers/md/dm-zoned-target.c 1 addition, 2 deletionsdrivers/md/dm-zoned-target.c
- drivers/md/dm.c 7 additions, 11 deletionsdrivers/md/dm.c
- include/linux/device-mapper.h 1 addition, 2 deletionsinclude/linux/device-mapper.h
Please register or sign in to comment