summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-09-04 14:46:38 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-09-13 11:41:40 +0900
commit631946431ddc66a472c5cc629cd654e62dfa1f88 (patch)
treee993ef716475fb783fa5eccace32b4eb17ac71f8 /tools/perf/scripts/python/bin
parentb1d732e62a5b3942546e4edaab8976258e779287 (diff)
downloadlinux-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