summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAvi Weiss <thnkslprpt@gmail.com>2026-10-19 15:26:30 +0300
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-11-09 15:04:53 -0500
commit89b91409b2342e7629b1271eba315a0f06495247 (patch)
treec22de05cdfc3875bfab1c0c2d5e8ca88f9d7cdd7 /tools/perf/scripts/python
parentb9d518902ff1969f93d2b4787951d98e50ab0181 (diff)
NFS: restore directory index when resuming readdir
nfs_readdir() restores the cached folio index and cookie when resuming directory iteration, but leaves current_index at zero. In 32-bit index mode, nfs_readdir_search_for_cookie() then reports a folio-relative offset instead of the absolute entry position. Restore current_index from the saved logical folio index before searching the cache. This solution relies on the current behavior of nfs_readdir_seek_next_array(), where folio_index advances by one and current_index advances by nfs_readdir_array_maxentries() for each full, nonterminal folio. Fixes: f648022faa68e ("NFS: Convert readdir page cache to use a cookie based index") Signed-off-by: Avi Weiss <thnkslprpt@gmail.com> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions