block: remove the call to file_remove_privs in blkdev_write_iter
authorChristoph Hellwig <hch@lst.de>
Thu, 31 Aug 2023 12:19:11 +0000 (14:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Aug 2023 14:00:23 +0000 (08:00 -0600)
commit0d997f1de89970bff4be1b6f0142c0bd036c3ee8
tree3415fe7509bb437f46f5927f4086454b3b118d71
parenteead0056648cef49d7b15c07ae612fa217083165
block: remove the call to file_remove_privs in blkdev_write_iter

file_remove_privs instantly returns 0 when not called for regular files,
so don't bother.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20230831121911.280155-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c