Lines Matching refs:o_arg
1293 p->o_res.seqid = p->o_arg.seqid; in nfs4_init_opendata_res()
1295 p->o_res.server = p->o_arg.server; in nfs4_init_opendata_res()
1296 p->o_res.access_request = p->o_arg.access; in nfs4_init_opendata_res()
1327 p->o_arg.seqid = alloc_seqid(&sp->so_seqid, gfp_mask); in nfs4_opendata_alloc()
1328 if (IS_ERR(p->o_arg.seqid)) in nfs4_opendata_alloc()
1335 p->o_arg.open_flags = flags; in nfs4_opendata_alloc()
1336 p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); in nfs4_opendata_alloc()
1337 p->o_arg.claim = nfs4_map_atomic_open_claim(server, claim); in nfs4_opendata_alloc()
1338 p->o_arg.share_access = nfs4_map_atomic_open_share(server, in nfs4_opendata_alloc()
1341 p->o_arg.umask = current_umask(); in nfs4_opendata_alloc()
1342 p->o_arg.label = nfs4_label_copy(p->a_label, label); in nfs4_opendata_alloc()
1344 p->o_arg.u.attrs = &p->attrs; in nfs4_opendata_alloc()
1347 memcpy(p->o_arg.u.verifier.data, c->verf, in nfs4_opendata_alloc()
1348 sizeof(p->o_arg.u.verifier.data)); in nfs4_opendata_alloc()
1356 switch (p->o_arg.claim) { in nfs4_opendata_alloc()
1361 p->o_arg.access = NFS4_ACCESS_READ | in nfs4_opendata_alloc()
1367 p->o_arg.clientid = server->nfs_client->cl_clientid; in nfs4_opendata_alloc()
1368 p->o_arg.id.create_time = ktime_to_ns(sp->so_seqid.create_time); in nfs4_opendata_alloc()
1369 p->o_arg.id.uniquifier = sp->so_seqid.owner_id; in nfs4_opendata_alloc()
1370 p->o_arg.name = &dentry->d_name; in nfs4_opendata_alloc()
1371 p->o_arg.server = server; in nfs4_opendata_alloc()
1372 p->o_arg.bitmask = nfs4_bitmask(server, label); in nfs4_opendata_alloc()
1373 p->o_arg.open_bitmap = &nfs4_fattr_bitmap[0]; in nfs4_opendata_alloc()
1374 switch (p->o_arg.claim) { in nfs4_opendata_alloc()
1378 p->o_arg.fh = NFS_FH(dir); in nfs4_opendata_alloc()
1384 p->o_arg.fh = NFS_FH(d_inode(dentry)); in nfs4_opendata_alloc()
1388 p->c_arg.seqid = p->o_arg.seqid; in nfs4_opendata_alloc()
1411 nfs_free_seqid(p->o_arg.seqid); in nfs4_opendata_free()
1843 int open_mode = opendata->o_arg.open_flags; in nfs4_try_open_cached()
1844 fmode_t fmode = opendata->o_arg.fmode; in nfs4_try_open_cached()
1845 enum open_claim_type4 claim = opendata->o_arg.claim; in nfs4_try_open_cached()
1866 nfs_release_seqid(opendata->o_arg.seqid); in nfs4_try_open_cached()
1897 switch (data->o_arg.claim) { in nfs4_opendata_check_deleg()
1951 NULL, data->o_arg.fmode)) in _nfs4_opendata_reclaim_to_nfs4_state()
1963 switch (data->o_arg.claim) { in nfs4_opendata_get_inode()
2018 NULL, data->o_arg.fmode)) { in _nfs4_opendata_to_nfs4_state()
2023 nfs_release_seqid(data->o_arg.seqid); in _nfs4_opendata_to_nfs4_state()
2032 if (data->o_arg.claim == NFS4_OPEN_CLAIM_PREVIOUS) in nfs4_opendata_to_nfs4_state()
2094 int openflags = opendata->o_arg.open_flags; in nfs4_open_recover_helper()
2099 opendata->o_arg.fmode = fmode; in nfs4_open_recover_helper()
2100 opendata->o_arg.share_access = in nfs4_open_recover_helper()
2166 opendata->o_arg.u.delegation_type = delegation_type; in _nfs4_do_open_reclaim()
2269 nfs4_stateid_copy(&opendata->o_arg.u.delegation, stateid); in nfs4_open_delegation_recall()
2295 nfs4_setup_sequence(data->o_arg.server->nfs_client, in nfs4_open_confirm_prepare()
2327 nfs4_close_state(state, data->o_arg.fmode); in nfs4_open_confirm_release()
2385 enum open_claim_type4 claim = data->o_arg.claim; in nfs4_open_prepare()
2387 if (nfs_wait_on_sequence(data->o_arg.seqid, task) != 0) in nfs4_open_prepare()
2396 if (can_open_cached(data->state, data->o_arg.fmode, in nfs4_open_prepare()
2397 data->o_arg.open_flags, claim)) in nfs4_open_prepare()
2401 if (can_open_delegated(delegation, data->o_arg.fmode, claim)) in nfs4_open_prepare()
2406 data->o_arg.clientid = clp->cl_clientid; in nfs4_open_prepare()
2413 data->o_arg.open_bitmap = &nfs4_open_noattr_bitmap[0]; in nfs4_open_prepare()
2419 if (nfs4_setup_sequence(data->o_arg.server->nfs_client, in nfs4_open_prepare()
2420 &data->o_arg.seq_args, in nfs4_open_prepare()
2423 nfs_release_seqid(data->o_arg.seqid); in nfs4_open_prepare()
2426 data->o_arg.createmode = NFS4_CREATE_UNCHECKED; in nfs4_open_prepare()
2427 if (data->o_arg.open_flags & O_EXCL) { in nfs4_open_prepare()
2428 data->o_arg.createmode = NFS4_CREATE_EXCLUSIVE; in nfs4_open_prepare()
2430 data->o_arg.createmode = NFS4_CREATE_GUARDED; in nfs4_open_prepare()
2432 data->o_arg.createmode = NFS4_CREATE_EXCLUSIVE4_1; in nfs4_open_prepare()
2491 nfs4_close_state(state, data->o_arg.fmode); in nfs4_open_release()
2507 struct nfs_openargs *o_arg = &data->o_arg; in nfs4_run_open_task() local
2512 .rpc_argp = o_arg, in nfs4_run_open_task()
2532 nfs4_init_sequence(&o_arg->seq_args, &o_res->seq_res, 1, 1); in nfs4_run_open_task()
2536 nfs4_init_sequence(&o_arg->seq_args, &o_res->seq_res, 1, 0); in nfs4_run_open_task()
2625 struct nfs_openargs *o_arg = &data->o_arg; in _nfs4_proc_open() local
2634 !(o_arg->open_flags & O_CREAT)) in _nfs4_proc_open()
2641 if (o_arg->open_flags & O_CREAT) { in _nfs4_proc_open()
2642 if (o_arg->open_flags & O_EXCL) in _nfs4_proc_open()
2684 opendata->o_arg.open_flags = O_DIRECT; in _nfs4_open_expired()
2949 const __u32 *bitmask = opendata->o_arg.server->exclcreat_bitmask; in nfs4_exclusive_attrset()
2956 if (opendata->o_arg.createmode == NFS4_CREATE_EXCLUSIVE4_1) in nfs4_exclusive_attrset()
2960 ret = (opendata->o_arg.createmode == NFS4_CREATE_EXCLUSIVE) ? in nfs4_exclusive_attrset()
3026 switch(opendata->o_arg.claim) { in _nfs4_open_and_get_state()
3121 opendata->o_arg.open_bitmap = &nfs4_pnfs_open_bitmap[0]; in _nfs4_do_open()
3131 if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) && in _nfs4_do_open()
3132 (opendata->o_arg.createmode != NFS4_CREATE_GUARDED)) { in _nfs4_do_open()