block: remove the call to file_remove_privs in blkdev_write_iter
PATCH 1/1 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 <[email protected]>
--- block/fops.c | 4 ---- 1 file changed, 4 deletions(-)
block/fops.c +0 -4
@@ -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;
Signature · 1 line
2.39.2
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>
Quoted 4 lines · Christoph Hellwig
file_remove_privsinstantly returns 0 when not called for regular files, so don't bother.
Applied, thanks!
[1/1] block: remove the call to file_remove_privs in blkdev_write_iter
(no commit info)
Best regards,
Signature · 1 line
Jens Axboe