diff options
author | David Howells <dhowells@redhat.com> | 2006-08-22 20:06:08 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:31 -0400 |
commit | adfa6f980bd46974e6b32b22dd0c45e3f52063f4 (patch) | |
tree | 7dbc86985faa0fce0e73103979262c1593ea3a3b /fs/nfs/delegation.c | |
parent | 5ae1fbce142b67bf59e15fb1af96e88a96abde7b (diff) |
NFS: Rename struct nfs4_client to struct nfs_client
Rename struct nfs4_client to struct nfs_client so that it can become the basis
for a general client record for NFS2 and NFS3 in addition to NFS4.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/delegation.c')
-rw-r--r-- | fs/nfs/delegation.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 9540a316c05e..5a1105c258bd 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c | |||
@@ -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 nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; | 117 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; |
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 nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; | 179 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; |
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 nfs4_client *clp = NFS_SB(sb)->nfs4_state; | 211 | struct nfs_client *clp = NFS_SB(sb)->nfs4_state; |
212 | struct nfs_delegation *delegation; | 212 | struct nfs_delegation *delegation; |
213 | struct inode *inode; | 213 | struct inode *inode; |
214 | 214 | ||
@@ -232,7 +232,7 @@ restart: | |||
232 | 232 | ||
233 | int nfs_do_expire_all_delegations(void *ptr) | 233 | int nfs_do_expire_all_delegations(void *ptr) |
234 | { | 234 | { |
235 | struct nfs4_client *clp = ptr; | 235 | struct nfs_client *clp = ptr; |
236 | struct nfs_delegation *delegation; | 236 | struct nfs_delegation *delegation; |
237 | struct inode *inode; | 237 | struct inode *inode; |
238 | 238 | ||
@@ -258,7 +258,7 @@ out: | |||
258 | module_put_and_exit(0); | 258 | module_put_and_exit(0); |
259 | } | 259 | } |
260 | 260 | ||
261 | void nfs_expire_all_delegations(struct nfs4_client *clp) | 261 | void nfs_expire_all_delegations(struct nfs_client *clp) |
262 | { | 262 | { |
263 | struct task_struct *task; | 263 | struct task_struct *task; |
264 | 264 | ||
@@ -276,7 +276,7 @@ void nfs_expire_all_delegations(struct nfs4_client *clp) | |||
276 | /* | 276 | /* |
277 | * Return all delegations following an NFS4ERR_CB_PATH_DOWN error. | 277 | * Return all delegations following an NFS4ERR_CB_PATH_DOWN error. |
278 | */ | 278 | */ |
279 | void nfs_handle_cb_pathdown(struct nfs4_client *clp) | 279 | void nfs_handle_cb_pathdown(struct nfs_client *clp) |
280 | { | 280 | { |
281 | struct nfs_delegation *delegation; | 281 | struct nfs_delegation *delegation; |
282 | struct inode *inode; | 282 | struct inode *inode; |
@@ -299,7 +299,7 @@ restart: | |||
299 | 299 | ||
300 | struct recall_threadargs { | 300 | struct recall_threadargs { |
301 | struct inode *inode; | 301 | struct inode *inode; |
302 | struct nfs4_client *clp; | 302 | struct nfs_client *clp; |
303 | const nfs4_stateid *stateid; | 303 | const nfs4_stateid *stateid; |
304 | 304 | ||
305 | struct completion started; | 305 | struct completion started; |
@@ -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 nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; | 313 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; |
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 | ||
@@ -371,7 +371,7 @@ out_module_put: | |||
371 | /* | 371 | /* |
372 | * Retrieve the inode associated with a delegation | 372 | * Retrieve the inode associated with a delegation |
373 | */ | 373 | */ |
374 | struct inode *nfs_delegation_find_inode(struct nfs4_client *clp, const struct nfs_fh *fhandle) | 374 | struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle) |
375 | { | 375 | { |
376 | struct nfs_delegation *delegation; | 376 | struct nfs_delegation *delegation; |
377 | struct inode *res = NULL; | 377 | struct inode *res = NULL; |
@@ -389,7 +389,7 @@ struct inode *nfs_delegation_find_inode(struct nfs4_client *clp, const struct nf | |||
389 | /* | 389 | /* |
390 | * Mark all delegations as needing to be reclaimed | 390 | * Mark all delegations as needing to be reclaimed |
391 | */ | 391 | */ |
392 | void nfs_delegation_mark_reclaim(struct nfs4_client *clp) | 392 | void nfs_delegation_mark_reclaim(struct nfs_client *clp) |
393 | { | 393 | { |
394 | struct nfs_delegation *delegation; | 394 | struct nfs_delegation *delegation; |
395 | spin_lock(&clp->cl_lock); | 395 | spin_lock(&clp->cl_lock); |
@@ -401,7 +401,7 @@ void nfs_delegation_mark_reclaim(struct nfs4_client *clp) | |||
401 | /* | 401 | /* |
402 | * Reap all unclaimed delegations after reboot recovery is done | 402 | * Reap all unclaimed delegations after reboot recovery is done |
403 | */ | 403 | */ |
404 | void nfs_delegation_reap_unclaimed(struct nfs4_client *clp) | 404 | void nfs_delegation_reap_unclaimed(struct nfs_client *clp) |
405 | { | 405 | { |
406 | struct nfs_delegation *delegation, *n; | 406 | struct nfs_delegation *delegation, *n; |
407 | LIST_HEAD(head); | 407 | LIST_HEAD(head); |
@@ -423,7 +423,7 @@ void nfs_delegation_reap_unclaimed(struct nfs4_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 nfs4_client *clp = NFS_SERVER(inode)->nfs4_state; | 426 | struct nfs_client *clp = NFS_SERVER(inode)->nfs4_state; |
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; |