linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/14] Clean up mount functions
@ 2012-05-10 15:19 bjschuma
  2012-05-10 15:19 ` [PATCH v3 01/14] NFS: Rename nfs4_proc_get_root() bjschuma
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: bjschuma @ 2012-05-10 15:19 UTC (permalink / raw)
  To: Trond.Myklebust; +Cc: linux-nfs, Bryan Schumaker

From: Bryan Schumaker <bjschuma@netapp.com>

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 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

Changes in v2
-------------
- Reword commit message on patch 2: Create a single nfs_get_root()
- Change arguments to nfs_fscache_get_super_cookie() in patch 3
- Introduce a new patch 4 to remove the NFS4_MOUNT_UNSHARED flag

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    |  745 +++++++++++++++++++----------------------------------
 7 files changed, 305 insertions(+), 576 deletions(-)

-- 
1.7.10.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-05-10 18:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10 15:19 [PATCH v3 00/14] Clean up mount functions bjschuma
2012-05-10 15:19 ` [PATCH v3 01/14] NFS: Rename nfs4_proc_get_root() bjschuma
2012-05-10 15:19 ` [PATCH v3 02/14] NFS: Create a single nfs_get_root() bjschuma
2012-05-10 15:19 ` [PATCH v3 03/14] NFS: Don't pass mount data to nfs_fscache_get_super_cookie() bjschuma
2012-05-10 15:19 ` [PATCH v3 04/14] NFS: Remove NFS4_MOUNT_UNSHARED bjschuma
2012-05-10 15:19 ` [PATCH v3 05/14] NFS: Create a common fs_mount() function bjschuma
2012-05-10 15:19 ` [PATCH v3 06/14] NFS: Create a common xdev_mount() function bjschuma
2012-05-10 18:44   ` Myklebust, Trond
2012-05-10 15:19 ` [PATCH v3 07/14] NFS: Use nfs_fs_mount_common() for xdev mounts bjschuma
2012-05-10 15:19 ` [PATCH v3 08/14] NFS: Use nfs_fs_mount_common() for remote referral mounts bjschuma
2012-05-10 15:20 ` [PATCH v3 09/14] NFS: Let mount data parsing set the NFS version bjschuma
2012-05-10 15:20 ` [PATCH v3 10/14] NFS: Create a new nfs_try_mount() bjschuma
2012-05-10 15:20 ` [PATCH v3 11/14] NFS: Create a single function for text mount data bjschuma
2012-05-10 15:20 ` [PATCH v3 12/14] NFS: Create a single nfs_validate_mount_data() function bjschuma
2012-05-10 15:20 ` [PATCH v3 13/14] NFS: Allocate parsed mount data directly to the nfs_mount_info structure bjschuma
2012-05-10 15:20 ` [PATCH v3 14/14] NFS: Pass mntfh as part of " bjschuma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).