Skip to content

Clean up mount functions

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10NFS: Create a single nfs_fill_super() functionfs/nfs/super.c+6 -202 replies
2/10NFS: Create a single nfs_clone_super() functionfs/nfs/super.c+6 -250 replies
3/10NFS: Fix whitespace errorsfs/nfs/super.c+2 -20 replies
4/10NFS: Consistent arguments to nfs_fscache_get_super_cookie()fs/nfs/fscache.c fs/nfs/fscache.h fs/nfs/super.c+12 -70 replies
5/10NFS: Rename nfs4_proc_get_root()fs/nfs/getroot.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c+5 -40 replies
6/10NFS: Create a single nfs_get_root()fs/nfs/getroot.c fs/nfs/nfs4proc.c fs/nfs/super.c+30 -870 replies
7/10NFS: Create a common fs_mount() functionfs/nfs/super.c+76 -2380 replies
8/10NFS: Create a common xdev_mount() functionfs/nfs/super.c+28 -880 replies
9/10NFS: Use nfs_fs_mount_common() for xdev mountsfs/nfs/super.c+38 -730 replies
10/10NFS: Use nfs_fs_mount_common() for remote referral mountsfs/nfs/super.c+14 -760 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] 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. The first few patches are basic cleanups, the last four drop us down to one common mount path.

I also hope these patches will simplify my modules changes, but I won't know for sure until I update everything.

Comments or suggestions are appreciated!

- Bryan

Bryan Schumaker (10):
NFS: Create a single nfs_fill_super() function
NFS: Create a single nfs_clone_super() function
NFS: Fix whitespace errors
NFS: Consistent arguments to nfs_fscache_get_super_cookie()
NFS: Rename nfs4_proc_get_root()
NFS: Create a single nfs_get_root()
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

 fs/nfs/fscache.c  |   13 +-
 fs/nfs/fscache.h  |    2 +-
 fs/nfs/getroot.c  |   85 +------
 fs/nfs/nfs4_fs.h  |    1 +
 fs/nfs/nfs4proc.c |   30 ++-
 fs/nfs/super.c    |  664 +++++++++++++----------------------------------------
 6 files changed, 196 insertions(+), 599 deletions(-)
Signature · 1 line
1.7.9.5