diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-31 14:19:11 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-31 16:00:23 +0200 |
commit | 0d997f1de89970bff4be1b6f0142c0bd036c3ee8 (patch) | |
tree | 3415fe7509bb437f46f5927f4086454b3b118d71 /block/fops.c | |
parent | blk-throttle: consider 'carryover_ios/bytes' in throtl_trim_slice() (diff) | |
download | linux-0d997f1de89970bff4be1b6f0142c0bd036c3ee8.tar.xz linux-0d997f1de89970bff4be1b6f0142c0bd036c3ee8.zip |
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>
Diffstat (limited to 'block/fops.c')
-rw-r--r-- | block/fops.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/block/fops.c b/block/fops.c index a24a624d3bf7..acff3d5d22d4 100644 --- a/block/fops.c +++ b/block/fops.c @@ -671,10 +671,6 @@ static ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from) iov_iter_truncate(from, size); } - ret = file_remove_privs(file); - if (ret) - return ret; - ret = file_update_time(file); if (ret) return ret; |