]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ecryptfs: use ZERO_PAGE instead of allocating zeroed memory in truncate_upper
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Apr 2026 06:06:38 +0000 (08:06 +0200)
committerTyler Hicks <code@tyhicks.com>
Wed, 8 Apr 2026 23:54:03 +0000 (18:54 -0500)
commitb19fe74e0fc970cef90bb78ddb473ae0356bce94
tree7fce1dd48514904eee11da7a810c29bfca73fd34
parentb109187378615e683d8d8a24f4bc246bd3fb7b26
ecryptfs: use ZERO_PAGE instead of allocating zeroed memory in truncate_upper

Use the existing pre-zeroed memory instead of allocating a new chunk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tyler Hicks <code@tyhicks.com>
fs/ecryptfs/inode.c