Skip to content

fuse: readdir caching

Miklos Szeredi linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9fuse: split out readdir.cfs/fuse/Makefile fs/fuse/dir.c fs/fuse/fuse_i.h +1 more+274 -2580 replies
2/9fuse: add FOPEN_CACHE_DIRinclude/uapi/linux/fuse.h+6 -10 replies
3/9fuse: extract fuse_emit() helperfs/fuse/readdir.c+9 -40 replies
4/9fuse: allow caching readdirfs/fuse/fuse_i.h fs/fuse/inode.c fs/fuse/readdir.c+107 -11 reply
5/9fuse: allow using readdir cachefs/fuse/file.c fs/fuse/fuse_i.h fs/fuse/readdir.c+161 -40 replies
6/9fuse: add readdir cache versionfs/fuse/fuse_i.h fs/fuse/inode.c fs/fuse/readdir.c+52 -10 replies
7/9fuse: use mtime for readdir cache verificationfs/fuse/fuse_i.h fs/fuse/readdir.c+37 -40 replies
8/9fuse: use iversion for readdir cache verificationfs/fuse/dir.c fs/fuse/fuse_i.h fs/fuse/readdir.c+21 -80 replies
9/9fuse: reduce size of struct fuse_inodefs/fuse/dir.c fs/fuse/file.c fs/fuse/fuse_i.h +1 more+58 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] fuse: readdir caching

Allow caching readdir in fuse. Use the page cache for this, which solves cache shrinking on memory pressure.

I think it might make sense to extract something like this into a set of VFS helpers, so that other filesystems can also make use of this facility.

Thanks,
Miklos

---
Miklos Szeredi (9):
fuse: split out readdir.c
fuse: add FOPEN_CACHE_DIR
fuse: extract fuse_emit() helper
fuse: allow caching readdir
fuse: allow using readdir cache
fuse: add readdir cache version
fuse: use mtime for readdir cache verification
fuse: use iversion for readdir cache verification
fuse: reduce size of struct fuse_inode

 fs/fuse/Makefile          |   2 +-
 fs/fuse/dir.c             | 293 +++---------------------
 fs/fuse/file.c            |  10 +
 fs/fuse/fuse_i.h          |  83 ++++++-
 fs/fuse/inode.c           |  11 +-
 fs/fuse/readdir.c         | 567 ++++++++++++++++++++++++++++++++++++++++++++++
 include/uapi/linux/fuse.h |   7 +-
 7 files changed, 688 insertions(+), 285 deletions(-)
 create mode 100644 fs/fuse/readdir.c
Signature · 1 line
2.14.3