Commit 120c6bd
ext4: drop extent cache when splitting extent fails
commit 79b592e 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>1 parent d8ee559 commit 120c6bd
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3265 | 3265 | | |
3266 | 3266 | | |
3267 | 3267 | | |
3268 | | - | |
| 3268 | + | |
3269 | 3269 | | |
3270 | 3270 | | |
3271 | 3271 | | |
| |||
3279 | 3279 | | |
3280 | 3280 | | |
3281 | 3281 | | |
3282 | | - | |
| 3282 | + | |
3283 | 3283 | | |
3284 | 3284 | | |
3285 | 3285 | | |
| |||
3356 | 3356 | | |
3357 | 3357 | | |
3358 | 3358 | | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
3359 | 3363 | | |
3360 | 3364 | | |
3361 | 3365 | | |
| |||
0 commit comments