Skip to content

fuse: add no forget support

yangyun linux-fsdevel lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 3 repliesApplied
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Still preallocate fuse_forget_link on the inode creation in patch1 (Miklos)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fuse: move fuse_forget_link allocation inside fuse_queue_forget()fs/fuse/dev.c fs/fuse/dir.c fs/fuse/fuse_i.h +2 more+38 -830 replies
2/2fuse: add support for no forget requestsfs/fuse/dev.c fs/fuse/dir.c fs/fuse/fuse_i.h +3 more+59 -280 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] fuse: add no forget support

FUSE_FORGET requests are not used in some cases (e.g., juicefs) but have an impact on the system. So add no forget support. The details about no forget support can be seen in the following patches.

Patch 1 cleans up the allocation and the processing of forget requests. Patch 2 adds the no forget support based on patch 1.

The link of libfuse with no forget support:
https://github.com/yangyun50/libfuse/commit/ef7061fef6f8c7154c975e1b0348dc9f12f945fe
It enables the no forget by default if the filesystem doesn't implement the forget operation (i.e., se->op.forget == NULL).

---

v1:
https://lore.kernel.org/lkml/[email protected]/
v2:
https://lore.kernel.org/lkml/[email protected]/

Changes from v1->v2:
- Still use fuse_queue_forget in patch 1 (Miklos)
- Simplify function name in patch 2 (Josef)

Changes from v2->v3:
- Still preallocate fuse_forget_link on the inode creation in patch1 (Miklos)

yangyun (2):
fuse: move fuse_forget_link allocation inside fuse_queue_forget()
fuse: add support for no forget requests

 fs/fuse/dev.c             | 16 ++++++++--
 fs/fuse/dir.c             | 63 +++++++++------------------------------
 fs/fuse/fuse_i.h          | 33 +++++++++++++++++---
 fs/fuse/inode.c           | 53 ++++++++++++++++----------------
 fs/fuse/readdir.c         | 38 ++++++-----------------
 include/uapi/linux/fuse.h |  3 ++
 6 files changed, 96 insertions(+), 110 deletions(-)
Signature · 1 line
2.33.0