aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-10-21 16:56:48 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-10-24 18:07:11 -0400
commit1c787096fce217b5fdd9806dbce96e738c9345c0 (patch)
treec3ee4071ef4729951c50f22a82e2088a8ab1c7de /fs/nfs/pnfs.c
parent16b374ca439fb406e46e071f75428f5b033056f8 (diff)
NFSv4.1: Use more sensible names for 'initialize_mountpoint'
The initialize_mountpoint/uninitialise_mountpoint functions are really about setting or clearing the layout driver to be used on this filesystem. Change the names to the more descriptive 'set_layoutdriver/clear_layoutdriver'. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index d1ad7df3479e..db773428f95f 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -75,7 +75,7 @@ void
75unset_pnfs_layoutdriver(struct nfs_server *nfss) 75unset_pnfs_layoutdriver(struct nfs_server *nfss)
76{ 76{
77 if (nfss->pnfs_curr_ld) { 77 if (nfss->pnfs_curr_ld) {
78 nfss->pnfs_curr_ld->uninitialize_mountpoint(nfss); 78 nfss->pnfs_curr_ld->clear_layoutdriver(nfss);
79 module_put(nfss->pnfs_curr_ld->owner); 79 module_put(nfss->pnfs_curr_ld->owner);
80 } 80 }
81 nfss->pnfs_curr_ld = NULL; 81 nfss->pnfs_curr_ld = NULL;
@@ -115,7 +115,7 @@ set_pnfs_layoutdriver(struct nfs_server *server, u32 id)
115 goto out_no_driver; 115 goto out_no_driver;
116 } 116 }
117 server->pnfs_curr_ld = ld_type; 117 server->pnfs_curr_ld = ld_type;
118 if (ld_type->initialize_mountpoint(server)) { 118 if (ld_type->set_layoutdriver(server)) {
119 printk(KERN_ERR 119 printk(KERN_ERR
120 "%s: Error initializing mount point for layout driver %u.\n", 120 "%s: Error initializing mount point for layout driver %u.\n",
121 __func__, id); 121 __func__, id);