]> git.ipfire.org Git - thirdparty/linux.git/commit
ext4: drop extent cache when splitting extent fails
authorZhang Yi <yi.zhang@huawei.com>
Sat, 29 Nov 2025 10:32:39 +0000 (18:32 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Jan 2026 16:23:33 +0000 (11:23 -0500)
commit79b592e8f1b435796cbc2722190368e3e8ffd7a1
tree03038f7c9723f7f3a21b461072c7e6bac3bb6150
parent6d882ea3b0931b43530d44149b79fcd4ffc13030
ext4: drop extent cache when splitting extent fails

When the split extent fails, we might leave some extents still being
processed and return an error directly, which will result in stale
extent entries remaining in the extent status tree. So drop all of the
remaining potentially stale extents if the splitting fails.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Cc: stable@kernel.org
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Message-ID: <20251129103247.686136-8-yi.zhang@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c