Re: [PATCH] ecryptfs: avoid heap allocation for inode size write

From: Tyler Hicks

Date: Tue Jul 21 2026 - 03:29:12 EST


On Tue, 30 Jun 2026 11:08:00 +0800, Yichong Chen wrote:
> ecryptfs_write_inode_size_to_header() allocates an 8-byte buffer only
> to write the encoded inode size to the lower file header.
>
> Use a stack __be64 value instead. This avoids an unnecessary allocation
> and removes a failure path without changing the data written to disk.
>
>
> [...]

Thank you! This has been applied to the next branch of the tyhicks/ecryptfs.git tree.

You can find a direct link below but please be aware that the commit hash is
unstable and, therefore, the URL may not be valid in the future.

[1/1] ecryptfs: avoid heap allocation for inode size write
https://git.kernel.org/tyhicks/ecryptfs/c/8fafd7c86fc35bd11eb34d4ab2d6282b3354f30f

Tyler