Skip to content

Remove struct nameidata from lower level NFS code

Trond Myklebust linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6NFSv4: Clean up nfs4_atomic_openfs/nfs/dir.c fs/nfs/inode.c fs/nfs/nfs4_fs.h +2 more+93 -360 replies
2/6NFSv4: Further minor cleanups for nfs4_atomic_open()fs/nfs/dir.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c+20 -311 reply
3/6NFSv4: Clean up nfs4_open_revalidatefs/nfs/dir.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c+17 -190 replies
4/6NFSv4: Further cleanups for nfs4_open_revalidate()fs/nfs/dir.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c+26 -350 replies
5/6NFS: Clean up nfs4_proc_create()fs/nfs/dir.c fs/nfs/nfs3proc.c fs/nfs/nfs4proc.c +2 more+58 -510 replies
6/6NFS: Add an 'open_context' element to struct nfs_rpc_opsfs/nfs/dir.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c +1 more+10 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Remove struct nameidata from lower level NFS code

Hi,

The following patches attempt to clean up the atomic open code so that we keep all the functions that depend on the struct nameidata in fs/nfs/dir.c. Instead of passing down the struct nameidata, we have the lower layer NFSv4 code fill in the nfs_open_context, which can then be used by nfs_atomic_lookup to fill in the struct file.

Cheers
Trond

Trond Myklebust (6):
NFSv4: Clean up nfs4_atomic_open
NFSv4: Further minor cleanups for nfs4_atomic_open()
NFSv4: Clean up nfs4_open_revalidate
NFSv4: Further cleanups for nfs4_open_revalidate()
NFS: Clean up nfs4_proc_create()
NFS: Add an 'open_context' element to struct nfs_rpc_ops

 fs/nfs/dir.c            |  179 ++++++++++++++++++++++++++++++++++++++++++----
 fs/nfs/inode.c          |    8 +-
 fs/nfs/nfs3proc.c       |    2 +-
 fs/nfs/nfs4_fs.h        |    2 -
 fs/nfs/nfs4proc.c       |  148 ++++++---------------------------------
 fs/nfs/proc.c           |    2 +-
 include/linux/nfs_fs.h  |    2 +
 include/linux/nfs_xdr.h |    6 ++-
 8 files changed, 198 insertions(+), 151 deletions(-)
Signature · 1 line
1.7.2.3