Skip to content

Clean up mount functions

[email protected] linux-nfs 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest14 patches 0 repliesNew
  2. v314 patches 1 replySuperseded
  3. v28 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches7 repliesSuperseded

Changes in v4 from the cover letter

-------------
- Fix up the commit message on patch 6
- Don't delete the dprintks saying that the nfs_xdev_mount() function is exiting

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14NFS: Rename nfs4_proc_get_root()fs/nfs/getroot.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c+5 -40 replies
2/14NFS: Create a single nfs_get_root()fs/nfs/getroot.c fs/nfs/nfs4proc.c fs/nfs/super.c+30 -870 replies
3/14NFS: Don't pass mount data to nfs_fscache_get_super_cookie()fs/nfs/fscache.c fs/nfs/fscache.h fs/nfs/super.c+29 -210 replies
4/14NFS: Remove NFS4_MOUNT_UNSHAREDfs/nfs/super.c+3 -30 replies
5/14NFS: Create a common fs_mount() functionfs/nfs/super.c+76 -1090 replies
6/14NFS: Create a common xdev_mount() functionfs/nfs/super.c+32 -900 replies
7/14NFS: Use nfs_fs_mount_common() for xdev mountsfs/nfs/super.c+29 -670 replies
8/14NFS: Use nfs_fs_mount_common() for remote referral mountsfs/nfs/super.c+13 -760 replies
9/14NFS: Let mount data parsing set the NFS versionfs/nfs/super.c+3 -40 replies
10/14NFS: Create a new nfs_try_mount()fs/nfs/super.c+27 -190 replies
11/14NFS: Create a single function for text mount datafs/nfs/internal.h fs/nfs/super.c+71 -810 replies
12/14NFS: Create a single nfs_validate_mount_data() functionfs/nfs/super.c+30 -60 replies
13/14NFS: Allocate parsed mount data directly to the nfs_mount_info structurefs/nfs/super.c+7 -90 replies
14/14NFS: Pass mntfh as part of the nfs_mount_info structurefs/nfs/super.c+31 -760 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 00/14] Clean up mount functions

From: Bryan Schumaker <[email protected]>

I noticed that we had 5 almost identical mount functions in super.c. I collapsed them all into one common function to make everything easier to maintain and work with. Patches 1 - 4 are cleanups, 5 - 8 drop us down to one common mount path, and 9 - 14 are cleanups to remove the nfs4_mount() function.

These patches also help simplify my modules changes since I no longer have to split these functions out of the generic code.

Changes in v4
-------------
- Fix up the commit message on patch 6
- Don't delete the dprintks saying that the nfs_xdev_mount() function is exiting

Changes in v3
-------------
- Remove the NFS4_MOUNT_UNSHARED flag
- nfs_validate_mount_data() selects between the v2/3 function and the v4 function
- Created a generic function for parsing text mount data

Comments or suggestions are appreciated!

- Bryan

Bryan Schumaker (14):
NFS: Rename nfs4_proc_get_root()
NFS: Create a single nfs_get_root()
NFS: Don't pass mount data to nfs_fscache_get_super_cookie()
NFS: Remove NFS4_MOUNT_UNSHARED
NFS: Create a common fs_mount() function
NFS: Create a common xdev_mount() function
NFS: Use nfs_fs_mount_common() for xdev mounts
NFS: Use nfs_fs_mount_common() for remote referral mounts
NFS: Let mount data parsing set the NFS version
NFS: Create a new nfs_try_mount()
NFS: Create a single function for text mount data
NFS: Create a single nfs_validate_mount_data() function
NFS: Allocate parsed mount data directly to the nfs_mount_info
structure
NFS: Pass mntfh as part of the nfs_mount_info structure

 fs/nfs/fscache.c  |   15 +-
 fs/nfs/fscache.h  |    4 +-
 fs/nfs/getroot.c  |   85 +-----
 fs/nfs/internal.h |    1 +
 fs/nfs/nfs4_fs.h  |    1 +
 fs/nfs/nfs4proc.c |   30 ++-
 fs/nfs/super.c    |  748 ++++++++++++++++++++---------------------------------
 7 files changed, 309 insertions(+), 575 deletions(-)
Signature · 1 line
1.7.10.1