Home
last modified time | relevance | path

Searched refs:br_blockcount (Results 1 – 25 of 37) sorted by relevance

12

/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c127 cur->bc_rec.b.br_blockcount = 0; in xfs_bmbt_lookup_first()
524 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret()
527 ASSERT(mval[i].br_blockcount <= len); in xfs_bmap_validate_ret()
528 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
532 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
536 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
867 rec.br_blockcount = 1; in xfs_bmap_local_to_extents()
1126 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec()
1278 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1383 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
[all …]
H A Dxfs_exchmaps.c96 len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount), in xfs_exchmaps_update_size()
114 xmi->xmi_startoff1 += irec->br_blockcount; in xmi_advance()
115 xmi->xmi_startoff2 += irec->br_blockcount; in xmi_advance()
116 xmi->xmi_blockcount -= irec->br_blockcount; in xmi_advance()
174 ip1_delta -= irec1->br_blockcount; in xfs_exchmaps_update_quota()
175 ip2_delta += irec1->br_blockcount; in xfs_exchmaps_update_quota()
179 ip1_delta += irec2->br_blockcount; in xfs_exchmaps_update_quota()
180 ip2_delta -= irec2->br_blockcount; in xfs_exchmaps_update_quota()
241 irec->br_blockcount = min(irec->br_blockcount, in xfs_exchmaps_can_skip_mapping()
245 if (isaligned_64(irec->br_blockcount, mp->m_sb.sb_rextsize)) in xfs_exchmaps_can_skip_mapping()
[all …]
H A Dxfs_symlink_remote.c266 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink_remote_read()
360 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink_write_target()
412 XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0, in xfs_symlink_remote_truncate()
H A Dxfs_iext_tree.c58 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set()
62 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set()
77 irec->br_blockcount = rec->hi & XFS_IEXT_LENGTH_MASK; in xfs_iext_get()
990 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
H A Dxfs_bmap_btree.c87 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all()
127 ASSERT(!(s->br_blockcount & xfs_mask64hi(64-BMBT_BLOCKCOUNT_BITLEN))); in xfs_bmbt_disk_set_all()
136 ((xfs_bmbt_rec_base_t)s->br_blockcount & in xfs_bmbt_disk_set_all()
H A Dxfs_types.h158 xfs_filblks_t br_blockcount; /* number of blocks */ member
/linux/fs/xfs/scrub/
H A Dbmap.c226 if (rmap_end != bno + irec->br_blockcount) in xchk_bmap_xref_rmap()
236 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap()
294 if (rmap_end < bno + irec->br_blockcount) in xchk_bmap_xref_rmap_cow()
344 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
358 irec->br_blockcount, &oinfo); in xchk_bmap_rt_iextent_xref()
360 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
363 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
368 irec->br_blockcount, &XFS_RMAP_OINFO_COW); in xchk_bmap_rt_iextent_xref()
370 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
372 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
[all …]
H A Dcow_repair.c131 xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_trim_refcount()
133 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_trim_refcount()
223 if (rec_bno + rec_len > xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_mark_missing_staging_rmap()
225 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_mark_missing_staging_rmap()
263 rc_high.rc_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
272 rc_high.rc_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
280 if (xc->next_bno < xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_find_bad()
283 xc->irec_startbno + xc->irec.br_blockcount - in xrep_cow_find_bad()
292 rm_high.rm_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
305 xc->irec.br_blockcount); in xrep_cow_find_bad()
[all …]
H A Dreap.c970 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_select()
997 imap->br_blockcount = len; in xreap_bmapi_select()
1060 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_binval()
1073 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval()
1091 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()
1128 imap->br_blockcount = agbno_next - bno; in xreap_bmapi_binval()
1139 imap->br_blockcount); in xreap_bmapi_binval()
1168 imap->br_blockcount); in xrep_reap_bmapi_iter()
1177 -(int64_t)imap->br_blockcount); in xrep_reap_bmapi_iter()
1191 imap->br_blockcount); in xrep_reap_bmapi_iter()
[all …]
H A Dquota_repair.c424 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xrep_quota_data_fork()
440 irec.br_startoff, irec.br_blockcount, in xrep_quota_data_fork()
445 ASSERT(nrec.br_blockcount == irec.br_blockcount); in xrep_quota_data_fork()
483 fsbno < irec.br_startblock + irec.br_blockcount; in xrep_quota_data_fork()
H A Ddqiterate.c62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff) in xchk_dquot_iter_revalidate_bmap()
100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount; in xchk_dquot_iter_advance_bmap()
H A Dbmap_repair.c160 irec.br_blockcount = min_t(xfs_filblks_t, blockcount, in xrep_bmap_from_rmap()
180 irec.br_startblock += irec.br_blockcount; in xrep_bmap_from_rmap()
181 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap()
182 blockcount -= irec.br_blockcount; in xrep_bmap_from_rmap()
347 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
H A Drtbitmap_repair.c439 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
459 map.br_blockcount, in xrep_rtbitmap_data_mappings()
470 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
H A Dsymlink_repair.c127 d, XFS_FSB_TO_BB(sc->mp, mval[n].br_blockcount), in xrep_symlink_salvage_remote()
134 byte_cnt = XFS_FSB_TO_B(sc->mp, mval[n].br_blockcount); in xrep_symlink_salvage_remote()
H A Drtbitmap.c182 off += map.br_blockcount; in xchk_rtbitmap_check_extents()
H A Drtrmap_repair.c245 accum->rm_blockcount += rec->br_blockcount; in xrep_rtrmap_visit_bmbt()
255 accum->rm_blockcount = rec->br_blockcount; in xrep_rtrmap_visit_bmbt()
H A Drtsummary.c274 off += map.br_blockcount; in xchk_rtsum_compare()
H A Dquota.c290 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
/linux/fs/xfs/
H A Dxfs_reflink.c158 error = xfs_refcount_find_shared(cur, orig_bno, irec->br_blockcount, in xfs_reflink_find_shared()
206 error = xfs_refcount_find_shared(cur, orig_bno, irec->br_blockcount, in xfs_reflink_find_rtshared()
264 irec->br_blockcount = shared_len; in xfs_reflink_trim_around_shared()
273 irec->br_blockcount = shared_offset; in xfs_reflink_trim_around_shared()
320 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked()
369 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent()
388 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
406 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_reflink_convert_unwritten()
449 imap->br_blockcount, xfs_get_cowextsz_hint(ip)); in xfs_reflink_fill_cow_hole()
479 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_fill_cow_hole()
[all …]
H A Dxfs_bmap_util.c83 *count += got.br_blockcount; in xfs_bmap_count_leaves()
184 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one()
227 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec()
232 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec()
235 rec->br_startblock += rec->br_blockcount; in xfs_getbmap_next_rec()
236 rec->br_blockcount = total_end - end; in xfs_getbmap_next_rec()
393 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
454 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
463 if (!del.br_blockcount || in xfs_bmap_punch_delalloc_range()
742 startoffset_fsb += imapp->br_blockcount; in xfs_alloc_file_space()
[all …]
H A Dxfs_bmap_item.c264 map->me_len = bi->bi_bmap.br_blockcount; in xfs_bmap_update_log_item()
360 bi->bi_owner->i_delayed_blks += bi->bi_bmap.br_blockcount; in xfs_bmap_defer_add()
374 bi->bi_owner->i_delayed_blks -= bi->bi_bmap.br_blockcount; in xfs_bmap_update_cancel_item()
392 if (!error && bi->bi_bmap.br_blockcount > 0) { in xfs_bmap_update_finish_item()
467 bi->bi_bmap.br_blockcount = map->me_len; in xfs_bui_recover_work()
475 bi->bi_owner->i_delayed_blks += bi->bi_bmap.br_blockcount; in xfs_bui_recover_work()
H A Dxfs_aops.c328 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
341 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
342 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
H A Dxfs_attr_inactive.c69 blkno += map.br_blockcount; in xfs_attr3_rmt_stale()
70 blkcnt -= map.br_blockcount; in xfs_attr3_rmt_stale()
H A Dxfs_rmap_item.c286 map->me_len = ri->ri_bmap.br_blockcount; in xfs_rmap_update_log_item()
544 ri->ri_bmap.br_blockcount = map->me_len; in xfs_rui_recover_work()
H A Dxfs_qm.c1269 ASSERT(map[i].br_blockcount); in xfs_qm_reset_dqcounts_buf()
1272 lblkno += map[i].br_blockcount; in xfs_qm_reset_dqcounts_buf()
1284 rablkcnt = map[i+1].br_blockcount; in xfs_qm_reset_dqcounts_buf()
1300 map[i].br_blockcount, in xfs_qm_reset_dqcounts_buf()

12