• Home
  • Raw
  • Download

Lines Matching refs:range

60 		const struct pnfs_layout_range *range,
416 struct pnfs_layout_range range = { in nfs4_layout_refresh_old_stateid() local
436 err = pnfs_mark_matching_lsegs_return(lo, &head, &range, 0); in nfs4_layout_refresh_old_stateid()
439 *dst_range = range; in nfs4_layout_refresh_old_stateid()
460 struct pnfs_layout_range range = { in pnfs_mark_layout_stateid_invalid() local
471 pnfs_free_returned_lsegs(lo, lseg_list, &range, 0); in pnfs_mark_layout_stateid_invalid()
505 struct pnfs_layout_range range = { in pnfs_layout_io_set_failed() local
514 pnfs_mark_matching_lsegs_invalid(lo, &head, &range, 0); in pnfs_layout_io_set_failed()
541 const struct pnfs_layout_range *range, in pnfs_init_lseg() argument
550 lseg->pls_range = *range; in pnfs_init_lseg()
739 const struct pnfs_layout_range *range, in pnfs_free_returned_lsegs() argument
745 if (pnfs_match_lseg_recall(lseg, range, seq)) in pnfs_free_returned_lsegs()
1087 const struct pnfs_layout_range *range, in pnfs_alloc_init_layoutget_args() argument
1119 if (lgp->args.minlength > range->length) in pnfs_alloc_init_layoutget_args()
1120 lgp->args.minlength = range->length; in pnfs_alloc_init_layoutget_args()
1124 if (range->iomode == IOMODE_READ) { in pnfs_alloc_init_layoutget_args()
1125 if (range->offset >= i_size) in pnfs_alloc_init_layoutget_args()
1127 else if (i_size - range->offset < lgp->args.minlength) in pnfs_alloc_init_layoutget_args()
1128 lgp->args.minlength = i_size - range->offset; in pnfs_alloc_init_layoutget_args()
1132 pnfs_copy_range(&lgp->args.range, range); in pnfs_alloc_init_layoutget_args()
1170 const struct pnfs_layout_range *range, in pnfs_layoutreturn_free_lsegs() argument
1183 pnfs_mark_matching_lsegs_invalid(lo, &freeme, range, seq); in pnfs_layoutreturn_free_lsegs()
1184 pnfs_free_returned_lsegs(lo, &freeme, range, seq); in pnfs_layoutreturn_free_lsegs()
1232 args->range.iomode = iomode; in pnfs_init_layoutreturn_args()
1233 args->range.offset = 0; in pnfs_init_layoutreturn_args()
1234 args->range.length = NFS4_MAX_UINT64; in pnfs_init_layoutreturn_args()
1336 struct pnfs_layout_range range = { in _pnfs_return_layout() local
1368 pnfs_mark_matching_lsegs_return(lo, &tmp_list, &range, 0); in _pnfs_return_layout()
1371 NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo, &range); in _pnfs_return_layout()
1564 &arg->range, arg->inode)) in pnfs_roc_done()
1589 pnfs_set_plh_return_info(lo, args->range.iomode, 0); in pnfs_roc_release()
1600 pnfs_layoutreturn_free_lsegs(lo, arg_stateid, &args->range, in pnfs_roc_release()
1789 const struct pnfs_layout_range *range, in pnfs_lseg_range_match() argument
1794 if ((range->iomode == IOMODE_RW && in pnfs_lseg_range_match()
1796 (range->iomode != ls_range->iomode && in pnfs_lseg_range_match()
1798 !pnfs_lseg_range_intersecting(ls_range, range)) in pnfs_lseg_range_match()
1802 range1 = *range; in pnfs_lseg_range_match()
1812 struct pnfs_layout_range *range, in pnfs_find_lseg() argument
1821 pnfs_lseg_range_match(&lseg->pls_range, range, in pnfs_find_lseg()
2208 pnfs_sanity_check_layout_range(struct pnfs_layout_range *range) in pnfs_sanity_check_layout_range() argument
2210 switch (range->iomode) { in pnfs_sanity_check_layout_range()
2217 if (range->offset == NFS4_MAX_UINT64) in pnfs_sanity_check_layout_range()
2219 if (range->length == 0) in pnfs_sanity_check_layout_range()
2221 if (range->length != NFS4_MAX_UINT64 && in pnfs_sanity_check_layout_range()
2222 range->length > NFS4_MAX_UINT64 - range->offset) in pnfs_sanity_check_layout_range()
2369 iomode = lgp->args.range.iomode; in pnfs_parse_lgopen()
2397 if (!pnfs_sanity_check_layout_range(&res->range)) in pnfs_layout_process()
2411 pnfs_init_lseg(lo, lseg, &res->range, &res->stateid); in pnfs_layout_process()
2437 struct pnfs_layout_range range = { in pnfs_layout_process() local
2443 &range, 0); in pnfs_layout_process()
2531 const struct pnfs_layout_range *range) in pnfs_mark_layout_for_return() argument
2542 pnfs_set_plh_return_info(lo, range->iomode, 0); in pnfs_mark_layout_for_return()
2548 if (pnfs_mark_matching_lsegs_return(lo, &lo->plh_return_segs, range, 0) != -EBUSY) { in pnfs_mark_layout_for_return()
2566 struct pnfs_layout_range range = { in pnfs_error_mark_layout_for_return() local
2572 pnfs_mark_layout_for_return(inode, &range); in pnfs_error_mark_layout_for_return()
2586 const struct pnfs_layout_range *range, in pnfs_find_first_lseg() argument
2598 if (pnfs_lseg_range_intersecting(&lseg->pls_range, range)) in pnfs_find_first_lseg()
2607 const struct pnfs_layout_range *range) in pnfs_should_return_unused_layout() argument
2614 !pnfs_find_first_lseg(lo, range, range->iomode)) in pnfs_should_return_unused_layout()
2623 switch (range->iomode) { in pnfs_should_return_unused_layout()
2630 if (pnfs_find_first_lseg(lo, range, IOMODE_READ)) in pnfs_should_return_unused_layout()
2639 const struct pnfs_layout_range *range = data; in pnfs_layout_return_unused_byserver() local
2655 !pnfs_should_return_unused_layout(lo, range)) { in pnfs_layout_return_unused_byserver()
2660 pnfs_set_plh_return_info(lo, range->iomode, 0); in pnfs_layout_return_unused_byserver()
2662 range, 0) != 0 || in pnfs_layout_return_unused_byserver()
2685 struct pnfs_layout_range range = { in pnfs_layout_return_unused_byclid() local
2692 &range); in pnfs_layout_return_unused_byclid()