Skip to contentSkip to conversation

block: remove the call to file_remove_privs in blkdev_write_iter

PATCH Applied Christoph Hellwig 3 participants 3 messages Aug 31, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

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.

---
 block/fops.c | 4 ----
 1 file changed, 4 deletions(-)
block/fops.c +0 -4
index a24a624d3bf71a..acff3d5d22d461 100644
@@ -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
maintainer Applied
#2 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig

file_remove_privs instantly 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