diff options
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 14 | ||||
-rw-r--r-- | fs/nfs/pnfs.c | 4 | ||||
-rw-r--r-- | fs/nfs/pnfs.h | 4 |
3 files changed, 11 insertions, 11 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 | }; |
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 | |||
75 | unset_pnfs_layoutdriver(struct nfs_server *nfss) | 75 | unset_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); |
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index cbba28cb02a7..e12367d50489 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -53,8 +53,8 @@ struct pnfs_layoutdriver_type { | |||
53 | const u32 id; | 53 | const u32 id; |
54 | const char *name; | 54 | const char *name; |
55 | struct module *owner; | 55 | struct module *owner; |
56 | int (*initialize_mountpoint) (struct nfs_server *); | 56 | int (*set_layoutdriver) (struct nfs_server *); |
57 | int (*uninitialize_mountpoint) (struct nfs_server *); | 57 | int (*clear_layoutdriver) (struct nfs_server *); |
58 | struct pnfs_layout_segment * (*alloc_lseg) (struct pnfs_layout_hdr *layoutid, struct nfs4_layoutget_res *lgr); | 58 | struct pnfs_layout_segment * (*alloc_lseg) (struct pnfs_layout_hdr *layoutid, struct nfs4_layoutget_res *lgr); |
59 | void (*free_lseg) (struct pnfs_layout_segment *lseg); | 59 | void (*free_lseg) (struct pnfs_layout_segment *lseg); |
60 | }; | 60 | }; |