summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorZhang Yi <yi.zhang@huawei.com>2026-10-09 18:30:03 +0800
committerTheodore Ts'o <tytso@mit.edu>2026-10-15 10:53:11 -0400
commitbbe1fc8a29c052237493cd8f56ef1d81f81865dc (patch)
treec23ed95f383d0d525947702b895a9e7e164d675b /scripts/Makefile.thinlto
parente9941268bacab2cf13cf40d115eb0d058c897cef (diff)
downloadlinux-bbe1fc8a29c052237493cd8f56ef1d81f81865dc.tar.gz
linux-bbe1fc8a29c052237493cd8f56ef1d81f81865dc.zip
ext4: factor out ext4_truncate_[up|down]()
Refactor ext4_setattr() by introducing two helper functions, ext4_truncate_up() and ext4_truncate_down(), to handle size changes. The current ATTR_SIZE processing consolidates checks for both shrinking and non-shrinking cases, leading to cluttered code. Separating the truncation paths improves readability. Signed-off-by: Zhang Yi <yi.zhang@huawei.com> Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com> Reviewed-by: Jan Kara <jack@suse.cz> Tested-by: syzbot@syzkaller.appspotmail.com Link: https://patch.msgid.link/20261009103033.2920530-3-yi.zhang@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions