• Home
  • Raw
  • Download

Lines Matching refs:sop

218 nfs4_get_stateowner(struct nfs4_stateowner *sop)  in nfs4_get_stateowner()  argument
220 atomic_inc(&sop->so_count); in nfs4_get_stateowner()
221 return sop; in nfs4_get_stateowner()
225 same_owner_str(struct nfs4_stateowner *sop, struct xdr_netobj *owner) in same_owner_str() argument
227 return (sop->so_owner.len == owner->len) && in same_owner_str()
228 0 == memcmp(sop->so_owner.data, owner->data, owner->len); in same_owner_str()
1073 static inline void nfs4_free_stateowner(struct nfs4_stateowner *sop) in nfs4_free_stateowner() argument
1075 kfree(sop->so_owner.data); in nfs4_free_stateowner()
1076 sop->so_ops->so_free(sop); in nfs4_free_stateowner()
1079 static void nfs4_put_stateowner(struct nfs4_stateowner *sop) in nfs4_put_stateowner() argument
1081 struct nfs4_client *clp = sop->so_client; in nfs4_put_stateowner()
1085 if (!atomic_dec_and_lock(&sop->so_count, &clp->cl_lock)) in nfs4_put_stateowner()
1087 sop->so_ops->so_unhash(sop); in nfs4_put_stateowner()
1089 nfs4_free_stateowner(sop); in nfs4_put_stateowner()
3338 struct nfs4_stateowner *sop; in alloc_stateowner() local
3340 sop = kmem_cache_alloc(slab, GFP_KERNEL); in alloc_stateowner()
3341 if (!sop) in alloc_stateowner()
3344 sop->so_owner.data = kmemdup(owner->data, owner->len, GFP_KERNEL); in alloc_stateowner()
3345 if (!sop->so_owner.data) { in alloc_stateowner()
3346 kmem_cache_free(slab, sop); in alloc_stateowner()
3349 sop->so_owner.len = owner->len; in alloc_stateowner()
3351 INIT_LIST_HEAD(&sop->so_stateids); in alloc_stateowner()
3352 sop->so_client = clp; in alloc_stateowner()
3353 init_nfs4_replay(&sop->so_replay); in alloc_stateowner()
3354 atomic_set(&sop->so_count, 1); in alloc_stateowner()
3355 return sop; in alloc_stateowner()
5024 struct nfs4_stateowner *sop = stp->st_stateowner; in nfs4_seqid_op_checks() local
5027 status = nfsd4_check_seqid(cstate, sop, seqid); in nfs4_seqid_op_checks()
5414 static void nfs4_unhash_lockowner(struct nfs4_stateowner *sop) in nfs4_unhash_lockowner() argument
5416 unhash_lockowner_locked(lockowner(sop)); in nfs4_unhash_lockowner()
5419 static void nfs4_free_lockowner(struct nfs4_stateowner *sop) in nfs4_free_lockowner() argument
5421 struct nfs4_lockowner *lo = lockowner(sop); in nfs4_free_lockowner()
6005 struct nfs4_stateowner *sop; in nfsd4_release_lockowner() local
6025 list_for_each_entry(sop, &clp->cl_ownerstr_hashtbl[hashval], in nfsd4_release_lockowner()
6028 if (sop->so_is_open_owner || !same_owner_str(sop, owner)) in nfsd4_release_lockowner()
6032 lo = lockowner(sop); in nfsd4_release_lockowner()
6033 list_for_each_entry(stp, &sop->so_stateids, st_perstateowner) { in nfsd4_release_lockowner()
6041 nfs4_get_stateowner(sop); in nfsd4_release_lockowner()