From 0d997f1de89970bff4be1b6f0142c0bd036c3ee8 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 31 Aug 2023 14:19:11 +0200 Subject: [PATCH] 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 Reviewed-by: Johannes Thumshirn Link: https://lore.kernel.org/r/20230831121911.280155-1-hch@lst.de Signed-off-by: Jens Axboe --- block/fops.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/block/fops.c b/block/fops.c index a24a624..acff3d5 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; -- 2.7.4