Lines Matching refs:blk_no

118 	xfs_daddr_t	blk_no,  in xlog_bread()  argument
125 blk_no = XLOG_SECTOR_ROUNDDOWN_BLKNO(log, blk_no); in xlog_bread()
133 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); in xlog_bread()
154 xfs_daddr_t blk_no, in xlog_bwrite() argument
161 blk_no = XLOG_SECTOR_ROUNDDOWN_BLKNO(log, blk_no); in xlog_bwrite()
168 XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); in xlog_bwrite()
185 xfs_daddr_t blk_no, in xlog_align() argument
194 ptr = XFS_BUF_PTR(bp) + BBTOB((int)blk_no & log->l_sectbb_mask); in xlog_align()
196 BBTOB(nbblks + (blk_no & log->l_sectbb_mask))); in xlog_align()
1002 xfs_daddr_t *blk_no) in xlog_find_zeroed() argument
1020 *blk_no = 0; in xlog_find_zeroed()
1084 *blk_no = last_blk; in xlog_find_zeroed()
3543 xfs_daddr_t blk_no; in xlog_do_recovery_pass() local
3602 for (blk_no = tail_blk; blk_no < head_blk; ) { in xlog_do_recovery_pass()
3603 if ((error = xlog_bread(log, blk_no, hblks, hbp))) in xlog_do_recovery_pass()
3605 offset = xlog_align(log, blk_no, hblks, hbp); in xlog_do_recovery_pass()
3607 error = xlog_valid_rec_header(log, rhead, blk_no); in xlog_do_recovery_pass()
3613 error = xlog_bread(log, blk_no + hblks, bblks, dbp); in xlog_do_recovery_pass()
3616 offset = xlog_align(log, blk_no + hblks, bblks, dbp); in xlog_do_recovery_pass()
3621 blk_no += bblks + hblks; in xlog_do_recovery_pass()
3629 blk_no = tail_blk; in xlog_do_recovery_pass()
3630 while (blk_no < log->l_logBBsize) { in xlog_do_recovery_pass()
3637 if (blk_no + hblks <= log->l_logBBsize) { in xlog_do_recovery_pass()
3639 error = xlog_bread(log, blk_no, hblks, hbp); in xlog_do_recovery_pass()
3642 offset = xlog_align(log, blk_no, hblks, hbp); in xlog_do_recovery_pass()
3645 if (blk_no != log->l_logBBsize) { in xlog_do_recovery_pass()
3647 ASSERT(blk_no <= INT_MAX); in xlog_do_recovery_pass()
3648 split_hblks = log->l_logBBsize - (int)blk_no; in xlog_do_recovery_pass()
3650 if ((error = xlog_bread(log, blk_no, in xlog_do_recovery_pass()
3653 offset = xlog_align(log, blk_no, in xlog_do_recovery_pass()
3683 split_hblks ? blk_no : 0); in xlog_do_recovery_pass()
3688 blk_no += hblks; in xlog_do_recovery_pass()
3691 if (blk_no + bblks <= log->l_logBBsize) { in xlog_do_recovery_pass()
3692 error = xlog_bread(log, blk_no, bblks, dbp); in xlog_do_recovery_pass()
3695 offset = xlog_align(log, blk_no, bblks, dbp); in xlog_do_recovery_pass()
3701 if (blk_no != log->l_logBBsize) { in xlog_do_recovery_pass()
3705 ASSERT(blk_no <= INT_MAX); in xlog_do_recovery_pass()
3707 log->l_logBBsize - (int)blk_no; in xlog_do_recovery_pass()
3709 if ((error = xlog_bread(log, blk_no, in xlog_do_recovery_pass()
3712 offset = xlog_align(log, blk_no, in xlog_do_recovery_pass()
3743 blk_no += bblks; in xlog_do_recovery_pass()
3746 ASSERT(blk_no >= log->l_logBBsize); in xlog_do_recovery_pass()
3747 blk_no -= log->l_logBBsize; in xlog_do_recovery_pass()
3750 while (blk_no < head_blk) { in xlog_do_recovery_pass()
3751 if ((error = xlog_bread(log, blk_no, hblks, hbp))) in xlog_do_recovery_pass()
3753 offset = xlog_align(log, blk_no, hblks, hbp); in xlog_do_recovery_pass()
3755 error = xlog_valid_rec_header(log, rhead, blk_no); in xlog_do_recovery_pass()
3759 if ((error = xlog_bread(log, blk_no+hblks, bblks, dbp))) in xlog_do_recovery_pass()
3761 offset = xlog_align(log, blk_no+hblks, bblks, dbp); in xlog_do_recovery_pass()
3766 blk_no += bblks + hblks; in xlog_do_recovery_pass()