Skip to content

Various NFS fscache cleanups

Dave Wysochanski linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v17 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Dropped first patch of v1 series (dhowells updated his patch)
- Don't rename or change the value of NFSDBG_FSCACHE (Trond)
- Rename nfs_readpage_from_fscache and nfs_readpage_to_fscache
- Rename enable/disable tracepoints to start with "nfs_fscache"
- Rename fscache IO tracepoints to better reflect the new function names
- Place the fscache IO tracepoints at begin and end of the functions

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7NFS: Use nfs_i_fscache() consistently within NFS fscache codefs/nfs/fscache.h+4 -40 replies
2/7NFS: Cleanup usage of nfs_inode in fscache interface and handle i_size properlyfs/nfs/fscache.c+12 -120 replies
3/7NFS: Convert NFS fscache enable/disable dfprintks to tracepointsfs/nfs/fscache.c fs/nfs/nfstrace.h+5 -20 replies
4/7NFS: Rename fscache read and write pages functionsfs/nfs/fscache.c fs/nfs/fscache.h fs/nfs/read.c+12 -130 replies
5/7NFS: Replace dfprintks with tracepoints in read and write page functionsfs/nfs/fscache.c fs/nfs/nfstrace.h+106 -190 replies
6/7NFS: Remove remaining dfprintks related to fscache cookiesfs/nfs/fscache.c+1 -130 replies
7/7NFS: Remove remaining usages of NFSDBG_FSCACHEfs/nfs/fscache-index.c fs/nfs/fscache.c include/uapi/linux/nfs_fs.h+1 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/7] Various NFS fscache cleanups

This patchset is on top of David Howells patchset he just posted as v3 of "fscache: Replace and remove old I/O API" and is based on his fscache-remove-old-io branch at
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache-remove-old-io
NOTE: fscache-remove-old-io was previously "fscache-iter-3" but it's been renamed to better reflect the purpose.

The series is also at:
https://github.com/DaveWysochanskiRH/kernel.git
https://github.com/DaveWysochanskiRH/kernel/tree/fscache-remove-old-io-nfs-fixes

Testing is looking ok so far and is still ongoing at BakeAThon and in my local testbed with tracepoints enabled via:
trace-cmd start -e fscache:* -e nfs:* -e nfs4:* -e cachefiles:*

Changes in v2 of this series
- Dropped first patch of v1 series (dhowells updated his patch)
- Don't rename or change the value of NFSDBG_FSCACHE (Trond)
- Rename nfs_readpage_from_fscache and nfs_readpage_to_fscache
- Rename enable/disable tracepoints to start with "nfs_fscache"
- Rename fscache IO tracepoints to better reflect the new function names
- Place the fscache IO tracepoints at begin and end of the functions

Dave Wysochanski (7):
NFS: Use nfs_i_fscache() consistently within NFS fscache code
NFS: Cleanup usage of nfs_inode in fscache interface and handle i_size
properly
NFS: Convert NFS fscache enable/disable dfprintks to tracepoints
NFS: Rename fscache read and write pages functions
NFS: Replace dfprintks with tracepoints in read and write page
functions
NFS: Remove remaining dfprintks related to fscache cookies
NFS: Remove remaining usages of NFSDBG_FSCACHE

 fs/nfs/fscache-index.c      |  2 -
 fs/nfs/fscache.c            | 76 +++++++++++++----------------------
 fs/nfs/fscache.h            | 25 ++++++------
 fs/nfs/nfstrace.h           | 98 +++++++++++++++++++++++++++++++++++++++++++++
 fs/nfs/read.c               |  4 +-
 include/uapi/linux/nfs_fs.h |  2 +-
 6 files changed, 140 insertions(+), 67 deletions(-)
Signature · 1 line
1.8.3.1