Home
last modified time | relevance | path

Searched refs:lrp (Results 1 – 8 of 8) sorted by relevance

/fs/nfsd/
Dnfs4layouts.c463 struct nfsd4_layoutreturn *lrp) in nfsd4_return_file_layouts() argument
471 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, in nfsd4_return_file_layouts()
472 false, lrp->lr_layout_type, in nfsd4_return_file_layouts()
475 trace_layout_return_lookup_fail(&lrp->lr_sid); in nfsd4_return_file_layouts()
481 if (layouts_overlapping(lp, &lrp->lr_seg)) { in nfsd4_return_file_layouts()
482 nfsd4_return_file_layout(lp, &lrp->lr_seg, &reaplist); in nfsd4_return_file_layouts()
488 nfs4_inc_and_copy_stateid(&lrp->lr_sid, &ls->ls_stid); in nfsd4_return_file_layouts()
489 lrp->lrs_present = 1; in nfsd4_return_file_layouts()
493 lrp->lrs_present = 0; in nfsd4_return_file_layouts()
506 struct nfsd4_layoutreturn *lrp) in nfsd4_return_client_layouts() argument
[all …]
Dpnfs.h47 struct nfsd4_layoutreturn *lrp);
50 struct nfsd4_layoutreturn *lrp);
Dnfs4xdr.c1629 struct nfsd4_layoutreturn *lrp) in nfsd4_decode_layoutreturn() argument
1634 lrp->lr_reclaim = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1635 lrp->lr_layout_type = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1636 lrp->lr_seg.iomode = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1637 lrp->lr_return_type = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1638 if (lrp->lr_return_type == RETURN_FILE) { in nfsd4_decode_layoutreturn()
1640 p = xdr_decode_hyper(p, &lrp->lr_seg.offset); in nfsd4_decode_layoutreturn()
1641 p = xdr_decode_hyper(p, &lrp->lr_seg.length); in nfsd4_decode_layoutreturn()
1643 status = nfsd4_decode_stateid(argp, &lrp->lr_sid); in nfsd4_decode_layoutreturn()
1648 lrp->lrf_body_len = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
[all …]
Dnfs4proc.c1386 struct nfsd4_layoutreturn *lrp) in nfsd4_layoutreturn() argument
1396 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
1399 switch (lrp->lr_seg.iomode) { in nfsd4_layoutreturn()
1406 lrp->lr_seg.iomode); in nfsd4_layoutreturn()
1411 switch (lrp->lr_return_type) { in nfsd4_layoutreturn()
1413 nfserr = nfsd4_return_file_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1417 nfserr = nfsd4_return_client_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1421 lrp->lr_return_type); in nfsd4_layoutreturn()
/fs/nfs/
Dpnfs.c956 struct nfs4_layoutreturn *lrp; in pnfs_send_layoutreturn() local
959 lrp = kzalloc(sizeof(*lrp), GFP_NOFS); in pnfs_send_layoutreturn()
960 if (unlikely(lrp == NULL)) { in pnfs_send_layoutreturn()
969 lrp->args.stateid = stateid; in pnfs_send_layoutreturn()
970 lrp->args.layout_type = NFS_SERVER(ino)->pnfs_curr_ld->id; in pnfs_send_layoutreturn()
971 lrp->args.inode = ino; in pnfs_send_layoutreturn()
972 lrp->args.range.iomode = iomode; in pnfs_send_layoutreturn()
973 lrp->args.range.offset = 0; in pnfs_send_layoutreturn()
974 lrp->args.range.length = NFS4_MAX_UINT64; in pnfs_send_layoutreturn()
975 lrp->args.layout = lo; in pnfs_send_layoutreturn()
[all …]
Dnfs4proc.c8057 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_prepare() local
8060 nfs41_setup_sequence(lrp->clp->cl_session, in nfs4_layoutreturn_prepare()
8061 &lrp->args.seq_args, in nfs4_layoutreturn_prepare()
8062 &lrp->res.seq_res, in nfs4_layoutreturn_prepare()
8068 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_done() local
8073 if (!nfs41_sequence_done(task, &lrp->res.seq_res)) in nfs4_layoutreturn_done()
8076 server = NFS_SERVER(lrp->args.inode); in nfs4_layoutreturn_done()
8093 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_release() local
8094 struct pnfs_layout_hdr *lo = lrp->args.layout; in nfs4_layoutreturn_release()
8099 if (lrp->res.lrs_present) in nfs4_layoutreturn_release()
[all …]
Dpnfs.h231 extern int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp, bool sync);
/fs/xfs/libxfs/
Dxfs_btree.c2079 union xfs_btree_rec *lrp; /* left record pointer */ in xfs_btree_lshift() local
2081 lrp = xfs_btree_rec_addr(cur, lrecs, left); in xfs_btree_lshift()
2084 xfs_btree_copy_recs(cur, lrp, rrp, 1); in xfs_btree_lshift()
2088 xfs_btree_rec_addr(cur, lrecs - 1, left), lrp)); in xfs_btree_lshift()
2267 union xfs_btree_rec *lrp; in xfs_btree_rshift() local
2270 lrp = xfs_btree_rec_addr(cur, lrecs, left); in xfs_btree_rshift()
2276 xfs_btree_copy_recs(cur, rrp, lrp, 1); in xfs_btree_rshift()
2445 union xfs_btree_rec *lrp; /* left record pointer */ in __xfs_btree_split() local
2448 lrp = xfs_btree_rec_addr(cur, src_index, left); in __xfs_btree_split()
2451 xfs_btree_copy_recs(cur, rrp, lrp, rrecs); in __xfs_btree_split()
[all …]