summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2025-12-09 12:08:32 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2025-12-19 19:04:01 +0100
commitdffc7f2f177b7f1ca52067dc23d0304d7a25d45c (patch)
tree797d4b0c6d1d21374b8d0c878cf5d6587e36ee6b /rust/alloc/collections/git@git.tavy.me:linux.git
parent989e29450efaf4983c66b7a628f2ffc03b6d02e8 (diff)
fs/ntfs3: allow readdir() to finish after directory mutations without rewinddir()
This patch introduces a per-directory version counter that increments on each directory modification (indx_insert_entry() / indx_delete_entry()). ntfs_readdir() uses this version to detect whether the directory has changed since enumeration began. If readdir() reaches end-of-directory but the version has changed, the walk restarts from the beginning of the index tree instead of returning prematurely. This provides rmdir-like behavior for tools that remove entries as they enumerate them. Prior to this change, bonnie++ directory operations could fail due to premature termination of readdir() during concurrent index updates. With this patch applied, bonnie++ completes successfully with no errors. Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions