Lines Matching refs: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);
1015 const nfs4_stateid *stateid)
1017 u32 seqid = be32_to_cpu(stateid->seqid);
1086 const nfs4_stateid *stateid,
1136 nfs4_stateid_copy(&lgp->args.stateid, stateid);
1171 const nfs4_stateid *stateid)
1180 if (stateid) {
1185 pnfs_set_layout_stateid(lo, stateid, NULL, true);
1197 nfs4_stateid *stateid,
1208 nfs4_stateid_copy(stateid, &lo->plh_stateid);
1212 stateid->seqid = cpu_to_be32(lo->plh_return_seq);
1218 pnfs_barrier_update(lo, be32_to_cpu(stateid->seqid));
1225 const nfs4_stateid *stateid,
1236 nfs4_stateid_copy(&args->stateid, stateid);
1241 const nfs4_stateid *stateid,
1264 pnfs_init_layoutreturn_args(&lrp->args, lo, stateid, iomode);
1309 nfs4_stateid stateid;
1313 send = pnfs_prepare_layoutreturn(lo, &stateid, &cred, &iomode);
1317 pnfs_send_layoutreturn(lo, &stateid, &cred, iomode, false);
1343 nfs4_stateid stateid;
1381 send = pnfs_prepare_layoutreturn(lo, &stateid, &cred, NULL);
1384 status = pnfs_send_layoutreturn(lo, &stateid, &cred, IOMODE_ANY, true);
1433 nfs4_stateid stateid;
1502 layoutreturn = pnfs_prepare_layoutreturn(lo, &stateid, &lc_cred, &iomode);
1508 pnfs_init_layoutreturn_args(args, lo, &stateid, iomode);
1525 pnfs_send_layoutreturn(lo, &stateid, &lc_cred, iomode, true);
1563 if (!nfs4_layout_refresh_old_stateid(&arg->stateid,
1588 nfs4_stateid_match_other(&args->stateid, &lo->plh_stateid))
1594 res_stateid = &res->stateid;
1597 arg_stateid = &args->stateid;
1599 trace_nfs4_layoutreturn_on_close(args->inode, &args->stateid, ret);
1985 nfs4_stateid stateid;
2076 * Choose a stateid for the LAYOUTGET. If we don't have a layout
2077 * stateid, or it has been invalidated, then we must use the open
2078 * stateid.
2104 NULL, &stateid, NULL);
2117 nfs4_stateid_copy(&stateid, &lo->plh_stateid);
2138 lgp = pnfs_alloc_init_layoutget_args(ino, ctx, &stateid, &arg, gfp_flags);
2343 * the "current stateid" value, the layout type, or the
2411 pnfs_init_lseg(lo, lseg, &res->range, &res->stateid);
2423 if (nfs4_stateid_match_other(&lo->plh_stateid, &res->stateid)) {
2425 if (pnfs_layout_stateid_blocked(lo, &res->stateid)) {
2431 pnfs_set_layout_stateid(lo, &res->stateid, lgp->cred, false);
2447 pnfs_set_layout_stateid(lo, &res->stateid, lgp->cred, true);
2474 * @seq: stateid seqid to match
2550 nfs4_stateid stateid;
2553 return_now = pnfs_prepare_layoutreturn(lo, &stateid, &cred, &iomode);
2556 pnfs_send_layoutreturn(lo, &stateid, &cred, iomode, false);
2643 nfs4_stateid stateid;
2663 !pnfs_prepare_layoutreturn(lo, &stateid, &cred, &iomode)) {
2672 pnfs_send_layoutreturn(lo, &stateid, &cred, iomode, false);
3237 nfs4_stateid_copy(&data->args.stateid, &nfsi->layout->plh_stateid);