diff options
| author | Xuewen Wang <wangxuewen@kylinos.cn> | 2026-09-24 09:45:12 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 18:41:47 +0900 |
| commit | 4d179eeb91a0ffd1e9c86484e2febf4dcca1137f (patch) | |
| tree | 9dadc0feaa8cfef2c11629cf5a1d6eb6002426d9 /scripts/Makefile.thinlto | |
| parent | 3f5836568741bd761b04b6d4512ff7d924a4ef3e (diff) | |
| download | linux-4d179eeb91a0ffd1e9c86484e2febf4dcca1137f.tar.gz linux-4d179eeb91a0ffd1e9c86484e2febf4dcca1137f.zip | |
ntfs: fix rollback after MFT bitmap run coalescing
After the direct allocation attempt drops lcnbmp_lock, a concurrent free
can let ntfs_cluster_alloc() return the adjacent cluster. The merged
runlist then extends the existing last run, but rollback assumes a new
run was added. A later metadata failure removes the old mapping and
frees its first cluster.
Record whether the allocated cluster is adjacent before merging the
runlists. On rollback, shorten a coalesced run by one cluster and free
only that cluster; remove the new run for a non-adjacent allocation.
Suggested-by: Baolin Liu <liubaolin@kylinos.cn>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Xuewen Wang <wangxuewen@kylinos.cn>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
