/linux/fs/xfs/scrub/ |
H A D | bmap.c | 176 offset = irec->br_startoff; in xchk_bmap_get_rmap() 195 irec->br_startoff); in xchk_bmap_get_rmap() 223 irec->br_startoff); in xchk_bmap_xref_rmap() 228 irec->br_startoff); in xchk_bmap_xref_rmap() 231 if (rmap.rm_offset != irec->br_startoff) in xchk_bmap_xref_rmap() 233 irec->br_startoff); in xchk_bmap_xref_rmap() 236 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap() 238 irec->br_startoff); in xchk_bmap_xref_rmap() 243 irec->br_startoff); in xchk_bmap_xref_rmap() 255 irec->br_startoff); in xchk_bmap_xref_rmap() [all …]
|
H A D | dqiterate.c | 32 cursor->bmap.br_startoff = NULLFILEOFF; in xchk_dqiter_init() 60 if (cursor->bmap.br_startoff != NULLFILEOFF && in xchk_dquot_iter_revalidate_bmap() 62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff) in xchk_dquot_iter_revalidate_bmap() 74 if (cursor->bmap.br_startoff > fileoff) { in xchk_dquot_iter_revalidate_bmap() 75 ASSERT(cursor->bmap.br_startoff == fileoff); in xchk_dquot_iter_revalidate_bmap() 100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount; in xchk_dquot_iter_advance_bmap() 117 if (cursor->bmap.br_startoff > fileoff) { in xchk_dquot_iter_advance_bmap() 118 ASSERT(cursor->bmap.br_startoff == fileoff); in xchk_dquot_iter_advance_bmap() 123 next_id = cursor->bmap.br_startoff * qi->qi_dqperchunk; in xchk_dquot_iter_advance_bmap()
|
H A D | quota_repair.c | 423 if (irec.br_startoff > max_dqid_off || in xrep_quota_data_fork() 424 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() 444 ASSERT(nrec.br_startoff == irec.br_startoff); in xrep_quota_data_fork() 482 for (fsbno = irec.br_startblock, off = irec.br_startoff; in xrep_quota_data_fork()
|
H A D | cow_repair.c | 101 startoff = xc->irec.br_startoff + in xrep_cow_mark_file_range() 488 if (got->br_startoff > startoff) in xrep_cow_find_mapping() 541 new.br_startoff += repl->len; in xrep_cow_replace_mapping() 546 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping() 578 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
|
H A D | quota.c | 289 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork() 290 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork() 292 irec.br_startoff); in xchk_quota_data_fork()
|
H A D | bmap_repair.c | 138 .br_startoff = startoff, in xrep_bmap_from_rmap() 181 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap() 344 if (irec.br_startoff < next_off) in xrep_bmap_sort_records() 347 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
|
H A D | reap.c | 975 xfs_rmap_ino_owner(&oinfo, ip->i_ino, whichfork, imap->br_startoff); in xreap_bmapi_select() 1073 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval() 1091 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval() 1093 scan_blocks = off - imap->br_startoff; in xreap_bmapi_binval() 1312 off = imap.br_startoff + imap.br_blockcount; in xrep_reap_ifork()
|
H A D | rtbitmap_repair.c | 439 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings() 458 error = xfs_bmapi_write(sc->tp, sc->ip, map.br_startoff, in xrep_rtbitmap_data_mappings() 470 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
|
H A D | rtrmap_repair.c | 242 rec->br_startoff == accum->rm_offset + accum->rm_blockcount && in xrep_rtrmap_visit_bmbt() 256 accum->rm_offset = rec->br_startoff; in xrep_rtrmap_visit_bmbt()
|
H A D | rmap_repair.c | 361 rec->br_startoff == accum->rm_offset + accum->rm_blockcount && in xrep_rmap_visit_bmbt() 375 accum->rm_offset = rec->br_startoff; in xrep_rmap_visit_bmbt()
|
H A D | inode_repair.c | 933 fileoff = be64_to_cpu(fkp->br_startoff); in xrep_dinode_bad_bmbt_fork() 1866 off = got.br_startoff + got.br_blockcount; in xrep_inode_blockdir_size()
|
H A D | tempfile.c | 425 for (; off < end; off = map.br_startoff + map.br_blockcount) { in xrep_tempfile_prealloc()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 125 cur->bc_rec.b.br_startoff = 0; in xfs_bmbt_lookup_first() 305 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block() 306 be64_to_cpu(keyp->br_startoff)); in xfs_check_block() 526 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret() 528 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret() 531 ASSERT(mval[i].br_startoff < bno + len); 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() 537 mval[i].br_startoff); in xfs_bmap_validate_ret() 729 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree() [all …]
|
H A D | xfs_bmap_btree.c | 85 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all() 126 ASSERT(!(s->br_startoff & xfs_mask64hi(64-BMBT_STARTOFF_BITLEN))); in xfs_bmbt_disk_set_all() 132 ((xfs_bmbt_rec_base_t)s->br_startoff << 9) | in xfs_bmbt_disk_set_all() 350 key->bmbt.br_startoff = in xfs_bmbt_init_key_from_rec() 359 key->bmbt.br_startoff = cpu_to_be64( in xfs_bmbt_init_high_key_from_rec() 377 return (int64_t)be64_to_cpu(key->bmbt.br_startoff) - in xfs_bmbt_key_diff() 378 cur->bc_rec.b.br_startoff; in xfs_bmbt_key_diff() 388 uint64_t a = be64_to_cpu(k1->bmbt.br_startoff); in xfs_bmbt_diff_two_keys() 389 uint64_t b = be64_to_cpu(k2->bmbt.br_startoff); in xfs_bmbt_diff_two_keys() 391 ASSERT(!mask || mask->bmbt.br_startoff); in xfs_bmbt_diff_two_keys() [all …]
|
H A D | xfs_exchmaps.c | 96 len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount), in xfs_exchmaps_update_size() 237 if (!isaligned_64(irec->br_startoff, mp->m_sb.sb_rextsize)) { in xfs_exchmaps_can_skip_mapping() 240 new_end = roundup_64(irec->br_startoff, mp->m_sb.sb_rextsize); in xfs_exchmaps_can_skip_mapping() 242 new_end - irec->br_startoff); in xfs_exchmaps_can_skip_mapping() 260 new_end = rounddown_64(irec->br_startoff + irec->br_blockcount, in xfs_exchmaps_can_skip_mapping() 262 irec->br_blockcount = new_end - irec->br_startoff; in xfs_exchmaps_can_skip_mapping() 302 irec1->br_startoff != xmi->xmi_startoff1) { in xfs_exchmaps_find_mappings() 327 irec2->br_startoff != xmi->xmi_startoff2) { in xfs_exchmaps_find_mappings() 401 swap(irec1->br_startoff, irec2->br_startoff); in xfs_exchmaps_one_step() 737 if (b1->br_startoff + b1->br_blockcount == b2->br_startoff && in xmi_can_merge() [all …]
|
H A D | xfs_iext_tree.c | 57 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set() 61 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set() 76 irec->br_startoff = rec->lo & XFS_IEXT_STARTOFF_MASK; in xfs_iext_get() 638 xfs_fileoff_t offset = irec->br_startoff; in xfs_iext_insert_raw() 652 xfs_iext_rec_cmp(cur_rec(cur), irec->br_startoff) != 0); in xfs_iext_insert_raw() 986 gotp->br_startoff <= *end - 1) in xfs_iext_lookup_extent_before() 990 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before() 1009 if (new->br_startoff != old.br_startoff) { in xfs_iext_update_extent() 1010 xfs_iext_update_node(ifp, old.br_startoff, in xfs_iext_update_extent() 1011 new->br_startoff, 1, cur->leaf); in xfs_iext_update_extent()
|
H A D | xfs_types.h | 156 xfs_fileoff_t br_startoff; /* starting file offset */ member
|
H A D | xfs_da_btree.c | 2337 b = mapp[mapi - 1].br_startoff + in xfs_da_grow_inode_int() 2349 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2350 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int() 2732 if (off != irecs[i].br_startoff) in xfs_dabuf_map() 2761 i, irecs[i].br_startoff, in xfs_dabuf_map()
|
/linux/fs/xfs/ |
H A D | xfs_reflink.c | 312 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked() 368 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent() 379 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent() 380 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent() 381 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent() 382 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent() 388 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent() 405 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_convert_unwritten() 448 resaligned = xfs_aligned_fsb_count(imap->br_startoff, 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 D | xfs_aops.c | 298 cow_fsb = imap.br_startoff; in xfs_map_blocks() 322 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks() 327 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks() 328 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 329 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 D | xfs_bmap_util.c | 183 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); 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() 381 if (got.br_startoff > bno) { in xfs_getbmap() 383 got.br_startoff); in xfs_getbmap() 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() 1279 error = xfs_bmapi_read(ip, tirec.br_startoff, in xfs_swap_extent_rmap() 1285 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap() 1328 tirec.br_startoff += rlen; in xfs_swap_extent_rmap()
|
H A D | xfs_bmap_item.c | 263 map->me_startoff = bi->bi_bmap.br_startoff; in xfs_bmap_update_log_item() 466 bi->bi_bmap.br_startoff = map->me_startoff; in xfs_bui_recover_work()
|
H A D | xfs_rmap_item.c | 285 map->me_startoff = ri->ri_bmap.br_startoff; in xfs_rmap_update_log_item() 543 ri->ri_bmap.br_startoff = map->me_startoff; in xfs_rui_recover_work()
|
H A D | xfs_dquot.c | 785 if (got.br_startoff < start) in xfs_dq_get_next_id() 786 got.br_startoff = start; in xfs_dq_get_next_id() 787 *id = got.br_startoff * mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
|
H A D | xfs_trace.h | 450 __entry->startoff = r.br_startoff; 1531 __entry->startoff = irec ? irec->br_startoff : 0; 3125 __entry->l_loff = ri->ri_bmap.br_startoff; 3207 __entry->l_loff = bi->bi_bmap.br_startoff; 3793 __entry->lblk = irec->br_startoff; 5361 __entry->loff = left->br_startoff; 5364 __entry->coff = curr->br_startoff; 5367 __entry->noff = new->br_startoff; 5370 __entry->roff = right->br_startoff;
|