Lines Matching refs:blk_no

58 	xfs_daddr_t	blk_no,  in xlog_verify_bno()  argument
61 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bno()
63 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bno()
114 xfs_daddr_t blk_no) in xlog_align() argument
116 return BBTOB(blk_no & ((xfs_daddr_t)log->l_sectBBsize - 1)); in xlog_align()
122 xfs_daddr_t blk_no, in xlog_do_io() argument
129 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, blk_no, nbblks))) { in xlog_do_io()
132 blk_no, nbblks); in xlog_do_io()
136 blk_no = round_down(blk_no, log->l_sectBBsize); in xlog_do_io()
140 error = xfs_rw_bdev(log->l_targ->bt_bdev, log->l_logBBstart + blk_no, in xlog_do_io()
146 blk_no, nbblks, error); in xlog_do_io()
154 xfs_daddr_t blk_no, in xlog_bread_noalign() argument
158 return xlog_do_io(log, blk_no, nbblks, data, REQ_OP_READ); in xlog_bread_noalign()
164 xfs_daddr_t blk_no, in xlog_bread() argument
171 error = xlog_do_io(log, blk_no, nbblks, data, REQ_OP_READ); in xlog_bread()
173 *offset = data + xlog_align(log, blk_no); in xlog_bread()
180 xfs_daddr_t blk_no, in xlog_bwrite() argument
184 return xlog_do_io(log, blk_no, nbblks, data, REQ_OP_WRITE); in xlog_bwrite()
1390 xfs_daddr_t *blk_no) in xlog_find_zeroed() argument
1400 *blk_no = 0; in xlog_find_zeroed()
1412 *blk_no = 0; in xlog_find_zeroed()
1468 *blk_no = last_blk; in xlog_find_zeroed()
2994 xfs_daddr_t blk_no, rblk_no; in xlog_do_recovery_pass() local
3007 blk_no = rhead_blk = tail_blk; in xlog_do_recovery_pass()
3091 while (blk_no < log->l_logBBsize) { in xlog_do_recovery_pass()
3098 if (blk_no + hblks <= log->l_logBBsize) { in xlog_do_recovery_pass()
3100 error = xlog_bread(log, blk_no, hblks, hbp, in xlog_do_recovery_pass()
3106 if (blk_no != log->l_logBBsize) { in xlog_do_recovery_pass()
3108 ASSERT(blk_no <= INT_MAX); in xlog_do_recovery_pass()
3109 split_hblks = log->l_logBBsize - (int)blk_no; in xlog_do_recovery_pass()
3111 error = xlog_bread(log, blk_no, in xlog_do_recovery_pass()
3139 split_hblks ? blk_no : 0, h_size); in xlog_do_recovery_pass()
3144 blk_no += hblks; in xlog_do_recovery_pass()
3153 if (blk_no + bblks <= log->l_logBBsize || in xlog_do_recovery_pass()
3154 blk_no >= log->l_logBBsize) { in xlog_do_recovery_pass()
3155 rblk_no = xlog_wrap_logbno(log, blk_no); in xlog_do_recovery_pass()
3165 if (blk_no != log->l_logBBsize) { in xlog_do_recovery_pass()
3169 ASSERT(blk_no <= INT_MAX); in xlog_do_recovery_pass()
3171 log->l_logBBsize - (int)blk_no; in xlog_do_recovery_pass()
3173 error = xlog_bread(log, blk_no, in xlog_do_recovery_pass()
3204 blk_no += bblks; in xlog_do_recovery_pass()
3205 rhead_blk = blk_no; in xlog_do_recovery_pass()
3208 ASSERT(blk_no >= log->l_logBBsize); in xlog_do_recovery_pass()
3209 blk_no -= log->l_logBBsize; in xlog_do_recovery_pass()
3210 rhead_blk = blk_no; in xlog_do_recovery_pass()
3214 while (blk_no < head_blk) { in xlog_do_recovery_pass()
3215 error = xlog_bread(log, blk_no, hblks, hbp, &offset); in xlog_do_recovery_pass()
3220 error = xlog_valid_rec_header(log, rhead, blk_no, h_size); in xlog_do_recovery_pass()
3226 error = xlog_bread(log, blk_no+hblks, bblks, dbp, in xlog_do_recovery_pass()
3236 blk_no += bblks + hblks; in xlog_do_recovery_pass()
3237 rhead_blk = blk_no; in xlog_do_recovery_pass()