Lines Matching refs:r_start
57 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end()
58 return resv->r_start; in ocfs2_resv_end()
88 "\tlast_len: %u\n", resv->r_start, in ocfs2_dump_resv()
101 "last_start: %u\tlast_len: %u\n", i, resv->r_start, in ocfs2_dump_resv()
115 unsigned int start = resv->r_start; in ocfs2_validate_resmap_bits()
142 if (i > 0 && resv->r_start <= off) { in ocfs2_check_resmap()
154 if (resv->r_start > ocfs2_resv_end(resv)) { in ocfs2_check_resmap()
228 resv->r_start = 0; in __ocfs2_resv_trunc()
311 trace_ocfs2_resv_insert(new->r_start, new->r_len); in ocfs2_resv_insert()
318 if (new->r_start < tmp->r_start) { in ocfs2_resv_insert()
325 BUG_ON(ocfs2_resv_end(new) >= tmp->r_start); in ocfs2_resv_insert()
326 } else if (new->r_start > ocfs2_resv_end(tmp)) { in ocfs2_resv_insert()
369 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
373 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
476 trace_ocfs2_resv_find_window_begin(resv->r_start, ocfs2_resv_end(resv), in __ocfs2_resv_find_window()
499 resv->r_start = cstart; in __ocfs2_resv_find_window()
532 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window()
534 goal, next_resv->r_start, next_resv->r_len); in __ocfs2_resv_find_window()
540 next_resv->r_start - goal, in __ocfs2_resv_find_window()
553 trace_ocfs2_resv_find_window_prev(prev_resv->r_start, in __ocfs2_resv_find_window()
567 gap_end = next_resv->r_start - 1; in __ocfs2_resv_find_window()
580 trace_ocfs2_resv_find_window_next(next ? next_resv->r_start: -1, in __ocfs2_resv_find_window()
611 resv->r_start = best_start; in __ocfs2_resv_find_window()
640 trace_ocfs2_cannibalize_resv_begin(lru_resv->r_start, in ocfs2_cannibalize_resv()
654 resv->r_start = lru_resv->r_start; in ocfs2_cannibalize_resv()
667 resv->r_start = ocfs2_resv_end(lru_resv) + 1; in ocfs2_cannibalize_resv()
671 trace_ocfs2_cannibalize_resv_end(resv->r_start, ocfs2_resv_end(resv), in ocfs2_cannibalize_resv()
742 trace_ocfs2_resmap_resv_bits(resv->r_start, resv->r_len); in ocfs2_resmap_resv_bits()
747 *cstart = resv->r_start; in ocfs2_resmap_resv_bits()
762 BUG_ON(start != resv->r_start || old_end < end); in ocfs2_adjust_resv_from_alloc()
779 resv->r_start = end + 1; in ocfs2_adjust_resv_from_alloc()
780 resv->r_len = old_end - resv->r_start + 1; in ocfs2_adjust_resv_from_alloc()
795 BUG_ON(cstart != resv->r_start); in ocfs2_resmap_claimed_bits()
799 trace_ocfs2_resmap_claimed_bits_begin(cstart, cend, clen, resv->r_start, in ocfs2_resmap_claimed_bits()
804 BUG_ON(cstart < resv->r_start); in ocfs2_resmap_claimed_bits()
819 trace_ocfs2_resmap_claimed_bits_end(resv->r_start, ocfs2_resv_end(resv), in ocfs2_resmap_claimed_bits()