Commit 0d997f1d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20230831121911.280155-1-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent eead0056
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment