/linux/fs/xfs/scrub/ |
H A D | bmap.c | 166 offset = irec->br_startoff; in xchk_bmap_get_rmap() 185 irec->br_startoff); in xchk_bmap_get_rmap() 213 irec->br_startoff); in xchk_bmap_xref_rmap() 218 irec->br_startoff); in xchk_bmap_xref_rmap() 221 if (rmap.rm_offset != irec->br_startoff) in xchk_bmap_xref_rmap() 223 irec->br_startoff); in xchk_bmap_xref_rmap() 226 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap() 228 irec->br_startoff); in xchk_bmap_xref_rmap() 233 irec->br_startoff); in xchk_bmap_xref_rmap() 245 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 | cow_repair.c | 94 startoff = xc->irec.br_startoff + in xrep_cow_mark_file_range() 373 if (got->br_startoff > startoff) in xrep_cow_find_mapping() 426 new.br_startoff += repl->len; in xrep_cow_replace_mapping() 431 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping() 463 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
|
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 | quota.c | 283 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork() 284 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork() 286 irec.br_startoff); in xchk_quota_data_fork()
|
H A D | reap.c | 710 xfs_rmap_ino_owner(&oinfo, ip->i_ino, whichfork, imap->br_startoff); in xreap_bmapi_select() 808 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval() 826 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval() 828 scan_blocks = off - imap->br_startoff; in xreap_bmapi_binval() 1046 off = imap.br_startoff + imap.br_blockcount; in xrep_reap_ifork()
|
H A D | bmap_repair.c | 129 .br_startoff = startoff, in xrep_bmap_from_rmap() 172 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap() 337 if (irec.br_startoff < next_off) in xrep_bmap_sort_records() 340 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
|
H A D | inode_repair.c | 862 fileoff = be64_to_cpu(fkp->br_startoff); in xrep_dinode_bad_bmbt_fork() 1686 off = got.br_startoff + got.br_blockcount; in xrep_inode_blockdir_size()
|
H A D | tempfile.c | 315 for (; off < end; off = map.br_startoff + map.br_blockcount) { in xrep_tempfile_prealloc()
|
H A D | trace.h | 474 __entry->startoff = cursor->bmap.br_startoff; 2125 __entry->lblk = irec->br_startoff; 2580 __entry->startoff = irec->br_startoff; 2740 __entry->lblk = irec->br_startoff; 2780 __entry->fileoff = irec->br_startoff;
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 124 cur->bc_rec.b.br_startoff = 0; in xfs_bmbt_lookup_first() 304 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block() 305 be64_to_cpu(keyp->br_startoff)); in xfs_check_block() 525 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret() 527 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret() 530 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret() 531 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret() 535 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret() 536 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_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 | 152 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()
|
H A D | xfs_rmap.c | 2614 ri->ri_bmap.br_startoff); in xfs_rmap_finish_one() 2742 bmap.br_startoff = 0; in xfs_rmap_alloc_extent() 2764 bmap.br_startoff = 0; in xfs_rmap_free_extent()
|
/linux/fs/xfs/ |
H A D | xfs_reflink.c | 261 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked() 317 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent() 328 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent() 329 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent() 330 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent() 331 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent() 337 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent() 354 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_convert_unwritten() 397 resaligned = xfs_aligned_fsb_count(imap->br_startoff, in xfs_reflink_fill_cow_hole() 422 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_fill_cow_hole() [all …]
|
H A D | xfs_iomap.c | 47 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero() 128 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap() 233 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb() 462 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size() 474 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size() 757 if (imap->br_startoff > offset_fsb) in imap_spans_range() 759 if (imap->br_startoff + imap->br_blockcount < end_fsb) in imap_spans_range() 839 end_fsb = imap.br_startoff + imap.br_blockcount; in xfs_direct_write_iomap_begin() 896 end_fsb = min(end_fsb, imap.br_startoff + imap.br_blockcount); in xfs_direct_write_iomap_begin() 909 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin() [all …]
|
H A D | xfs_aops.c | 297 cow_fsb = imap.br_startoff; in xfs_map_blocks() 321 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks() 326 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks() 327 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 328 imap.br_startoff = offset_fsb; in xfs_map_blocks() 340 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks() 341 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
|
H A D | xfs_bmap_util.c | 191 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one() 235 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec() 240 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec() 389 if (got.br_startoff > bno) { in xfs_getbmap() 391 got.br_startoff); in xfs_getbmap() 401 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap() 462 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range() 1283 error = xfs_bmapi_read(ip, tirec.br_startoff, in xfs_swap_extent_rmap() 1289 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap() 1332 tirec.br_startoff += rlen; in xfs_swap_extent_rmap()
|
H A D | xfs_rmap_item.c | 269 map->me_startoff = ri->ri_bmap.br_startoff; in xfs_rmap_update_log_item() 493 ri->ri_bmap.br_startoff = map->me_startoff; in xfs_rui_recover_work()
|
H A D | xfs_bmap_item.c | 263 map->me_startoff = bi->bi_bmap.br_startoff; in xfs_bmap_update_log_item() 474 bi->bi_bmap.br_startoff = map->me_startoff; in xfs_bui_recover_work()
|
H A D | xfs_pnfs.c | 189 end_fsb = min(end_fsb, imap.br_startoff + in xfs_fs_map_blocks()
|
H A D | xfs_inode.c | 1106 for (off = round_up(got.br_startoff, geo->fsbcount); in xfs_inactive_dir() 1107 off < got.br_startoff + got.br_blockcount; in xfs_inactive_dir() 1113 fsbno = (off - got.br_startoff) + got.br_startblock; in xfs_inactive_dir()
|
H A D | xfs_trace.h | 404 __entry->startoff = r.br_startoff; 1479 __entry->startoff = irec ? irec->br_startoff : 0; 2988 __entry->l_loff = ri->ri_bmap.br_startoff; 3065 __entry->l_loff = bi->bi_bmap.br_startoff; 3635 __entry->lblk = irec->br_startoff; 5186 __entry->loff = left->br_startoff; 5189 __entry->coff = curr->br_startoff; 5192 __entry->noff = new->br_startoff; 5195 __entry->roff = right->br_startoff;
|