/* nfs40client.c */
void nfs40_shutdown_client(struct nfs_client *);
+int nfs40_init_client(struct nfs_client *);
/* nfs40proc.c */
extern const struct nfs4_minor_version_ops nfs_v4_0_minor_ops;
}
}
+/**
+ * nfs40_init_client - nfs_client initialization tasks for NFSv4.0
+ * @clp: nfs_client to initialize
+ *
+ * Returns zero on success, or a negative errno if some error occurred.
+ */
+int nfs40_init_client(struct nfs_client *clp)
+{
+ struct nfs4_slot_table *tbl;
+ int ret;
+
+ tbl = kzalloc(sizeof(*tbl), GFP_NOFS);
+ if (tbl == NULL)
+ return -ENOMEM;
+
+ ret = nfs4_setup_slot_table(tbl, NFS4_MAX_SLOT_TABLE,
+ "NFSv4.0 transport Slot table");
+ if (ret) {
+ nfs4_shutdown_slot_table(tbl);
+ kfree(tbl);
+ return ret;
+ }
+
+ clp->cl_slot_tbl = tbl;
+ return 0;
+}
+
/**
* nfs40_walk_client_list - Find server that recognizes a client ID
*
extern const u32 nfs4_fs_locations_bitmap[3];
void nfs41_shutdown_client(struct nfs_client *);
-int nfs40_init_client(struct nfs_client *);
int nfs41_init_client(struct nfs_client *);
void nfs4_free_client(struct nfs_client *);
return 0;
}
-/**
- * nfs40_init_client - nfs_client initialization tasks for NFSv4.0
- * @clp: nfs_client to initialize
- *
- * Returns zero on success, or a negative errno if some error occurred.
- */
-int nfs40_init_client(struct nfs_client *clp)
-{
- struct nfs4_slot_table *tbl;
- int ret;
-
- tbl = kzalloc(sizeof(*tbl), GFP_NOFS);
- if (tbl == NULL)
- return -ENOMEM;
-
- ret = nfs4_setup_slot_table(tbl, NFS4_MAX_SLOT_TABLE,
- "NFSv4.0 transport Slot table");
- if (ret) {
- nfs4_shutdown_slot_table(tbl);
- kfree(tbl);
- return ret;
- }
-
- clp->cl_slot_tbl = tbl;
- return 0;
-}
-
#if defined(CONFIG_NFS_V4_1)
/**