]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2026 23:01:39 +0000 (15:01 -0800)
commit31bf37cf53ede8145e2bc62da803d4506da92975
tree22127b078536349726874bd41a27964e14f629fe
parenta1b962a821e7a52d48212ae269b45808b4411267
ext4: drop extent cache when splitting extent fails

commit 79b592e8f1b435796cbc2722190368e3e8ffd7a1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c