diff options
-rw-r--r-- | fs/nfs/delegation.c | 12 | ||||
-rw-r--r-- | fs/nfs/nfs4proc.c | 26 | ||||
-rw-r--r-- | fs/nfs/nfs4renewd.c | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4state.c | 10 | ||||
-rw-r--r-- | fs/nfs/nfs4xdr.c | 10 | ||||
-rw-r--r-- | fs/nfs/super.c | 6 | ||||
-rw-r--r-- | include/linux/nfs_fs_sb.h | 2 |
7 files changed, 34 insertions, 34 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 5a1105c258bd..cfe239736ac0 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c | |||
@@ -52,7 +52,7 @@ static int nfs_delegation_claim_locks(struct nfs_open_context *ctx, struct nfs4_ | |||
52 | case -NFS4ERR_EXPIRED: | 52 | case -NFS4ERR_EXPIRED: |
53 | /* kill_proc(fl->fl_pid, SIGLOST, 1); */ | 53 | /* kill_proc(fl->fl_pid, SIGLOST, 1); */ |
54 | case -NFS4ERR_STALE_CLIENTID: | 54 | case -NFS4ERR_STALE_CLIENTID: |
55 | nfs4_schedule_state_recovery(NFS_SERVER(inode)->nfs4_state); | 55 | nfs4_schedule_state_recovery(NFS_SERVER(inode)->nfs_client); |
56 | goto out_err; | 56 | goto out_err; |
57 | } | 57 | } |
58 | } | 58 | } |
@@ -114,7 +114,7 @@ void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, st | |||
114 | */ | 114 | */ |
115 | int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res) | 115 | int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res) |
116 | { | 116 | { |
117 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; | 117 | struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; |
118 | struct nfs_inode *nfsi = NFS_I(inode); | 118 | struct nfs_inode *nfsi = NFS_I(inode); |
119 | struct nfs_delegation *delegation; | 119 | struct nfs_delegation *delegation; |
120 | int status = 0; | 120 | int status = 0; |
@@ -176,7 +176,7 @@ static void nfs_msync_inode(struct inode *inode) | |||
176 | */ | 176 | */ |
177 | int __nfs_inode_return_delegation(struct inode *inode) | 177 | int __nfs_inode_return_delegation(struct inode *inode) |
178 | { | 178 | { |
179 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; | 179 | struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; |
180 | struct nfs_inode *nfsi = NFS_I(inode); | 180 | struct nfs_inode *nfsi = NFS_I(inode); |
181 | struct nfs_delegation *delegation; | 181 | struct nfs_delegation *delegation; |
182 | int res = 0; | 182 | int res = 0; |
@@ -208,7 +208,7 @@ int __nfs_inode_return_delegation(struct inode *inode) | |||
208 | */ | 208 | */ |
209 | void nfs_return_all_delegations(struct super_block *sb) | 209 | void nfs_return_all_delegations(struct super_block *sb) |
210 | { | 210 | { |
211 | struct nfs_client *clp = NFS_SB(sb)->nfs4_state; | 211 | struct nfs_client *clp = NFS_SB(sb)->nfs_client; |
212 | struct nfs_delegation *delegation; | 212 | struct nfs_delegation *delegation; |
213 | struct inode *inode; | 213 | struct inode *inode; |
214 | 214 | ||
@@ -310,7 +310,7 @@ static int recall_thread(void *data) | |||
310 | { | 310 | { |
311 | struct recall_threadargs *args = (struct recall_threadargs *)data; | 311 | struct recall_threadargs *args = (struct recall_threadargs *)data; |
312 | struct inode *inode = igrab(args->inode); | 312 | struct inode *inode = igrab(args->inode); |
313 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; | 313 | struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; |
314 | struct nfs_inode *nfsi = NFS_I(inode); | 314 | struct nfs_inode *nfsi = NFS_I(inode); |
315 | struct nfs_delegation *delegation; | 315 | struct nfs_delegation *delegation; |
316 | 316 | ||
@@ -423,7 +423,7 @@ void nfs_delegation_reap_unclaimed(struct nfs_client *clp) | |||
423 | 423 | ||
424 | int nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode) | 424 | int nfs4_copy_delegation_stateid(nfs4_stateid *dst, struct inode *inode) |
425 | { | 425 | { |
426 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; | 426 | struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; |
427 | struct nfs_inode *nfsi = NFS_I(inode); | 427 | struct nfs_inode *nfsi = NFS_I(inode); |
428 | struct nfs_delegation *delegation; | 428 | struct nfs_delegation *delegation; |
429 | int res = 0; | 429 | int res = 0; |
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 168f3ffb059f..b46597fc81e1 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -195,7 +195,7 @@ static void nfs4_setup_readdir(u64 cookie, u32 *verifier, struct dentry *dentry, | |||
195 | 195 | ||
196 | static void renew_lease(const struct nfs_server *server, unsigned long timestamp) | 196 | static void renew_lease(const struct nfs_server *server, unsigned long timestamp) |
197 | { | 197 | { |
198 | struct nfs_client *clp = server->nfs4_state; | 198 | struct nfs_client *clp = server->nfs_client; |
199 | spin_lock(&clp->cl_lock); | 199 | spin_lock(&clp->cl_lock); |
200 | if (time_before(clp->cl_last_renewal,timestamp)) | 200 | if (time_before(clp->cl_last_renewal,timestamp)) |
201 | clp->cl_last_renewal = timestamp; | 201 | clp->cl_last_renewal = timestamp; |
@@ -252,7 +252,7 @@ static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry, | |||
252 | atomic_inc(&sp->so_count); | 252 | atomic_inc(&sp->so_count); |
253 | p->o_arg.fh = NFS_FH(dir); | 253 | p->o_arg.fh = NFS_FH(dir); |
254 | p->o_arg.open_flags = flags, | 254 | p->o_arg.open_flags = flags, |
255 | p->o_arg.clientid = server->nfs4_state->cl_clientid; | 255 | p->o_arg.clientid = server->nfs_client->cl_clientid; |
256 | p->o_arg.id = sp->so_id; | 256 | p->o_arg.id = sp->so_id; |
257 | p->o_arg.name = &dentry->d_name; | 257 | p->o_arg.name = &dentry->d_name; |
258 | p->o_arg.server = server; | 258 | p->o_arg.server = server; |
@@ -550,7 +550,7 @@ int nfs4_open_delegation_recall(struct dentry *dentry, struct nfs4_state *state) | |||
550 | case -NFS4ERR_STALE_STATEID: | 550 | case -NFS4ERR_STALE_STATEID: |
551 | case -NFS4ERR_EXPIRED: | 551 | case -NFS4ERR_EXPIRED: |
552 | /* Don't recall a delegation if it was lost */ | 552 | /* Don't recall a delegation if it was lost */ |
553 | nfs4_schedule_state_recovery(server->nfs4_state); | 553 | nfs4_schedule_state_recovery(server->nfs_client); |
554 | return err; | 554 | return err; |
555 | } | 555 | } |
556 | err = nfs4_handle_exception(server, err, &exception); | 556 | err = nfs4_handle_exception(server, err, &exception); |
@@ -792,7 +792,7 @@ out: | |||
792 | 792 | ||
793 | int nfs4_recover_expired_lease(struct nfs_server *server) | 793 | int nfs4_recover_expired_lease(struct nfs_server *server) |
794 | { | 794 | { |
795 | struct nfs_client *clp = server->nfs4_state; | 795 | struct nfs_client *clp = server->nfs_client; |
796 | 796 | ||
797 | if (test_and_clear_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) | 797 | if (test_and_clear_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) |
798 | nfs4_schedule_state_recovery(clp); | 798 | nfs4_schedule_state_recovery(clp); |
@@ -867,7 +867,7 @@ static int _nfs4_open_delegated(struct inode *inode, int flags, struct rpc_cred | |||
867 | { | 867 | { |
868 | struct nfs_delegation *delegation; | 868 | struct nfs_delegation *delegation; |
869 | struct nfs_server *server = NFS_SERVER(inode); | 869 | struct nfs_server *server = NFS_SERVER(inode); |
870 | struct nfs_client *clp = server->nfs4_state; | 870 | struct nfs_client *clp = server->nfs_client; |
871 | struct nfs_inode *nfsi = NFS_I(inode); | 871 | struct nfs_inode *nfsi = NFS_I(inode); |
872 | struct nfs4_state_owner *sp = NULL; | 872 | struct nfs4_state_owner *sp = NULL; |
873 | struct nfs4_state *state = NULL; | 873 | struct nfs4_state *state = NULL; |
@@ -953,7 +953,7 @@ static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, int flags, st | |||
953 | struct nfs4_state_owner *sp; | 953 | struct nfs4_state_owner *sp; |
954 | struct nfs4_state *state = NULL; | 954 | struct nfs4_state *state = NULL; |
955 | struct nfs_server *server = NFS_SERVER(dir); | 955 | struct nfs_server *server = NFS_SERVER(dir); |
956 | struct nfs_client *clp = server->nfs4_state; | 956 | struct nfs_client *clp = server->nfs_client; |
957 | struct nfs4_opendata *opendata; | 957 | struct nfs4_opendata *opendata; |
958 | int status; | 958 | int status; |
959 | 959 | ||
@@ -1133,7 +1133,7 @@ static void nfs4_close_done(struct rpc_task *task, void *data) | |||
1133 | break; | 1133 | break; |
1134 | case -NFS4ERR_STALE_STATEID: | 1134 | case -NFS4ERR_STALE_STATEID: |
1135 | case -NFS4ERR_EXPIRED: | 1135 | case -NFS4ERR_EXPIRED: |
1136 | nfs4_schedule_state_recovery(server->nfs4_state); | 1136 | nfs4_schedule_state_recovery(server->nfs_client); |
1137 | break; | 1137 | break; |
1138 | default: | 1138 | default: |
1139 | if (nfs4_async_handle_error(task, server) == -EAGAIN) { | 1139 | if (nfs4_async_handle_error(task, server) == -EAGAIN) { |
@@ -2791,7 +2791,7 @@ static int nfs4_proc_set_acl(struct inode *inode, const void *buf, size_t buflen | |||
2791 | static int | 2791 | static int |
2792 | nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server) | 2792 | nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server) |
2793 | { | 2793 | { |
2794 | struct nfs_client *clp = server->nfs4_state; | 2794 | struct nfs_client *clp = server->nfs_client; |
2795 | 2795 | ||
2796 | if (!clp || task->tk_status >= 0) | 2796 | if (!clp || task->tk_status >= 0) |
2797 | return 0; | 2797 | return 0; |
@@ -2871,7 +2871,7 @@ static int nfs4_delay(struct rpc_clnt *clnt, long *timeout) | |||
2871 | */ | 2871 | */ |
2872 | int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct nfs4_exception *exception) | 2872 | int nfs4_handle_exception(const struct nfs_server *server, int errorcode, struct nfs4_exception *exception) |
2873 | { | 2873 | { |
2874 | struct nfs_client *clp = server->nfs4_state; | 2874 | struct nfs_client *clp = server->nfs_client; |
2875 | int ret = errorcode; | 2875 | int ret = errorcode; |
2876 | 2876 | ||
2877 | exception->retry = 0; | 2877 | exception->retry = 0; |
@@ -3077,7 +3077,7 @@ int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4 | |||
3077 | switch (err) { | 3077 | switch (err) { |
3078 | case -NFS4ERR_STALE_STATEID: | 3078 | case -NFS4ERR_STALE_STATEID: |
3079 | case -NFS4ERR_EXPIRED: | 3079 | case -NFS4ERR_EXPIRED: |
3080 | nfs4_schedule_state_recovery(server->nfs4_state); | 3080 | nfs4_schedule_state_recovery(server->nfs_client); |
3081 | case 0: | 3081 | case 0: |
3082 | return 0; | 3082 | return 0; |
3083 | } | 3083 | } |
@@ -3106,7 +3106,7 @@ static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock | |||
3106 | { | 3106 | { |
3107 | struct inode *inode = state->inode; | 3107 | struct inode *inode = state->inode; |
3108 | struct nfs_server *server = NFS_SERVER(inode); | 3108 | struct nfs_server *server = NFS_SERVER(inode); |
3109 | struct nfs_client *clp = server->nfs4_state; | 3109 | struct nfs_client *clp = server->nfs_client; |
3110 | struct nfs_lockt_args arg = { | 3110 | struct nfs_lockt_args arg = { |
3111 | .fh = NFS_FH(inode), | 3111 | .fh = NFS_FH(inode), |
3112 | .fl = request, | 3112 | .fl = request, |
@@ -3231,7 +3231,7 @@ static void nfs4_locku_done(struct rpc_task *task, void *data) | |||
3231 | break; | 3231 | break; |
3232 | case -NFS4ERR_STALE_STATEID: | 3232 | case -NFS4ERR_STALE_STATEID: |
3233 | case -NFS4ERR_EXPIRED: | 3233 | case -NFS4ERR_EXPIRED: |
3234 | nfs4_schedule_state_recovery(calldata->server->nfs4_state); | 3234 | nfs4_schedule_state_recovery(calldata->server->nfs_client); |
3235 | break; | 3235 | break; |
3236 | default: | 3236 | default: |
3237 | if (nfs4_async_handle_error(task, calldata->server) == -EAGAIN) { | 3237 | if (nfs4_async_handle_error(task, calldata->server) == -EAGAIN) { |
@@ -3343,7 +3343,7 @@ static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, | |||
3343 | if (p->arg.lock_seqid == NULL) | 3343 | if (p->arg.lock_seqid == NULL) |
3344 | goto out_free; | 3344 | goto out_free; |
3345 | p->arg.lock_stateid = &lsp->ls_stateid; | 3345 | p->arg.lock_stateid = &lsp->ls_stateid; |
3346 | p->arg.lock_owner.clientid = server->nfs4_state->cl_clientid; | 3346 | p->arg.lock_owner.clientid = server->nfs_client->cl_clientid; |
3347 | p->arg.lock_owner.id = lsp->ls_id; | 3347 | p->arg.lock_owner.id = lsp->ls_id; |
3348 | p->lsp = lsp; | 3348 | p->lsp = lsp; |
3349 | atomic_inc(&lsp->ls_count); | 3349 | atomic_inc(&lsp->ls_count); |
diff --git a/fs/nfs/nfs4renewd.c b/fs/nfs/nfs4renewd.c index 208764069f61..ff947ecb8b81 100644 --- a/fs/nfs/nfs4renewd.c +++ b/fs/nfs/nfs4renewd.c | |||
@@ -127,7 +127,7 @@ nfs4_schedule_state_renewal(struct nfs_client *clp) | |||
127 | void | 127 | void |
128 | nfs4_renewd_prepare_shutdown(struct nfs_server *server) | 128 | nfs4_renewd_prepare_shutdown(struct nfs_server *server) |
129 | { | 129 | { |
130 | struct nfs_client *clp = server->nfs4_state; | 130 | struct nfs_client *clp = server->nfs_client; |
131 | 131 | ||
132 | if (!clp) | 132 | if (!clp) |
133 | return; | 133 | return; |
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index c0b6439f1f71..fa51a7d4c022 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -61,7 +61,7 @@ static LIST_HEAD(nfs4_clientid_list); | |||
61 | void | 61 | void |
62 | init_nfsv4_state(struct nfs_server *server) | 62 | init_nfsv4_state(struct nfs_server *server) |
63 | { | 63 | { |
64 | server->nfs4_state = NULL; | 64 | server->nfs_client = NULL; |
65 | INIT_LIST_HEAD(&server->nfs4_siblings); | 65 | INIT_LIST_HEAD(&server->nfs4_siblings); |
66 | } | 66 | } |
67 | 67 | ||
@@ -70,9 +70,9 @@ destroy_nfsv4_state(struct nfs_server *server) | |||
70 | { | 70 | { |
71 | kfree(server->mnt_path); | 71 | kfree(server->mnt_path); |
72 | server->mnt_path = NULL; | 72 | server->mnt_path = NULL; |
73 | if (server->nfs4_state) { | 73 | if (server->nfs_client) { |
74 | nfs4_put_client(server->nfs4_state); | 74 | nfs4_put_client(server->nfs_client); |
75 | server->nfs4_state = NULL; | 75 | server->nfs_client = NULL; |
76 | } | 76 | } |
77 | } | 77 | } |
78 | 78 | ||
@@ -306,7 +306,7 @@ nfs4_drop_state_owner(struct nfs4_state_owner *sp) | |||
306 | */ | 306 | */ |
307 | struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, struct rpc_cred *cred) | 307 | struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, struct rpc_cred *cred) |
308 | { | 308 | { |
309 | struct nfs_client *clp = server->nfs4_state; | 309 | struct nfs_client *clp = server->nfs_client; |
310 | struct nfs4_state_owner *sp, *new; | 310 | struct nfs4_state_owner *sp, *new; |
311 | 311 | ||
312 | get_rpccred(cred); | 312 | get_rpccred(cred); |
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 04748ab9ed55..99926067eca4 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -529,7 +529,7 @@ static int encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const s | |||
529 | if (iap->ia_valid & ATTR_MODE) | 529 | if (iap->ia_valid & ATTR_MODE) |
530 | len += 4; | 530 | len += 4; |
531 | if (iap->ia_valid & ATTR_UID) { | 531 | if (iap->ia_valid & ATTR_UID) { |
532 | owner_namelen = nfs_map_uid_to_name(server->nfs4_state, iap->ia_uid, owner_name); | 532 | owner_namelen = nfs_map_uid_to_name(server->nfs_client, iap->ia_uid, owner_name); |
533 | if (owner_namelen < 0) { | 533 | if (owner_namelen < 0) { |
534 | printk(KERN_WARNING "nfs: couldn't resolve uid %d to string\n", | 534 | printk(KERN_WARNING "nfs: couldn't resolve uid %d to string\n", |
535 | iap->ia_uid); | 535 | iap->ia_uid); |
@@ -541,7 +541,7 @@ static int encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const s | |||
541 | len += 4 + (XDR_QUADLEN(owner_namelen) << 2); | 541 | len += 4 + (XDR_QUADLEN(owner_namelen) << 2); |
542 | } | 542 | } |
543 | if (iap->ia_valid & ATTR_GID) { | 543 | if (iap->ia_valid & ATTR_GID) { |
544 | owner_grouplen = nfs_map_gid_to_group(server->nfs4_state, iap->ia_gid, owner_group); | 544 | owner_grouplen = nfs_map_gid_to_group(server->nfs_client, iap->ia_gid, owner_group); |
545 | if (owner_grouplen < 0) { | 545 | if (owner_grouplen < 0) { |
546 | printk(KERN_WARNING "nfs4: couldn't resolve gid %d to string\n", | 546 | printk(KERN_WARNING "nfs4: couldn't resolve gid %d to string\n", |
547 | iap->ia_gid); | 547 | iap->ia_gid); |
@@ -3051,9 +3051,9 @@ static int decode_getfattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, cons | |||
3051 | fattr->mode |= fmode; | 3051 | fattr->mode |= fmode; |
3052 | if ((status = decode_attr_nlink(xdr, bitmap, &fattr->nlink)) != 0) | 3052 | if ((status = decode_attr_nlink(xdr, bitmap, &fattr->nlink)) != 0) |
3053 | goto xdr_error; | 3053 | goto xdr_error; |
3054 | if ((status = decode_attr_owner(xdr, bitmap, server->nfs4_state, &fattr->uid)) != 0) | 3054 | if ((status = decode_attr_owner(xdr, bitmap, server->nfs_client, &fattr->uid)) != 0) |
3055 | goto xdr_error; | 3055 | goto xdr_error; |
3056 | if ((status = decode_attr_group(xdr, bitmap, server->nfs4_state, &fattr->gid)) != 0) | 3056 | if ((status = decode_attr_group(xdr, bitmap, server->nfs_client, &fattr->gid)) != 0) |
3057 | goto xdr_error; | 3057 | goto xdr_error; |
3058 | if ((status = decode_attr_rdev(xdr, bitmap, &fattr->rdev)) != 0) | 3058 | if ((status = decode_attr_rdev(xdr, bitmap, &fattr->rdev)) != 0) |
3059 | goto xdr_error; | 3059 | goto xdr_error; |
@@ -3254,7 +3254,7 @@ static int decode_delegation(struct xdr_stream *xdr, struct nfs_openres *res) | |||
3254 | if (decode_space_limit(xdr, &res->maxsize) < 0) | 3254 | if (decode_space_limit(xdr, &res->maxsize) < 0) |
3255 | return -EIO; | 3255 | return -EIO; |
3256 | } | 3256 | } |
3257 | return decode_ace(xdr, NULL, res->server->nfs4_state); | 3257 | return decode_ace(xdr, NULL, res->server->nfs_client); |
3258 | } | 3258 | } |
3259 | 3259 | ||
3260 | static int decode_open(struct xdr_stream *xdr, struct nfs_openres *res) | 3260 | static int decode_open(struct xdr_stream *xdr, struct nfs_openres *res) |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index d03ede5b1aca..ab4c78ee840c 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -1141,7 +1141,7 @@ static struct rpc_clnt *nfs4_create_client(struct nfs_server *server, | |||
1141 | list_add_tail(&server->nfs4_siblings, &clp->cl_superblocks); | 1141 | list_add_tail(&server->nfs4_siblings, &clp->cl_superblocks); |
1142 | clnt = rpc_clone_client(clp->cl_rpcclient); | 1142 | clnt = rpc_clone_client(clp->cl_rpcclient); |
1143 | if (!IS_ERR(clnt)) | 1143 | if (!IS_ERR(clnt)) |
1144 | server->nfs4_state = clp; | 1144 | server->nfs_client = clp; |
1145 | up_write(&clp->cl_sem); | 1145 | up_write(&clp->cl_sem); |
1146 | clp = NULL; | 1146 | clp = NULL; |
1147 | 1147 | ||
@@ -1151,7 +1151,7 @@ static struct rpc_clnt *nfs4_create_client(struct nfs_server *server, | |||
1151 | return clnt; | 1151 | return clnt; |
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | if (server->nfs4_state->cl_idmap == NULL) { | 1154 | if (server->nfs_client->cl_idmap == NULL) { |
1155 | dprintk("%s: failed to create idmapper.\n", __FUNCTION__); | 1155 | dprintk("%s: failed to create idmapper.\n", __FUNCTION__); |
1156 | return ERR_PTR(-ENOMEM); | 1156 | return ERR_PTR(-ENOMEM); |
1157 | } | 1157 | } |
@@ -1416,7 +1416,7 @@ static inline char *nfs4_dup_path(const struct dentry *dentry) | |||
1416 | static struct super_block *nfs4_clone_sb(struct nfs_server *server, struct nfs_clone_mount *data) | 1416 | static struct super_block *nfs4_clone_sb(struct nfs_server *server, struct nfs_clone_mount *data) |
1417 | { | 1417 | { |
1418 | const struct dentry *dentry = data->dentry; | 1418 | const struct dentry *dentry = data->dentry; |
1419 | struct nfs_client *clp = server->nfs4_state; | 1419 | struct nfs_client *clp = server->nfs_client; |
1420 | struct super_block *sb; | 1420 | struct super_block *sb; |
1421 | 1421 | ||
1422 | server->fsid = data->fattr->fsid; | 1422 | server->fsid = data->fattr->fsid; |
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index 4db90df2aed0..fc20d6b934fb 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
@@ -43,7 +43,7 @@ struct nfs_server { | |||
43 | */ | 43 | */ |
44 | char ip_addr[16]; | 44 | char ip_addr[16]; |
45 | char * mnt_path; | 45 | char * mnt_path; |
46 | struct nfs_client * nfs4_state; /* all NFSv4 state starts here */ | 46 | struct nfs_client * nfs_client; /* all NFSv4 state starts here */ |
47 | struct list_head nfs4_siblings; /* List of other nfs_server structs | 47 | struct list_head nfs4_siblings; /* List of other nfs_server structs |
48 | * that share the same clientid | 48 | * that share the same clientid |
49 | */ | 49 | */ |