]> git.ipfire.org Git - thirdparty/linux.git/commit
ext4: cleanup zeroout in ext4_split_extent_at()
authorZhang Yi <yi.zhang@huawei.com>
Sat, 29 Nov 2025 10:32:40 +0000 (18:32 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Jan 2026 16:23:33 +0000 (11:23 -0500)
commitc0329d0288dee6be26e5eca71fdc520c1c5e6acf
tree027a4762e0ace4ed5db90caf9b3b50626513fa9f
parent79b592e8f1b435796cbc2722190368e3e8ffd7a1
ext4: cleanup zeroout in ext4_split_extent_at()

zero_ex is a temporary variable used only for writing zeros and
inserting extent status entry, it will not be directly inserted into the
tree. Therefore, it can be assigned values from the target extent in
various scenarios, eliminating the need to explicitly assign values to
each variable individually.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Message-ID: <20251129103247.686136-9-yi.zhang@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c