diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-10-19 15:26:30 +0300 |
|---|---|---|
| committer | Anna Schumaker <anna.schumaker@hammerspace.com> | 2026-11-09 15:04:53 -0500 |
| commit | 89b91409b2342e7629b1271eba315a0f06495247 (patch) | |
| tree | c22de05cdfc3875bfab1c0c2d5e8ca88f9d7cdd7 /rust/kernel/alloc/kvec/errors.rs | |
| parent | b9d518902ff1969f93d2b4787951d98e50ab0181 (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 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
