linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Szeredi <mszeredi@redhat.com>
To: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/9] fuse: readdir caching
Date: Fri, 28 Sep 2018 17:42:25 +0200	[thread overview]
Message-ID: <20180928154234.19270-1-mszeredi@redhat.com> (raw)

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

-- 
2.14.3

             reply	other threads:[~2018-09-28 22:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-28 15:42 Miklos Szeredi [this message]
2018-09-28 15:42 ` [PATCH 1/9] fuse: split out readdir.c Miklos Szeredi
2018-09-28 15:42 ` [PATCH 2/9] fuse: add FOPEN_CACHE_DIR Miklos Szeredi
2018-09-28 15:42 ` [PATCH 3/9] fuse: extract fuse_emit() helper Miklos Szeredi
2018-09-28 15:42 ` [PATCH 4/9] fuse: allow caching readdir Miklos Szeredi
2018-09-28 16:42   ` Matthew Wilcox
2018-09-28 15:42 ` [PATCH 5/9] fuse: allow using readdir cache Miklos Szeredi
2018-09-28 15:42 ` [PATCH 6/9] fuse: add readdir cache version Miklos Szeredi
2018-09-28 15:42 ` [PATCH 7/9] fuse: use mtime for readdir cache verification Miklos Szeredi
2018-09-28 15:42 ` [PATCH 8/9] fuse: use iversion " Miklos Szeredi
2018-09-28 15:42 ` [PATCH 9/9] fuse: reduce size of struct fuse_inode Miklos Szeredi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180928154234.19270-1-mszeredi@redhat.com \
    --to=mszeredi@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).