Skip to content

Commit 0d997f1

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent eead005 commit 0d997f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

block/fops.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,10 +671,6 @@ static ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from)
671671
iov_iter_truncate(from, size);
672672
}
673673

674-
ret = file_remove_privs(file);
675-
if (ret)
676-
return ret;
677-
678674
ret = file_update_time(file);
679675
if (ret)
680676
return ret;

0 commit comments

Comments
 (0)