diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-21 16:56:48 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-24 18:07:11 -0400 |
commit | 1c787096fce217b5fdd9806dbce96e738c9345c0 (patch) | |
tree | c3ee4071ef4729951c50f22a82e2088a8ab1c7de /fs/nfs/nfs4filelayout.c | |
parent | 16b374ca439fb406e46e071f75428f5b033056f8 (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/nfs4filelayout.c')
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index 9e82b51cb515..2e92f0d8d654 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -40,8 +40,8 @@ MODULE_LICENSE("GPL"); | |||
40 | MODULE_AUTHOR("Dean Hildebrand <dhildebz@umich.edu>"); | 40 | MODULE_AUTHOR("Dean Hildebrand <dhildebz@umich.edu>"); |
41 | MODULE_DESCRIPTION("The NFSv4 file layout driver"); | 41 | MODULE_DESCRIPTION("The NFSv4 file layout driver"); |
42 | 42 | ||
43 | int | 43 | static int |
44 | filelayout_initialize_mountpoint(struct nfs_server *nfss) | 44 | filelayout_set_layoutdriver(struct nfs_server *nfss) |
45 | { | 45 | { |
46 | int status = pnfs_alloc_init_deviceid_cache(nfss->nfs_client, | 46 | int status = pnfs_alloc_init_deviceid_cache(nfss->nfs_client, |
47 | nfs4_fl_free_deviceid_callback); | 47 | nfs4_fl_free_deviceid_callback); |
@@ -55,9 +55,9 @@ filelayout_initialize_mountpoint(struct nfs_server *nfss) | |||
55 | return 0; | 55 | return 0; |
56 | } | 56 | } |
57 | 57 | ||
58 | /* Uninitialize a mountpoint by destroying its device list */ | 58 | /* Clear out the layout by destroying its device list */ |
59 | int | 59 | static int |
60 | filelayout_uninitialize_mountpoint(struct nfs_server *nfss) | 60 | filelayout_clear_layoutdriver(struct nfs_server *nfss) |
61 | { | 61 | { |
62 | dprintk("--> %s\n", __func__); | 62 | dprintk("--> %s\n", __func__); |
63 | 63 | ||
@@ -256,8 +256,8 @@ static struct pnfs_layoutdriver_type filelayout_type = { | |||
256 | .id = LAYOUT_NFSV4_1_FILES, | 256 | .id = LAYOUT_NFSV4_1_FILES, |
257 | .name = "LAYOUT_NFSV4_1_FILES", | 257 | .name = "LAYOUT_NFSV4_1_FILES", |
258 | .owner = THIS_MODULE, | 258 | .owner = THIS_MODULE, |
259 | .initialize_mountpoint = filelayout_initialize_mountpoint, | 259 | .set_layoutdriver = filelayout_set_layoutdriver, |
260 | .uninitialize_mountpoint = filelayout_uninitialize_mountpoint, | 260 | .clear_layoutdriver = filelayout_clear_layoutdriver, |
261 | .alloc_lseg = filelayout_alloc_lseg, | 261 | .alloc_lseg = filelayout_alloc_lseg, |
262 | .free_lseg = filelayout_free_lseg, | 262 | .free_lseg = filelayout_free_lseg, |
263 | }; | 263 | }; |