Re: cleanup truncate handling in ecryptfs v3

Tyler Hicks <[email protected]> Wed, 8 Apr 2026 19:08:18 -0500
Newsgroups org.kernel.vger.ecryptfs,org.kernel.vger.linux-fsdevel
Message-ID <177569313058.651226.4527748422361374416.b4-ty@b4>
On Wed, 08 Apr 2026 08:06:35 +0200, Christoph Hellwig wrote:
> this series cleans up the truncate handling in ecryptfs.  I did
> it as preparation for some changes into size changing truncate
> VFS interfaces I'm looking into in the moment.  The changes have
> passed the regression test suite in the userspace ecryptfs
> repository and against the ecryptfs next branch.
> 
> Changes since v2:
>  - change the calling convention to only pass the upper ia to
>    __ecryptfs_truncate
> 
> [...]

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/7] ecryptfs: cleanup ecryptfs_setattr
      https://git.kernel.org/tyhicks/ecryptfs/c/8f61364322a07ff6c35691b575d6fbda8e71e29d
[2/7] ecryptfs: streamline truncate_upper
      https://git.kernel.org/tyhicks/ecryptfs/c/b109187378615e683d8d8a24f4bc246bd3fb7b26
[3/7] ecryptfs: use ZERO_PAGE instead of allocating zeroed memory in truncate_upper
      https://git.kernel.org/tyhicks/ecryptfs/c/b19fe74e0fc970cef90bb78ddb473ae0356bce94
[4/7] ecryptfs: combine the two ATTR_SIZE blocks in ecryptfs_setattr
      https://git.kernel.org/tyhicks/ecryptfs/c/472dea1d2235439c0c25850d53deffc517cc8c61
[5/7] ecryptfs: merge ecryptfs_inode_newsize_ok into truncate_upper
      https://git.kernel.org/tyhicks/ecryptfs/c/081447ecfc255cb63b6e392cd01d9f684d4df5b8
[6/7] ecryptfs: factor out a ecryptfs_iattr_to_lower helper
      https://git.kernel.org/tyhicks/ecryptfs/c/5d1f0e8cd9482ddb5318f765f7ca508ce707cf83
[7/7] ecryptfs: keep the lower iattr contained in truncate_upper
      https://git.kernel.org/tyhicks/ecryptfs/c/e836ec1819b0cc50e0b45a53b0bdce6c596f0207

Tyler