diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-09-04 14:46:38 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-09-13 11:41:40 +0900 |
| commit | 631946431ddc66a472c5cc629cd654e62dfa1f88 (patch) | |
| tree | e993ef716475fb783fa5eccace32b4eb17ac71f8 /tools/perf/scripts/python/bin | |
| parent | b1d732e62a5b3942546e4edaab8976258e779287 (diff) | |
| download | linux-next-631946431ddc66a472c5cc629cd654e62dfa1f88.tar.gz linux-next-631946431ddc66a472c5cc629cd654e62dfa1f88.zip | |
ntfs: account for MFT records added during allocation
When no free MFT record is available in the initialized $MFT/$BITMAP,
ntfs_mft_record_alloc() extends $MFT/$DATA and formats the requested record
together with a dynamically sized tail reserve. Those records become
visible through the $MFT file size before charging the requested record to
the free-record counter.
Account for all newly visible records before releasing the MFT allocation
lock, then subtract the one record being allocated. Keep MFT counter
updates independent of the asynchronous free-cluster scan and update the
counter when a record is successfully cleared in the MFT bitmap.
Store the clamped result of the MFT bitmap scan and keep statfs from
exposing an invalid cached count if an accounting error occurs.
Fixes: 115380f9a2f9 ("ntfs: update mft operations")
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
