]> git.ipfire.org Git - thirdparty/linux.git/commit
ecryptfs: combine the two ATTR_SIZE blocks in ecryptfs_setattr
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Apr 2026 06:06:39 +0000 (08:06 +0200)
committerTyler Hicks <code@tyhicks.com>
Wed, 8 Apr 2026 23:54:03 +0000 (18:54 -0500)
commit472dea1d2235439c0c25850d53deffc517cc8c61
tree0f8aced61b1d277174e4e936907f1143445dc8b7
parentb19fe74e0fc970cef90bb78ddb473ae0356bce94
ecryptfs: combine the two ATTR_SIZE blocks in ecryptfs_setattr

Simplify the logic in ecryptfs_setattr by combining the two ATTR_SIZE
blocks.  This initializes lower_ia before the size check, which is
obviously correct as the size check doesn't look at it.

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