Lines Matching refs:sop
530 nfs4_get_stateowner(struct nfs4_stateowner *sop)
532 atomic_inc(&sop->so_count);
533 return sop;
537 same_owner_str(struct nfs4_stateowner *sop, struct xdr_netobj *owner)
539 return (sop->so_owner.len == owner->len) &&
540 0 == memcmp(sop->so_owner.data, owner->data, owner->len);
1455 static inline void nfs4_free_stateowner(struct nfs4_stateowner *sop)
1457 kfree(sop->so_owner.data);
1458 sop->so_ops->so_free(sop);
1461 static void nfs4_put_stateowner(struct nfs4_stateowner *sop)
1463 struct nfs4_client *clp = sop->so_client;
1467 if (!atomic_dec_and_lock(&sop->so_count, &clp->cl_lock))
1469 sop->so_ops->so_unhash(sop);
1471 nfs4_free_stateowner(sop);
4695 struct nfs4_stateowner *sop;
4697 sop = kmem_cache_alloc(slab, GFP_KERNEL);
4698 if (!sop)
4701 xdr_netobj_dup(&sop->so_owner, owner, GFP_KERNEL);
4702 if (!sop->so_owner.data) {
4703 kmem_cache_free(slab, sop);
4707 INIT_LIST_HEAD(&sop->so_stateids);
4708 sop->so_client = clp;
4709 init_nfs4_replay(&sop->so_replay);
4710 atomic_set(&sop->so_count, 1);
4711 return sop;
7160 struct nfs4_stateowner *sop = stp->st_stateowner;
7163 status = nfsd4_check_seqid(cstate, sop, seqid);
7623 static void nfs4_unhash_lockowner(struct nfs4_stateowner *sop)
7625 unhash_lockowner_locked(lockowner(sop));
7628 static void nfs4_free_lockowner(struct nfs4_stateowner *sop)
7630 struct nfs4_lockowner *lo = lockowner(sop);