Lines Matching defs:stateid

339  * Compare 2 layout stateid sequence ids, to see which is newer,
408 * Update the seqid of a layout stateid after receiving
542 const nfs4_stateid *stateid)
551 lseg->pls_seq = be32_to_cpu(stateid->seqid);
1014 const nfs4_stateid *stateid)
1016 u32 seqid = be32_to_cpu(stateid->seqid);
1085 const nfs4_stateid *stateid,
1135 nfs4_stateid_copy(&lgp->args.stateid, stateid);
1169 const nfs4_stateid *stateid)
1178 if (stateid) {
1183 pnfs_set_layout_stateid(lo, stateid, NULL, true);
1195 nfs4_stateid *stateid,
1206 nfs4_stateid_copy(stateid, &lo->plh_stateid);
1210 stateid->seqid = cpu_to_be32(lo->plh_return_seq);
1216 pnfs_barrier_update(lo, be32_to_cpu(stateid->seqid));
1223 const nfs4_stateid *stateid,
1234 nfs4_stateid_copy(&args->stateid, stateid);
1239 const nfs4_stateid *stateid,
1262 pnfs_init_layoutreturn_args(&lrp->args, lo, stateid, iomode);
1307 nfs4_stateid stateid;
1311 send = pnfs_prepare_layoutreturn(lo, &stateid, &cred, &iomode);
1315 pnfs_send_layoutreturn(lo, &stateid, &cred, iomode, false);
1341 nfs4_stateid stateid;
1379 send = pnfs_prepare_layoutreturn(lo, &stateid, &cred, NULL);
1382 status = pnfs_send_layoutreturn(lo, &stateid, &cred, IOMODE_ANY, true);
1431 nfs4_stateid stateid;
1500 layoutreturn = pnfs_prepare_layoutreturn(lo, &stateid, &lc_cred, &iomode);
1506 pnfs_init_layoutreturn_args(args, lo, &stateid, iomode);
1523 pnfs_send_layoutreturn(lo, &stateid, &lc_cred, iomode, true);
1561 if (!nfs4_layout_refresh_old_stateid(&arg->stateid,
1585 nfs4_stateid_match_other(&args->stateid, &lo->plh_stateid))
1592 res_stateid = &res->stateid;
1595 pnfs_layoutreturn_free_lsegs(lo, &args->stateid, &args->range,
1598 trace_nfs4_layoutreturn_on_close(args->inode, &args->stateid, ret);
1982 nfs4_stateid stateid;
2083 * Choose a stateid for the LAYOUTGET. If we don't have a layout
2084 * stateid, or it has been invalidated, then we must use the open
2085 * stateid.
2111 NULL, &stateid, NULL);
2124 nfs4_stateid_copy(&stateid, &lo->plh_stateid);
2145 lgp = pnfs_alloc_init_layoutget_args(ino, ctx, &stateid, &arg, gfp_flags);
2359 * the "current stateid" value, the layout type, or the
2425 pnfs_init_lseg(lo, lseg, &res->range, &res->stateid);
2437 if (nfs4_stateid_match_other(&lo->plh_stateid, &res->stateid)) {
2439 if (pnfs_layout_stateid_blocked(lo, &res->stateid)) {
2445 pnfs_set_layout_stateid(lo, &res->stateid, lgp->cred, false);
2459 pnfs_set_layout_stateid(lo, &res->stateid, lgp->cred, true);
2485 * @seq: stateid seqid to match
2563 nfs4_stateid stateid;
2566 return_now = pnfs_prepare_layoutreturn(lo, &stateid, &cred, &iomode);
2569 pnfs_send_layoutreturn(lo, &stateid, &cred, iomode, false);
2656 nfs4_stateid stateid;
2676 !pnfs_prepare_layoutreturn(lo, &stateid, &cred, &iomode)) {
2685 pnfs_send_layoutreturn(lo, &stateid, &cred, iomode, false);
3247 nfs4_stateid_copy(&data->args.stateid, &nfsi->layout->plh_stateid);