Lines Matching refs:blk_no

139 	xfs_daddr_t	blk_no,  in xlog_align()  argument
143 xfs_daddr_t offset = blk_no & ((xfs_daddr_t)log->l_sectBBsize - 1); in xlog_align()
156 xfs_daddr_t blk_no, in xlog_bread_noalign() argument
169 blk_no = round_down(blk_no, log->l_sectBBsize); in xlog_bread_noalign()
175 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); in xlog_bread_noalign()
192 xfs_daddr_t blk_no, in xlog_bread() argument
199 error = xlog_bread_noalign(log, blk_no, nbblks, bp); in xlog_bread()
203 *offset = xlog_align(log, blk_no, nbblks, bp); in xlog_bread()
215 xfs_daddr_t blk_no, in xlog_bwrite() argument
228 blk_no = round_down(blk_no, log->l_sectBBsize); in xlog_bwrite()
234 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); in xlog_bwrite()
1054 xfs_daddr_t *blk_no) in xlog_find_zeroed() argument
1063 *blk_no = 0; in xlog_find_zeroed()
1075 *blk_no = 0; in xlog_find_zeroed()
1141 *blk_no = last_blk; in xlog_find_zeroed()
3321 xfs_daddr_t blk_no; in xlog_do_recovery_pass() local
3381 for (blk_no = tail_blk; blk_no < head_blk; ) { in xlog_do_recovery_pass()
3382 error = xlog_bread(log, blk_no, hblks, hbp, &offset); in xlog_do_recovery_pass()
3387 error = xlog_valid_rec_header(log, rhead, blk_no); in xlog_do_recovery_pass()
3393 error = xlog_bread(log, blk_no + hblks, bblks, dbp, in xlog_do_recovery_pass()
3402 blk_no += bblks + hblks; in xlog_do_recovery_pass()
3410 blk_no = tail_blk; in xlog_do_recovery_pass()
3411 while (blk_no < log->l_logBBsize) { in xlog_do_recovery_pass()
3418 if (blk_no + hblks <= log->l_logBBsize) { in xlog_do_recovery_pass()
3420 error = xlog_bread(log, blk_no, hblks, hbp, in xlog_do_recovery_pass()
3426 if (blk_no != log->l_logBBsize) { in xlog_do_recovery_pass()
3428 ASSERT(blk_no <= INT_MAX); in xlog_do_recovery_pass()
3429 split_hblks = log->l_logBBsize - (int)blk_no; in xlog_do_recovery_pass()
3431 error = xlog_bread(log, blk_no, in xlog_do_recovery_pass()
3469 split_hblks ? blk_no : 0); in xlog_do_recovery_pass()
3474 blk_no += hblks; in xlog_do_recovery_pass()
3477 if (blk_no + bblks <= log->l_logBBsize) { in xlog_do_recovery_pass()
3478 error = xlog_bread(log, blk_no, bblks, dbp, in xlog_do_recovery_pass()
3487 if (blk_no != log->l_logBBsize) { in xlog_do_recovery_pass()
3491 ASSERT(blk_no <= INT_MAX); in xlog_do_recovery_pass()
3493 log->l_logBBsize - (int)blk_no; in xlog_do_recovery_pass()
3495 error = xlog_bread(log, blk_no, in xlog_do_recovery_pass()
3534 blk_no += bblks; in xlog_do_recovery_pass()
3537 ASSERT(blk_no >= log->l_logBBsize); in xlog_do_recovery_pass()
3538 blk_no -= log->l_logBBsize; in xlog_do_recovery_pass()
3541 while (blk_no < head_blk) { in xlog_do_recovery_pass()
3542 error = xlog_bread(log, blk_no, hblks, hbp, &offset); in xlog_do_recovery_pass()
3547 error = xlog_valid_rec_header(log, rhead, blk_no); in xlog_do_recovery_pass()
3552 error = xlog_bread(log, blk_no+hblks, bblks, dbp, in xlog_do_recovery_pass()
3561 blk_no += bblks + hblks; in xlog_do_recovery_pass()