Lines Matching refs:stid
75 static void nfs4_free_ol_stateid(struct nfs4_stid *stid);
559 struct nfs4_stid *stid; in nfs4_alloc_stid() local
562 stid = kmem_cache_zalloc(slab, GFP_KERNEL); in nfs4_alloc_stid()
563 if (!stid) in nfs4_alloc_stid()
568 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 0, 0, GFP_NOWAIT); in nfs4_alloc_stid()
573 stid->sc_client = cl; in nfs4_alloc_stid()
574 stid->sc_stateid.si_opaque.so_id = new_id; in nfs4_alloc_stid()
575 stid->sc_stateid.si_opaque.so_clid = cl->cl_clientid; in nfs4_alloc_stid()
577 atomic_set(&stid->sc_count, 1); in nfs4_alloc_stid()
578 spin_lock_init(&stid->sc_lock); in nfs4_alloc_stid()
589 return stid; in nfs4_alloc_stid()
591 kmem_cache_free(slab, stid); in nfs4_alloc_stid()
597 struct nfs4_stid *stid; in nfs4_alloc_open_stateid() local
600 stid = nfs4_alloc_stid(clp, stateid_slab); in nfs4_alloc_open_stateid()
601 if (!stid) in nfs4_alloc_open_stateid()
604 stp = openlockstateid(stid); in nfs4_alloc_open_stateid()
609 static void nfs4_free_deleg(struct nfs4_stid *stid) in nfs4_free_deleg() argument
611 kmem_cache_free(deleg_slab, stid); in nfs4_free_deleg()
750 nfs4_inc_and_copy_stateid(stateid_t *dst, struct nfs4_stid *stid) in nfs4_inc_and_copy_stateid() argument
752 stateid_t *src = &stid->sc_stateid; in nfs4_inc_and_copy_stateid()
754 spin_lock(&stid->sc_lock); in nfs4_inc_and_copy_stateid()
758 spin_unlock(&stid->sc_lock); in nfs4_inc_and_copy_stateid()
1101 static void nfs4_free_ol_stateid(struct nfs4_stid *stid) in nfs4_free_ol_stateid() argument
1103 struct nfs4_ol_stateid *stp = openlockstateid(stid); in nfs4_free_ol_stateid()
1109 kmem_cache_free(stateid_slab, stid); in nfs4_free_ol_stateid()
1112 static void nfs4_free_lock_stateid(struct nfs4_stid *stid) in nfs4_free_lock_stateid() argument
1114 struct nfs4_ol_stateid *stp = openlockstateid(stid); in nfs4_free_lock_stateid()
1121 nfs4_free_ol_stateid(stid); in nfs4_free_lock_stateid()