file_remove_privs instantly returns 0 when not called for regular files, so don't bother. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- block/fops.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/block/fops.c b/block/fops.c index a24a624d3bf71a..acff3d5d22d461 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.39.2