diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-08-30 22:15:47 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-09-01 11:12:47 -0400 |
commit | 7c13f344cf8bec22301c5ed7ef1d90eecb57ba43 (patch) | |
tree | 41ed822e8992c9cc37775902349779f4d5273568 /fs/nfsd/state.h | |
parent | fff6ca9cc46857e5814cf687e5fb1b8a876766a4 (diff) |
nfsd4: drop most stateowner refcounting
Maybe we'll bring it back some day, but we don't have much real use for
it now.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index c425717715f6..f7114fc21dee 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -338,7 +338,6 @@ struct nfs4_replay { | |||
338 | * reaped by laundramat thread after lease period. | 338 | * reaped by laundramat thread after lease period. |
339 | */ | 339 | */ |
340 | struct nfs4_stateowner { | 340 | struct nfs4_stateowner { |
341 | struct kref so_ref; | ||
342 | struct list_head so_idhash; /* hash by so_id */ | 341 | struct list_head so_idhash; /* hash by so_id */ |
343 | struct list_head so_strhash; /* hash by op_name */ | 342 | struct list_head so_strhash; /* hash by op_name */ |
344 | struct list_head so_perclient; | 343 | struct list_head so_perclient; |
@@ -459,7 +458,7 @@ extern void nfs4_lock_state(void); | |||
459 | extern void nfs4_unlock_state(void); | 458 | extern void nfs4_unlock_state(void); |
460 | extern int nfs4_in_grace(void); | 459 | extern int nfs4_in_grace(void); |
461 | extern __be32 nfs4_check_open_reclaim(clientid_t *clid); | 460 | extern __be32 nfs4_check_open_reclaim(clientid_t *clid); |
462 | extern void nfs4_free_stateowner(struct kref *kref); | 461 | extern void nfs4_free_stateowner(struct nfs4_stateowner *sop); |
463 | extern int set_callback_cred(void); | 462 | extern int set_callback_cred(void); |
464 | extern void nfsd4_probe_callback(struct nfs4_client *clp); | 463 | extern void nfsd4_probe_callback(struct nfs4_client *clp); |
465 | extern void nfsd4_probe_callback_sync(struct nfs4_client *clp); | 464 | extern void nfsd4_probe_callback_sync(struct nfs4_client *clp); |
@@ -482,16 +481,4 @@ extern void nfsd4_remove_clid_dir(struct nfs4_client *clp); | |||
482 | extern void release_session_client(struct nfsd4_session *); | 481 | extern void release_session_client(struct nfsd4_session *); |
483 | extern __be32 nfs4_validate_stateid(stateid_t *, bool); | 482 | extern __be32 nfs4_validate_stateid(stateid_t *, bool); |
484 | 483 | ||
485 | static inline void | ||
486 | nfs4_put_stateowner(struct nfs4_stateowner *so) | ||
487 | { | ||
488 | kref_put(&so->so_ref, nfs4_free_stateowner); | ||
489 | } | ||
490 | |||
491 | static inline void | ||
492 | nfs4_get_stateowner(struct nfs4_stateowner *so) | ||
493 | { | ||
494 | kref_get(&so->so_ref); | ||
495 | } | ||
496 | |||
497 | #endif /* NFSD4_STATE_H */ | 484 | #endif /* NFSD4_STATE_H */ |