diff options
| author | 2026-09-21 10:41:15 +0900 | |
|---|---|---|
| committer | 2026-10-20 18:41:34 +0900 | |
| commit | 055a8d19788f16d27f07e6ac40155460e3d227b3 (patch) | |
| tree | 0111f681ef9c947692d49d2c6aa732799b65f387 /scripts/Makefile.thinlto | |
| parent | ntfs: fix incorrect VCN units for index blocks in large clusters (diff) | |
ntfs: fix FITRIM bitmap indexing for large pages
The LCN bitmap has one bit per cluster, so a bitmap page represents
PAGE_SIZE * 8 clusters. ntfs_trim_fs() still used a 15-bit shift when
selecting the page. On arm64 with 16 KiB pages this selects the wrong
bitmap page and can test or discard the wrong clusters.
Compute bitmap indices from buf_clusters, use the page cluster base as
the bit-search origin, and keep the requested range as the clipping
boundary.
Fixes: 11ccc9107dc4 ("ntfs: update runlist handling and cluster allocator")
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Cc: Marek WesoĊowski <marek@wesolowski.eu.org>
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
