diff options
| author | Xuewen Wang <wangxuewen@kylinos.cn> | 2026-09-24 09:45:14 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 18:41:48 +0900 |
| commit | 109c9b0f67f97a34b19491fa82242a2130114903 (patch) | |
| tree | 27b60b57cdbea6a94a0e30f2605c72378f6d63d2 /scripts/Makefile.thinlto | |
| parent | 0c3f2944e9060c31a221f32906267b827659b0c7 (diff) | |
| download | linux-109c9b0f67f97a34b19491fa82242a2130114903.tar.gz linux-109c9b0f67f97a34b19491fa82242a2130114903.zip | |
ntfs: account for direct MFT bitmap cluster allocation
The MFT bitmap extension fast path sets $Bitmap directly, bypassing
ntfs_cluster_alloc() and its free_clusters and lcn_empty_bits_per_page
updates. Successful extensions overreport free space, and rollback adds
back counts that were never deducted.
Update both counts under lcnbmp_lock and the bitmap folio lock. Require
a nonzero page count and space remaining after delayed-allocation
reservations; otherwise use the regular allocator. The page check also
prevents underflow when the initial scan recorded zero after a read error.
Fixes: 6251f0b0de7d ("ntfs: update super block operations")
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
