aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-08-30 22:15:47 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-09-01 11:12:47 -0400
commit7c13f344cf8bec22301c5ed7ef1d90eecb57ba43 (patch)
tree41ed822e8992c9cc37775902349779f4d5273568 /fs/nfsd/state.h
parentfff6ca9cc46857e5814cf687e5fb1b8a876766a4 (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.h15
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*/
340struct nfs4_stateowner { 340struct 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);
459extern void nfs4_unlock_state(void); 458extern void nfs4_unlock_state(void);
460extern int nfs4_in_grace(void); 459extern int nfs4_in_grace(void);
461extern __be32 nfs4_check_open_reclaim(clientid_t *clid); 460extern __be32 nfs4_check_open_reclaim(clientid_t *clid);
462extern void nfs4_free_stateowner(struct kref *kref); 461extern void nfs4_free_stateowner(struct nfs4_stateowner *sop);
463extern int set_callback_cred(void); 462extern int set_callback_cred(void);
464extern void nfsd4_probe_callback(struct nfs4_client *clp); 463extern void nfsd4_probe_callback(struct nfs4_client *clp);
465extern void nfsd4_probe_callback_sync(struct nfs4_client *clp); 464extern void nfsd4_probe_callback_sync(struct nfs4_client *clp);
@@ -482,16 +481,4 @@ extern void nfsd4_remove_clid_dir(struct nfs4_client *clp);
482extern void release_session_client(struct nfsd4_session *); 481extern void release_session_client(struct nfsd4_session *);
483extern __be32 nfs4_validate_stateid(stateid_t *, bool); 482extern __be32 nfs4_validate_stateid(stateid_t *, bool);
484 483
485static inline void
486nfs4_put_stateowner(struct nfs4_stateowner *so)
487{
488 kref_put(&so->so_ref, nfs4_free_stateowner);
489}
490
491static inline void
492nfs4_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 */