Lines Matching refs:sop
525 nfs4_get_stateowner(struct nfs4_stateowner *sop) in nfs4_get_stateowner() argument
527 atomic_inc(&sop->so_count); in nfs4_get_stateowner()
528 return sop; in nfs4_get_stateowner()
532 same_owner_str(struct nfs4_stateowner *sop, struct xdr_netobj *owner) in same_owner_str() argument
534 return (sop->so_owner.len == owner->len) && in same_owner_str()
535 0 == memcmp(sop->so_owner.data, owner->data, owner->len); in same_owner_str()
1444 static inline void nfs4_free_stateowner(struct nfs4_stateowner *sop) in nfs4_free_stateowner() argument
1446 kfree(sop->so_owner.data); in nfs4_free_stateowner()
1447 sop->so_ops->so_free(sop); in nfs4_free_stateowner()
1450 static void nfs4_put_stateowner(struct nfs4_stateowner *sop) in nfs4_put_stateowner() argument
1452 struct nfs4_client *clp = sop->so_client; in nfs4_put_stateowner()
1456 if (!atomic_dec_and_lock(&sop->so_count, &clp->cl_lock)) in nfs4_put_stateowner()
1458 sop->so_ops->so_unhash(sop); in nfs4_put_stateowner()
1460 nfs4_free_stateowner(sop); in nfs4_put_stateowner()
4447 struct nfs4_stateowner *sop; in alloc_stateowner() local
4449 sop = kmem_cache_alloc(slab, GFP_KERNEL); in alloc_stateowner()
4450 if (!sop) in alloc_stateowner()
4453 xdr_netobj_dup(&sop->so_owner, owner, GFP_KERNEL); in alloc_stateowner()
4454 if (!sop->so_owner.data) { in alloc_stateowner()
4455 kmem_cache_free(slab, sop); in alloc_stateowner()
4459 INIT_LIST_HEAD(&sop->so_stateids); in alloc_stateowner()
4460 sop->so_client = clp; in alloc_stateowner()
4461 init_nfs4_replay(&sop->so_replay); in alloc_stateowner()
4462 atomic_set(&sop->so_count, 1); in alloc_stateowner()
4463 return sop; in alloc_stateowner()
6634 struct nfs4_stateowner *sop = stp->st_stateowner; in nfs4_seqid_op_checks() local
6637 status = nfsd4_check_seqid(cstate, sop, seqid); in nfs4_seqid_op_checks()
7081 static void nfs4_unhash_lockowner(struct nfs4_stateowner *sop) in nfs4_unhash_lockowner() argument
7083 unhash_lockowner_locked(lockowner(sop)); in nfs4_unhash_lockowner()
7086 static void nfs4_free_lockowner(struct nfs4_stateowner *sop) in nfs4_free_lockowner() argument
7088 struct nfs4_lockowner *lo = lockowner(sop); in nfs4_free_lockowner()