Skip to content

RFC Suppress negative dentry

Chengguang Xu linux-fsdevel linux-unionfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 RFC Latest9 patches 16 repliesIn review

Changes in v3 from the cover letter

- Drop negative dentry in vfs layer.
- Rebase on latest linus-tree(5.7.0-rc5).

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9fs/dcache: Introduce a new lookup flag LOOKUP_DONTCACHE_NEGATIVEfs/namei.c include/linux/namei.h+17 -60 replies
2/9ovl: Suppress negative dentry in lookupfs/overlayfs/namei.c+5 -40 replies
3/9cifs: Adjust argument for lookup_positive_unlocked()fs/cifs/cifsfs.c+1 -10 replies
4/9debugfs: Adjust argument for lookup_positive_unlocked()fs/debugfs/inode.c+1 -10 replies
5/9ecryptfs: Adjust argument for lookup_one_len_unlocked()fs/ecryptfs/inode.c+1 -10 replies
6/9exportfs: Adjust argument for lookup_one_len_unlocked()fs/exportfs/expfs.c+1 -10 replies
7/9kernfs: Adjust argument for lookup_positive_unlocked()fs/kernfs/mount.c+1 -10 replies
8/9nfsd: Adjust argument for lookup_positive_unlocked()fs/nfsd/nfs3xdr.c fs/nfsd/nfs4xdr.c+3 -20 replies
9/9quota: Adjust argument for lookup_positive_unlocked()fs/quota/dquot.c+2 -10 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAmir Goldstein
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [RFC PATCH v3 0/9] Suppress negative dentry

This series adds a new lookup flag LOOKUP_DONTCACHE_NEGATIVE to indicate to drop negative dentry in slow path of lookup.

In overlayfs, negative dentries in upper/lower layers are useless after construction of overlayfs' own dentry, so in order to effectively reclaim those dentries, specify LOOKUP_DONTCACHE_NEGATIVE flag when doing lookup in upper/lower layers.

Patch 1 adds flag LOOKUP_DONTCACHE_NEGATIVE and related logic in vfs layer. Patch 2 does lookup optimazation for overlayfs.
Patch 3-9 just adjusts function argument when calling lookup_positive_unlocked() and lookup_one_len_unlocked().

v1->v2:
- Only drop negative dentry in slow path of lookup.

v2->v3:
- Drop negative dentry in vfs layer.
- Rebase on latest linus-tree(5.7.0-rc5).

Chengguang Xu (9):
fs/dcache: Introduce a new lookup flag LOOKUP_DONTCACHE_NEGATIVE
ovl: Suppress negative dentry in lookup
cifs: Adjust argument for lookup_positive_unlocked()
debugfs: Adjust argument for lookup_positive_unlocked()
ecryptfs: Adjust argument for lookup_one_len_unlocked()
exportfs: Adjust argument for lookup_one_len_unlocked()
kernfs: Adjust argument for lookup_positive_unlocked()
nfsd: Adjust argument for lookup_positive_unlocked()
quota: Adjust argument for lookup_positive_unlocked()

 fs/cifs/cifsfs.c      |  2 +-
 fs/debugfs/inode.c    |  2 +-
 fs/ecryptfs/inode.c   |  2 +-
 fs/exportfs/expfs.c   |  2 +-
 fs/kernfs/mount.c     |  2 +-
 fs/namei.c            | 14 ++++++++++----
 fs/nfsd/nfs3xdr.c     |  2 +-
 fs/nfsd/nfs4xdr.c     |  3 ++-
 fs/overlayfs/namei.c  |  9 +++++----
 fs/quota/dquot.c      |  3 ++-
 include/linux/namei.h |  9 +++++++--
 11 files changed, 32 insertions(+), 18 deletions(-)
Signature · 1 line
2.20.1