Lines Matching refs:st_stid
604 stp->st_stid.sc_free = nfs4_free_ol_stateid; in nfs4_alloc_open_stateid()
1033 recalculate_deny_mode(stp->st_stid.sc_file); in reset_union_bmap_deny()
1041 struct nfs4_file *fp = stp->st_stid.sc_file; in release_all_access()
1048 nfs4_file_put_access(stp->st_stid.sc_file, i); in release_all_access()
1069 struct nfs4_file *fp = stp->st_stid.sc_file; in unhash_ol_stateid()
1100 file = find_any_file(stp->st_stid.sc_file); in nfs4_free_lock_stateid()
1114 struct nfs4_stid *s = &stp->st_stid; in put_ol_stateid_locked()
1137 nfs4_unhash_stid(&stp->st_stid); in unhash_lock_stateid()
1150 nfs4_put_stid(&stp->st_stid); in release_lock_stateid()
1178 fp = stp->st_stid.sc_file; in free_ol_stateid_reaplist()
1179 stp->st_stid.sc_free(&stp->st_stid); in free_ol_stateid_reaplist()
1211 lockdep_assert_held(&open_stp->st_stid.sc_client->cl_lock); in release_open_stateid_locks()
1226 lockdep_assert_held(&stp->st_stid.sc_client->cl_lock); in unhash_open_stateid()
1237 spin_lock(&stp->st_stid.sc_client->cl_lock); in release_open_stateid()
1240 spin_unlock(&stp->st_stid.sc_client->cl_lock); in release_open_stateid()
1268 nfs4_put_stid(&s->st_stid); in release_last_closed_stateid()
3397 atomic_inc(&stp->st_stid.sc_count); in init_open_stateid()
3398 stp->st_stid.sc_type = NFS4_OPEN_STID; in init_open_stateid()
3402 stp->st_stid.sc_file = fp; in init_open_stateid()
3425 struct nfsd_net *nn = net_generic(s->st_stid.sc_client->net, in move_to_close_lru()
3439 wait_event(close_wq, atomic_read(&s->st_stid.sc_count) == 2); in move_to_close_lru()
3442 if (s->st_stid.sc_file) { in move_to_close_lru()
3443 put_nfs4_file(s->st_stid.sc_file); in move_to_close_lru()
3444 s->st_stid.sc_file = NULL; in move_to_close_lru()
3454 nfs4_put_stid(&last->st_stid); in move_to_close_lru()
3833 atomic_inc(&ret->st_stid.sc_count); in nfsd4_find_existing_open()
4144 struct nfs4_client *clp = stp->st_stid.sc_client; in nfs4_open_delegation()
4182 dp = nfs4_set_delegation(clp, fh, stp->st_stid.sc_file, stp->st_clnt_odstate); in nfs4_open_delegation()
4282 update_stateid(&stp->st_stid.sc_stateid); in nfsd4_process_open2()
4283 memcpy(&open->op_stateid, &stp->st_stid.sc_stateid, sizeof(stateid_t)); in nfsd4_process_open2()
4303 STATEID_VAL(&stp->st_stid.sc_stateid)); in nfsd4_process_open2()
4324 nfs4_put_stid(&stp->st_stid); in nfsd4_process_open2()
4341 nfs4_put_stid(&open->op_stp->st_stid); in nfsd4_cleanup_open_state()
4474 nfs4_put_stid(&stp->st_stid); in nfs4_laundromat()
4814 if (check_for_locks(stp->st_stid.sc_file, in nfsd4_free_stateid()
4853 if (stp->st_stid.sc_type == NFS4_CLOSED_STID in nfs4_seqid_op_checks()
4854 || stp->st_stid.sc_type == NFS4_REVOKED_DELEG_STID) in nfs4_seqid_op_checks()
4862 status = check_stateid_generation(stateid, &stp->st_stid.sc_stateid, nfsd4_has_session(cstate)); in nfs4_seqid_op_checks()
4864 status = nfs4_check_fh(current_fh, &stp->st_stid); in nfs4_seqid_op_checks()
4897 nfs4_put_stid(&stp->st_stid); in nfs4_preprocess_seqid_op()
4915 nfs4_put_stid(&stp->st_stid); in nfs4_preprocess_confirmed_seqid_op()
4950 update_stateid(&stp->st_stid.sc_stateid); in nfsd4_open_confirm()
4951 memcpy(&oc->oc_resp_stateid, &stp->st_stid.sc_stateid, sizeof(stateid_t)); in nfsd4_open_confirm()
4954 __func__, oc->oc_seqid, STATEID_VAL(&stp->st_stid.sc_stateid)); in nfsd4_open_confirm()
4959 nfs4_put_stid(&stp->st_stid); in nfsd4_open_confirm()
4969 nfs4_file_put_access(stp->st_stid.sc_file, access); in nfs4_stateid_downgrade_bit()
5027 update_stateid(&stp->st_stid.sc_stateid); in nfsd4_open_downgrade()
5028 memcpy(&od->od_stateid, &stp->st_stid.sc_stateid, sizeof(stateid_t)); in nfsd4_open_downgrade()
5032 nfs4_put_stid(&stp->st_stid); in nfsd4_open_downgrade()
5040 struct nfs4_client *clp = s->st_stid.sc_client; in nfsd4_close_open_stateid()
5044 s->st_stid.sc_type = NFS4_CLOSED_STID; in nfsd4_close_open_stateid()
5083 update_stateid(&stp->st_stid.sc_stateid); in nfsd4_close()
5084 memcpy(&close->cl_stateid, &stp->st_stid.sc_stateid, sizeof(stateid_t)); in nfsd4_close()
5090 nfs4_put_stid(&stp->st_stid); in nfsd4_close()
5307 atomic_inc(&stp->st_stid.sc_count); in init_lock_stateid()
5308 stp->st_stid.sc_type = NFS4_LOCK_STID; in init_lock_stateid()
5311 stp->st_stid.sc_file = fp; in init_lock_stateid()
5312 stp->st_stid.sc_free = nfs4_free_lock_stateid; in init_lock_stateid()
5333 if (lst->st_stid.sc_file == fp) { in find_lock_stateid()
5334 atomic_inc(&lst->st_stid.sc_count); in find_lock_stateid()
5383 struct nfs4_file *fp = lock_stp->st_stid.sc_file; in get_lock_access()
5400 struct nfs4_file *fi = ost->st_stid.sc_file; in lookup_or_create_lock_state()
5524 fp = lock_stp->st_stid.sc_file; in nfsd4_lock()
5572 update_stateid(&lock_stp->st_stid.sc_stateid); in nfsd4_lock()
5573 memcpy(&lock->lk_resp_stateid, &lock_stp->st_stid.sc_stateid, in nfsd4_lock()
5609 nfs4_put_stid(&lock_stp->st_stid); in nfsd4_lock()
5612 nfs4_put_stid(&open_stp->st_stid); in nfsd4_lock()
5738 filp = find_any_file(stp->st_stid.sc_file); in nfsd4_locku()
5767 update_stateid(&stp->st_stid.sc_stateid); in nfsd4_locku()
5768 memcpy(&locku->lu_stateid, &stp->st_stid.sc_stateid, sizeof(stateid_t)); in nfsd4_locku()
5773 nfs4_put_stid(&stp->st_stid); in nfsd4_locku()
5856 if (check_for_locks(stp->st_stid.sc_file, lo)) { in nfsd4_release_lockowner()
6090 struct nfs4_client *clp = lst->st_stid.sc_client; in nfsd_inject_add_lock_to_list()
6184 clp = stp->st_stid.sc_client; in nfsd_reap_locks()
6185 nfs4_put_stid(&stp->st_stid); in nfsd_reap_locks()