Home
last modified time | relevance | path

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

/fs/nfsd/
Dnfs4layouts.c497 struct nfsd4_layoutreturn *lrp) in nfsd4_return_file_layouts() argument
505 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, in nfsd4_return_file_layouts()
506 false, lrp->lr_layout_type, in nfsd4_return_file_layouts()
509 trace_layout_return_lookup_fail(&lrp->lr_sid); in nfsd4_return_file_layouts()
515 if (layouts_overlapping(lp, &lrp->lr_seg)) { in nfsd4_return_file_layouts()
516 nfsd4_return_file_layout(lp, &lrp->lr_seg, &reaplist); in nfsd4_return_file_layouts()
522 nfs4_inc_and_copy_stateid(&lrp->lr_sid, &ls->ls_stid); in nfsd4_return_file_layouts()
523 lrp->lrs_present = 1; in nfsd4_return_file_layouts()
527 lrp->lrs_present = 0; in nfsd4_return_file_layouts()
540 struct nfsd4_layoutreturn *lrp) in nfsd4_return_client_layouts() argument
[all …]
Dpnfs.h60 struct nfsd4_layoutreturn *lrp);
63 struct nfsd4_layoutreturn *lrp);
Dnfs4xdr.c1625 struct nfsd4_layoutreturn *lrp) in nfsd4_decode_layoutreturn() argument
1630 lrp->lr_reclaim = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1631 lrp->lr_layout_type = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1632 lrp->lr_seg.iomode = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1633 lrp->lr_return_type = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1634 if (lrp->lr_return_type == RETURN_FILE) { in nfsd4_decode_layoutreturn()
1636 p = xdr_decode_hyper(p, &lrp->lr_seg.offset); in nfsd4_decode_layoutreturn()
1637 p = xdr_decode_hyper(p, &lrp->lr_seg.length); in nfsd4_decode_layoutreturn()
1639 status = nfsd4_decode_stateid(argp, &lrp->lr_sid); in nfsd4_decode_layoutreturn()
1644 lrp->lrf_body_len = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
[all …]
Dnfs4proc.c1479 struct nfsd4_layoutreturn *lrp) in nfsd4_layoutreturn() argument
1489 if (!nfsd4_layout_verify(current_fh->fh_export, lrp->lr_layout_type)) in nfsd4_layoutreturn()
1492 switch (lrp->lr_seg.iomode) { in nfsd4_layoutreturn()
1499 lrp->lr_seg.iomode); in nfsd4_layoutreturn()
1504 switch (lrp->lr_return_type) { in nfsd4_layoutreturn()
1506 nfserr = nfsd4_return_file_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1510 nfserr = nfsd4_return_client_layouts(rqstp, cstate, lrp); in nfsd4_layoutreturn()
1514 lrp->lr_return_type); in nfsd4_layoutreturn()
/fs/nfs/
Dpnfs.c991 struct nfs4_layoutreturn *lrp; in pnfs_send_layoutreturn() local
994 lrp = kzalloc(sizeof(*lrp), GFP_NOFS); in pnfs_send_layoutreturn()
995 if (unlikely(lrp == NULL)) { in pnfs_send_layoutreturn()
1004 nfs4_stateid_copy(&lrp->args.stateid, stateid); in pnfs_send_layoutreturn()
1005 lrp->args.layout_type = NFS_SERVER(ino)->pnfs_curr_ld->id; in pnfs_send_layoutreturn()
1006 lrp->args.inode = ino; in pnfs_send_layoutreturn()
1007 lrp->args.range.iomode = iomode; in pnfs_send_layoutreturn()
1008 lrp->args.range.offset = 0; in pnfs_send_layoutreturn()
1009 lrp->args.range.length = NFS4_MAX_UINT64; in pnfs_send_layoutreturn()
1010 lrp->args.layout = lo; in pnfs_send_layoutreturn()
[all …]
Dnfs4proc.c8520 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_prepare() local
8523 nfs41_setup_sequence(lrp->clp->cl_session, in nfs4_layoutreturn_prepare()
8524 &lrp->args.seq_args, in nfs4_layoutreturn_prepare()
8525 &lrp->res.seq_res, in nfs4_layoutreturn_prepare()
8531 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_done() local
8536 if (!nfs41_sequence_process(task, &lrp->res.seq_res)) in nfs4_layoutreturn_done()
8539 server = NFS_SERVER(lrp->args.inode); in nfs4_layoutreturn_done()
8548 nfs4_sequence_free_slot(&lrp->res.seq_res); in nfs4_layoutreturn_done()
8557 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_release() local
8558 struct pnfs_layout_hdr *lo = lrp->args.layout; in nfs4_layoutreturn_release()
[all …]
Dpnfs.h233 extern int nfs4_proc_layoutreturn(struct nfs4_layoutreturn *lrp, bool sync);
/fs/xfs/libxfs/
Dxfs_btree.c2378 union xfs_btree_rec *lrp; /* left record pointer */ in xfs_btree_lshift() local
2380 lrp = xfs_btree_rec_addr(cur, lrecs, left); in xfs_btree_lshift()
2383 xfs_btree_copy_recs(cur, lrp, rrp, 1); in xfs_btree_lshift()
2387 xfs_btree_rec_addr(cur, lrecs - 1, left), lrp)); in xfs_btree_lshift()
2585 union xfs_btree_rec *lrp; in xfs_btree_rshift() local
2588 lrp = xfs_btree_rec_addr(cur, lrecs, left); in xfs_btree_rshift()
2594 xfs_btree_copy_recs(cur, rrp, lrp, 1); in xfs_btree_rshift()
2771 union xfs_btree_rec *lrp; /* left record pointer */ in __xfs_btree_split() local
2774 lrp = xfs_btree_rec_addr(cur, src_index, left); in __xfs_btree_split()
2778 xfs_btree_copy_recs(cur, rrp, lrp, rrecs); in __xfs_btree_split()
[all …]