Lines Matching refs:sp
1074 struct nfs4_state_owner *sp, fmode_t fmode, int flags, in nfs4_opendata_alloc() argument
1099 p->o_arg.seqid = alloc_seqid(&sp->so_seqid, gfp_mask); in nfs4_opendata_alloc()
1105 p->owner = sp; in nfs4_opendata_alloc()
1106 atomic_inc(&sp->so_count); in nfs4_opendata_alloc()
1120 p->o_arg.id.create_time = ktime_to_ns(sp->so_seqid.create_time); in nfs4_opendata_alloc()
1121 p->o_arg.id.uniquifier = sp->so_seqid.owner_id; in nfs4_opendata_alloc()
1769 static int nfs4_open_reclaim(struct nfs4_state_owner *sp, struct nfs4_state *state) in nfs4_open_reclaim() argument
1965 struct nfs4_state_owner *sp = data->owner; in nfs4_open_prepare() local
1966 struct nfs_client *clp = sp->so_server->nfs_client; in nfs4_open_prepare()
2285 static int nfs4_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state) in nfs4_open_expired() argument
2313 static int nfs40_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state) in nfs40_open_expired() argument
2317 return nfs4_open_expired(sp, state); in nfs40_open_expired()
2391 static int nfs41_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state) in nfs41_open_expired() argument
2398 status = nfs4_open_expired(sp, state); in nfs41_open_expired()
2435 struct nfs4_state_owner *sp = opendata->owner; in _nfs4_open_and_get_state() local
2436 struct nfs_server *server = sp->so_server; in _nfs4_open_and_get_state()
2442 seq = raw_seqcount_begin(&sp->so_reclaim_seqcount); in _nfs4_open_and_get_state()
2471 ret = nfs4_opendata_access(sp->so_cred, opendata, state, fmode, flags); in _nfs4_open_and_get_state()
2477 if (read_seqcount_retry(&sp->so_reclaim_seqcount, seq)) in _nfs4_open_and_get_state()
2493 struct nfs4_state_owner *sp; in _nfs4_do_open() local
2509 sp = nfs4_get_state_owner(server, cred, GFP_KERNEL); in _nfs4_do_open()
2510 if (sp == NULL) { in _nfs4_do_open()
2522 opendata = nfs4_opendata_alloc(dentry, sp, fmode, flags, in _nfs4_do_open()
2544 opendata->state = nfs4_get_open_state(d_inode(dentry), sp); in _nfs4_do_open()
2576 nfs4_put_state_owner(sp); in _nfs4_do_open()
2583 nfs4_put_state_owner(sp); in _nfs4_do_open()
2775 struct nfs4_state_owner *sp = calldata->state->owner; in nfs4_free_closedata() local
2782 nfs4_put_state_owner(sp); in nfs4_free_closedata()
2936 struct nfs4_state_owner *sp = state->owner; in nfs4_do_close() local
2989 nfs4_put_state_owner(sp); in nfs4_do_close()
5686 struct nfs4_state_owner *sp = state->owner; in nfs4_proc_unlck() local
5699 mutex_lock(&sp->so_delegreturn_mutex); in nfs4_proc_unlck()
5704 mutex_unlock(&sp->so_delegreturn_mutex); in nfs4_proc_unlck()
5708 mutex_unlock(&sp->so_delegreturn_mutex); in nfs4_proc_unlck()
6072 struct nfs4_state_owner *sp = state->owner; in _nfs4_proc_setlk() local
6087 mutex_lock(&sp->so_delegreturn_mutex); in _nfs4_proc_setlk()
6095 mutex_unlock(&sp->so_delegreturn_mutex); in _nfs4_proc_setlk()
6099 mutex_unlock(&sp->so_delegreturn_mutex); in _nfs4_proc_setlk()
6915 struct nfs41_state_protection *sp) in nfs4_sp4_select_mode() argument
6926 if (sp->how == SP4_MACH_CRED) { in nfs4_sp4_select_mode()
6930 if (test_bit(i, sp->enforce.u.longs)) in nfs4_sp4_select_mode()
6932 if (test_bit(i, sp->allow.u.longs)) in nfs4_sp4_select_mode()
6938 if (sp->enforce.u.words[i] & ~supported_enforce[i]) { in nfs4_sp4_select_mode()
6953 if (test_bit(OP_BIND_CONN_TO_SESSION, sp->enforce.u.longs) && in nfs4_sp4_select_mode()
6954 test_bit(OP_CREATE_SESSION, sp->enforce.u.longs) && in nfs4_sp4_select_mode()
6955 test_bit(OP_DESTROY_SESSION, sp->enforce.u.longs) && in nfs4_sp4_select_mode()
6956 test_bit(OP_DESTROY_CLIENTID, sp->enforce.u.longs)) { in nfs4_sp4_select_mode()
6965 if (test_bit(OP_CLOSE, sp->allow.u.longs) && in nfs4_sp4_select_mode()
6966 test_bit(OP_LOCKU, sp->allow.u.longs)) { in nfs4_sp4_select_mode()
6971 if (test_bit(OP_SECINFO, sp->allow.u.longs) && in nfs4_sp4_select_mode()
6972 test_bit(OP_SECINFO_NO_NAME, sp->allow.u.longs)) { in nfs4_sp4_select_mode()
6977 if (test_bit(OP_TEST_STATEID, sp->allow.u.longs) && in nfs4_sp4_select_mode()
6978 test_bit(OP_FREE_STATEID, sp->allow.u.longs)) { in nfs4_sp4_select_mode()
6983 if (test_bit(OP_WRITE, sp->allow.u.longs)) { in nfs4_sp4_select_mode()
6988 if (test_bit(OP_COMMIT, sp->allow.u.longs)) { in nfs4_sp4_select_mode()