Lines Matching refs:stid

79 static void nfs4_free_ol_stateid(struct nfs4_stid *stid);
682 struct nfs4_stid *stid; in nfs4_alloc_stid() local
685 stid = kmem_cache_zalloc(slab, GFP_KERNEL); in nfs4_alloc_stid()
686 if (!stid) in nfs4_alloc_stid()
691 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 0, 0, GFP_NOWAIT); in nfs4_alloc_stid()
697 stid->sc_free = sc_free; in nfs4_alloc_stid()
698 stid->sc_client = cl; in nfs4_alloc_stid()
699 stid->sc_stateid.si_opaque.so_id = new_id; in nfs4_alloc_stid()
700 stid->sc_stateid.si_opaque.so_clid = cl->cl_clientid; in nfs4_alloc_stid()
702 refcount_set(&stid->sc_count, 1); in nfs4_alloc_stid()
703 spin_lock_init(&stid->sc_lock); in nfs4_alloc_stid()
714 return stid; in nfs4_alloc_stid()
716 kmem_cache_free(slab, stid); in nfs4_alloc_stid()
722 struct nfs4_stid *stid; in nfs4_alloc_open_stateid() local
724 stid = nfs4_alloc_stid(clp, stateid_slab, nfs4_free_ol_stateid); in nfs4_alloc_open_stateid()
725 if (!stid) in nfs4_alloc_open_stateid()
728 return openlockstateid(stid); in nfs4_alloc_open_stateid()
731 static void nfs4_free_deleg(struct nfs4_stid *stid) in nfs4_free_deleg() argument
733 kmem_cache_free(deleg_slab, stid); in nfs4_free_deleg()
874 nfs4_inc_and_copy_stateid(stateid_t *dst, struct nfs4_stid *stid) in nfs4_inc_and_copy_stateid() argument
876 stateid_t *src = &stid->sc_stateid; in nfs4_inc_and_copy_stateid()
878 spin_lock(&stid->sc_lock); in nfs4_inc_and_copy_stateid()
882 spin_unlock(&stid->sc_lock); in nfs4_inc_and_copy_stateid()
1239 static void nfs4_free_ol_stateid(struct nfs4_stid *stid) in nfs4_free_ol_stateid() argument
1241 struct nfs4_ol_stateid *stp = openlockstateid(stid); in nfs4_free_ol_stateid()
1247 kmem_cache_free(stateid_slab, stid); in nfs4_free_ol_stateid()
1250 static void nfs4_free_lock_stateid(struct nfs4_stid *stid) in nfs4_free_lock_stateid() argument
1252 struct nfs4_ol_stateid *stp = openlockstateid(stid); in nfs4_free_lock_stateid()
1259 nfs4_free_ol_stateid(stid); in nfs4_free_lock_stateid()