Skip to content

fs: clean up internal i_version handling

Jeff Layton ceph-devel linux-btrfs linux-ext4 linux-fsdevel linux-nfs linux-xfs lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest posting 2/28 patches 11 repliesIn review
  2. v8 posting 1/28 patches 0 repliesSuperseded
  3. v79 patches 19 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v69 patches25 repliesSuperseded
v58 patches1 replySuperseded

Patches in v8 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8fs: uninline inode_query_iversionfs/libfs.c include/linux/iversion.h+38 -362 replies
2/8fs: clarify when the i_version counter must be updatedinclude/linux/iversion.h+19 -25 replies
3/8vfs: plumb i_version handling into struct kstatfs/stat.c include/linux/stat.h+24 -24 replies
4/8nfs: report the inode version in getattr if requestedfs/nfs/inode.c+12 -40 replies
5/8ceph: report the inode version in getattr if requestedfs/ceph/inode.c+11 -50 replies
6/8nfsd: move nfsd4_change_attribute to nfsfh.cfs/nfsd/nfsfh.c fs/nfsd/nfsfh.h+28 -280 replies
7/8nfsd: use the getattr operation to fetch i_versionfs/nfsd/nfs4xdr.c fs/nfsd/nfsfh.c fs/nfsd/vfs.h+45 -200 replies
8/8nfsd: remove fetch_iversion export operationfs/nfs/export.c fs/nfsd/nfsfh.c include/linux/exportfs.h+0 -110 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchNeilBrownXiubo LiChuck LeverJan KaraChristian Brauner
1/8R-b R-b R-b
2/8R-b
3/8R-b R-b
4/8R-b
5/8R-b
6/8R-b A-b
7/8R-b A-b
8/8R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v8 thread

Cover letter [PATCH v8 RESEND 0/8] fs: clean up internal i_version handling

I had inteded to send a PR for this for v6.2, but I got sidetracked with different issues, and didn't get it together in time. This set has been sitting in linux-next since October, and it seems to be behaving, so I intend to send a PR when the v6.3 merge window opens.

Though nothing has really changed since last year, I'm resending now in the hopes I can collect a few more Reviewed-bys (ones from Al, Trond and Anna would be particularly welcome).

The main consumer of i_version field (knfsd) has to jump through a number of hoops to fetch it, depending on what sort of inode it is. Rather than do this, we want to offload the responsibility for presenting this field to the filesystem's ->getattr operation, which is a more natural way to deal with a field that may be implemented differently.

The focus of this patchset is to clean up these internal interfaces. This should also make it simple to present this attribute to userland in the future, which should be possible once the semantics are a bit more consistent across different backing filesystems.

Thanks!

Jeff Layton (8):
fs: uninline inode_query_iversion
fs: clarify when the i_version counter must be updated
vfs: plumb i_version handling into struct kstat
nfs: report the inode version in getattr if requested
ceph: report the inode version in getattr if requested
nfsd: move nfsd4_change_attribute to nfsfh.c
nfsd: use the getattr operation to fetch i_version
nfsd: remove fetch_iversion export operation

 fs/ceph/inode.c          | 16 +++++++----
 fs/libfs.c               | 36 ++++++++++++++++++++++++
 fs/nfs/export.c          |  7 -----
 fs/nfs/inode.c           | 16 ++++++++---
 fs/nfsd/nfs4xdr.c        |  4 ++-
 fs/nfsd/nfsfh.c          | 42 ++++++++++++++++++++++++++++
 fs/nfsd/nfsfh.h          | 29 +-------------------
 fs/nfsd/vfs.h            |  7 ++++-
 fs/stat.c                | 17 ++++++++++--
 include/linux/exportfs.h |  1 -
 include/linux/iversion.h | 59 ++++++++++++++--------------------------
 include/linux/stat.h     |  9 ++++++
 12 files changed, 156 insertions(+), 87 deletions(-)
Signature · 1 line
2.39.1