summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-08-31 15:19:11 +0300
committerJens Axboe <axboe@kernel.dk>2023-08-31 17:00:23 +0300
commit0d997f1de89970bff4be1b6f0142c0bd036c3ee8 (patch)
tree3415fe7509bb437f46f5927f4086454b3b118d71 /block
parenteead0056648cef49d7b15c07ae612fa217083165 (diff)
downloadlinux-0d997f1de89970bff4be1b6f0142c0bd036c3ee8.tar.xz
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')
-rw-r--r--block/fops.c4
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;