Lines Matching refs:last_blk

318 	xfs_daddr_t	*last_blk,  in xlog_find_cycle_start()  argument
326 mid_blk = BLK_AVG(first_blk, *last_blk); in xlog_find_cycle_start()
327 while (mid_blk != first_blk && mid_blk != *last_blk) { in xlog_find_cycle_start()
333 *last_blk = mid_blk; in xlog_find_cycle_start()
339 mid_blk = BLK_AVG(first_blk, *last_blk); in xlog_find_cycle_start()
341 ASSERT((mid_blk == first_blk && mid_blk+1 == *last_blk) || in xlog_find_cycle_start()
342 (mid_blk == *last_blk && mid_blk-1 == first_blk)); in xlog_find_cycle_start()
424 xfs_daddr_t *last_blk, in xlog_find_verify_log_record() argument
433 int num_blks = *last_blk - start_blk; in xlog_find_verify_log_record()
436 ASSERT(start_blk != 0 || *last_blk != start_blk); in xlog_find_verify_log_record()
449 for (i = (*last_blk) - 1; i >= 0; i--) { in xlog_find_verify_log_record()
509 if (*last_blk - i + extra_bblks in xlog_find_verify_log_record()
511 *last_blk = i; in xlog_find_verify_log_record()
538 xfs_daddr_t new_blk, first_blk, start_blk, last_blk, head_blk; in xlog_find_head() local
572 last_blk = head_blk = log_bbnum - 1; /* get cycle # of last block */ in xlog_find_head()
573 if ((error = xlog_bread(log, last_blk, 1, bp))) in xlog_find_head()
575 offset = xlog_align(log, last_blk, 1, bp); in xlog_find_head()
1007 xfs_daddr_t new_blk, last_blk, start_blk; in xlog_find_zeroed() local
1044 last_blk = log_bbnum-1; in xlog_find_zeroed()
1045 if ((error = xlog_find_cycle_start(log, bp, 0, &last_blk, 0))) in xlog_find_zeroed()
1057 if (last_blk < num_scan_bblks) in xlog_find_zeroed()
1058 num_scan_bblks = last_blk; in xlog_find_zeroed()
1059 start_blk = last_blk - num_scan_bblks; in xlog_find_zeroed()
1071 last_blk = new_blk; in xlog_find_zeroed()
1078 &last_blk, 0)) == -1) { in xlog_find_zeroed()
1084 *blk_no = last_blk; in xlog_find_zeroed()