: cifs: cache directory content for shroot
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyIn review
- v13 patches 9 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cifs: return cached_fid from open_shrootfs/ fs/ fs/ | +23 | 0 replies | |
| 2/3 | cifs: compute full_path already in cifs_readdir()fs/ | +16 | 0 replies | |
| 3/3 | cifs: cache the directory content for shrootfs/ fs/ fs/ +1 more | +200 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH 0/3 V2]: cifs: cache directory content for shroot
Steve, Aurelien, List
V2: addressing Aureliens comments
* Fix comment style
* Describe what ctx->pos == 2 means
* use is_smb1_server()
See initial implementation of a mechanism to cache the directory entries for
a shared cache handle (shroot).
We cache all the entries during the initial readdir() scan, using the context from the vfs layer as the key to handle if there are multiple concurrent readir() scans of the same directory.
Then if/when we have successfully cached the entire direcotry we will server any subsequent readdir() from out of cache, avoinding making any query direcotry calls to the server.
As with all of shroot, the cache is kept until the direcotry lease is broken.
The first two patches are small and just a preparation for the third patch. They go as separate patches to make review easier.
The third patch adds the actual meat of the dirent caching .
For now this might not be too exciting because the only cache the root handle. I hope in the future we will expand the directory caching to handle any/many direcotries.