]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: rename and extend ext4_block_truncate_page()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 27 Mar 2026 10:29:28 +0000 (18:29 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2026 01:57:51 +0000 (21:57 -0400)
commitbd099a0565fce5c771e1d0bfcefec26fb5b1c1b7
treeded5a67ee7269365bbefc6510dad075789babd5e
parent5447c8b9de7581ca7254d712652678cc460a18c2
ext4: rename and extend ext4_block_truncate_page()

Rename ext4_block_truncate_page() to ext4_block_zero_eof() and extend
its signature to accept an explicit 'end' offset instead of calculating
the block boundary. This helper function now can replace all cases
requiring zeroing of the partial EOF block, including the append
buffered write paths in ext4_*_write_end().

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260327102939.1095257-3-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inode.c