/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 121 cur->bc_rec.b.br_startblock = 0; in xfs_bmbt_lookup_first() 510 ASSERT(mval[i].br_startblock != DELAYSTARTBLOCK && in xfs_bmap_validate_ret() 511 mval[i].br_startblock != HOLESTARTBLOCK); in xfs_bmap_validate_ret() 689 if (isnullstartblock(rec.br_startblock)) in xfs_bmap_extents_to_btree() 839 rec.br_startblock = args.fsbno; in xfs_bmap_local_to_extents() 1113 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec() 1366 isnullstartblock(rec.br_startblock)); in xfs_bmap_isaeof() 1431 ASSERT(!isnullstartblock(new->br_startblock)); in xfs_bmap_add_extent_delay_real() 1446 ASSERT(isnullstartblock(PREV.br_startblock)); in xfs_bmap_add_extent_delay_real() 1450 da_old = startblockval(PREV.br_startblock); in xfs_bmap_add_extent_delay_real() [all …]
|
H A D | xfs_attr_remote.c | 415 ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_get() 416 (map[i].br_startblock != HOLESTARTBLOCK)); in xfs_attr_rmtval_get() 417 dblkno = XFS_FSB_TO_DADDR(mp, map[i].br_startblock); in xfs_attr_rmtval_get() 509 ASSERT((map.br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_set_value() 510 (map.br_startblock != HOLESTARTBLOCK)); in xfs_attr_rmtval_set_value() 512 dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock), in xfs_attr_rmtval_set_value() 550 if (XFS_IS_CORRUPT(mp, map->br_startblock == DELAYSTARTBLOCK) || in xfs_attr_rmtval_stale() 551 XFS_IS_CORRUPT(mp, map->br_startblock == HOLESTARTBLOCK)) in xfs_attr_rmtval_stale() 555 XFS_FSB_TO_DADDR(mp, map->br_startblock), in xfs_attr_rmtval_stale() 622 ASSERT((map->br_startblock != DELAYSTARTBLOCK) && in xfs_attr_rmtval_set_blk() [all …]
|
H A D | xfs_bmap.h | 150 return irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent() 151 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent() 152 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent()
|
H A D | xfs_bmap_btree.c | 71 irec->br_startblock = ((l0 & xfs_mask64lo(9)) << 43) | (l1 >> 21); in xfs_bmbt_disk_get_all() 113 ASSERT(!(s->br_startblock & xfs_mask64hi(64-BMBT_STARTBLOCK_BITLEN))); in xfs_bmbt_disk_set_all() 118 ((xfs_bmbt_rec_base_t)s->br_startblock >> 43), &r->l0); in xfs_bmbt_disk_set_all() 120 ((xfs_bmbt_rec_base_t)s->br_startblock << 21) | in xfs_bmbt_disk_set_all()
|
H A D | xfs_iext_tree.c | 59 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set() 64 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set() 65 rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); in xfs_iext_set() 79 irec->br_startblock = rec->lo >> 54; in xfs_iext_get() 80 irec->br_startblock |= (rec->hi & xfs_mask64hi(42)) >> (22 - 10); in xfs_iext_get()
|
H A D | xfs_types.h | 165 xfs_fsblock_t br_startblock; /* starting block number */ member
|
H A D | xfs_rtbitmap.c | 77 ASSERT(map.br_startblock != NULLFSBLOCK); in xfs_rtbuf_get() 79 XFS_FSB_TO_DADDR(mp, map.br_startblock), in xfs_rtbuf_get()
|
H A D | xfs_rmap.c | 2452 bno = XFS_FSB_TO_AGBNO(mp, ri->ri_bmap.br_startblock); in xfs_rmap_finish_one() 2491 bno = XFS_FSB_TO_AGBNO(rcur->bc_mp, ri->ri_bmap.br_startblock); in xfs_rmap_finish_one() 2554 XFS_FSB_TO_AGNO(tp->t_mountp, bmap->br_startblock), in __xfs_rmap_add() 2556 XFS_FSB_TO_AGBNO(tp->t_mountp, bmap->br_startblock), in __xfs_rmap_add() 2650 bmap.br_startblock = XFS_AGB_TO_FSB(tp->t_mountp, agno, bno); in xfs_rmap_alloc_extent() 2672 bmap.br_startblock = XFS_AGB_TO_FSB(tp->t_mountp, agno, bno); in xfs_rmap_free_extent()
|
H A D | xfs_da_btree.c | 2547 if (irecs[i].br_startblock == HOLESTARTBLOCK || in xfs_dabuf_map() 2548 irecs[i].br_startblock == DELAYSTARTBLOCK) in xfs_dabuf_map() 2553 map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock); in xfs_dabuf_map() 2579 irecs[i].br_startblock, in xfs_dabuf_map()
|
H A D | xfs_inode_fork.c | 570 if (isnullstartblock(rec.br_startblock)) in xfs_iextents_copy()
|
H A D | xfs_refcount.c | 1475 __xfs_refcount_add(tp, XFS_REFCOUNT_INCREASE, PREV->br_startblock, in xfs_refcount_increase_extent() 1490 __xfs_refcount_add(tp, XFS_REFCOUNT_DECREASE, PREV->br_startblock, in xfs_refcount_decrease_extent()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_reflink.c | 189 pag = xfs_perag_get(mp, XFS_FSB_TO_AGNO(mp, irec->br_startblock)); in xfs_reflink_trim_around_shared() 190 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xfs_reflink_trim_around_shared() 235 !isnullstartblock(imap->br_startblock)) { in xfs_bmap_trim_cow() 264 if (WARN_ON_ONCE(isnullstartblock(got.br_startblock))) in xfs_reflink_convert_cow_locked() 335 if (isnullstartblock(cmap->br_startblock)) { in xfs_find_trim_cow_extent() 476 ASSERT(isnullstartblock(cmap->br_startblock) || in xfs_reflink_fill_delalloc() 477 cmap->br_startblock == DELAYSTARTBLOCK); in xfs_reflink_fill_delalloc() 543 if (isnullstartblock(cmap->br_startblock) || in xfs_reflink_allocate_cow() 544 cmap->br_startblock == DELAYSTARTBLOCK) in xfs_reflink_allocate_cow() 593 if (isnullstartblock(del.br_startblock)) { in xfs_reflink_cancel_cow_blocks() [all …]
|
H A D | xfs_iomap.c | 44 (unsigned long long)imap->br_startblock, in xfs_alert_fsblock_zero() 102 if (unlikely(!xfs_valid_startblock(ip, imap->br_startblock))) in xfs_bmbt_to_iomap() 105 if (imap->br_startblock == HOLESTARTBLOCK) { in xfs_bmbt_to_iomap() 108 } else if (imap->br_startblock == DELAYSTARTBLOCK || in xfs_bmbt_to_iomap() 109 isnullstartblock(imap->br_startblock)) { in xfs_bmbt_to_iomap() 113 iomap->addr = BBTOB(xfs_fsb_to_db(ip, imap->br_startblock)); in xfs_bmbt_to_iomap() 320 if (unlikely(!xfs_valid_startblock(ip, imap->br_startblock))) in xfs_iomap_write_direct() 445 isnullstartblock(got.br_startblock) || in xfs_iomap_prealloc_size() 447 got.br_startblock + got.br_blockcount != prev.br_startblock) in xfs_iomap_prealloc_size() 634 if (unlikely(!xfs_valid_startblock(ip, imap.br_startblock))) in xfs_iomap_write_unwritten() [all …]
|
H A D | xfs_pnfs.c | 182 ASSERT(!nimaps || imap.br_startblock != DELAYSTARTBLOCK); in xfs_fs_map_blocks() 185 (!nimaps || imap.br_startblock == HOLESTARTBLOCK)) { in xfs_fs_map_blocks() 188 else if (nimaps && imap.br_startblock == HOLESTARTBLOCK) in xfs_fs_map_blocks() 241 if (imap.br_startblock == HOLESTARTBLOCK || in xfs_pnfs_validate_isize() 242 imap.br_startblock == DELAYSTARTBLOCK || in xfs_pnfs_validate_isize()
|
H A D | xfs_bmap_util.c | 237 if (!isnullstartblock(got.br_startblock)) { in xfs_bmap_count_leaves() 314 if (isnullstartblock(got->br_startblock) || in xfs_getbmap_report_one() 315 got->br_startblock == DELAYSTARTBLOCK) { in xfs_getbmap_report_one() 328 p->bmv_block = xfs_fsb_to_db(ip, got->br_startblock); in xfs_getbmap_report_one() 388 if (!isnullstartblock(rec->br_startblock) && in xfs_getbmap_next_rec() 389 rec->br_startblock != DELAYSTARTBLOCK) in xfs_getbmap_next_rec() 390 rec->br_startblock += rec->br_blockcount; in xfs_getbmap_next_rec() 620 !isnullstartblock(del.br_startblock)) { in xfs_bmap_punch_delalloc_range() 711 return imap.br_startblock != HOLESTARTBLOCK || ip->i_delayed_blks; in xfs_can_free_eofblocks() 1427 ASSERT(tirec.br_startblock != DELAYSTARTBLOCK); in xfs_swap_extent_rmap() [all …]
|
H A D | xfs_aops.c | 328 imap.br_startblock = HOLESTARTBLOCK; in xfs_map_blocks() 343 if (imap.br_startblock != HOLESTARTBLOCK && in xfs_map_blocks() 344 isnullstartblock(imap.br_startblock)) in xfs_map_blocks()
|
H A D | xfs_symlink.c | 55 d = XFS_FSB_TO_DADDR(mp, mval[n].br_startblock); in xfs_readlink_bmap_ilocked() 287 d = XFS_FSB_TO_DADDR(mp, mval[n].br_startblock); in xfs_symlink() 431 XFS_FSB_TO_DADDR(mp, mval[i].br_startblock), in xfs_inactive_symlink_rmt()
|
H A D | xfs_dquot.c | 336 ASSERT((map.br_startblock != DELAYSTARTBLOCK) && in xfs_dquot_disk_alloc() 337 (map.br_startblock != HOLESTARTBLOCK)); in xfs_dquot_disk_alloc() 342 dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock); in xfs_dquot_disk_alloc() 438 ASSERT(map.br_startblock != DELAYSTARTBLOCK); in xfs_dquot_disk_read() 439 if (map.br_startblock == HOLESTARTBLOCK) in xfs_dquot_disk_read() 448 dqp->q_blkno = XFS_FSB_TO_DADDR(mp, map.br_startblock); in xfs_dquot_disk_read()
|
H A D | xfs_refcount_item.c | 568 .br_startblock = fake.ri_startblock, in xfs_cui_item_recover() 581 irec.br_startblock, in xfs_cui_item_recover() 586 irec.br_startblock, in xfs_cui_item_recover()
|
H A D | xfs_bmap_item.c | 329 map->me_startblock = bi->bi_bmap.br_startblock; in xfs_bmap_update_log_item() 375 agno = XFS_FSB_TO_AGNO(mp, bi->bi_bmap.br_startblock); in xfs_bmap_update_get_group() 544 fake.bi_bmap.br_startblock = map->me_startblock; in xfs_bui_item_recover()
|
H A D | xfs_rmap_item.c | 355 map->me_startblock = ri->ri_bmap.br_startblock; in xfs_rmap_update_log_item() 401 agno = XFS_FSB_TO_AGNO(mp, ri->ri_bmap.br_startblock); in xfs_rmap_update_get_group() 585 fake.ri_bmap.br_startblock = map->me_startblock; in xfs_rui_item_recover()
|
H A D | xfs_qm.c | 1020 ASSERT(map[i].br_startblock != DELAYSTARTBLOCK); in xfs_qm_reset_dqcounts_buf() 1026 if (map[i].br_startblock == HOLESTARTBLOCK) in xfs_qm_reset_dqcounts_buf() 1035 (map[i+1].br_startblock != HOLESTARTBLOCK)) { in xfs_qm_reset_dqcounts_buf() 1037 rablkno = map[i+1].br_startblock; in xfs_qm_reset_dqcounts_buf() 1051 map[i].br_startblock, in xfs_qm_reset_dqcounts_buf()
|
H A D | xfs_rtalloc.c | 855 for (bno = map.br_startoff, fsbno = map.br_startblock; in xfs_growfs_rt_alloc()
|
H A D | xfs_icache.c | 1780 if (isnullstartblock(got.br_startblock)) { in xfs_check_delalloc()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | bmap.c | 293 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock, in xchk_bmap_rt_iextent_xref() 311 agno = XFS_FSB_TO_AGNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref() 312 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xchk_bmap_iextent_xref() 413 !xfs_verify_rtext(mp, irec->br_startblock, irec->br_blockcount)) in xchk_bmap_iextent() 417 !xfs_verify_fsbext(mp, irec->br_startblock, irec->br_blockcount)) in xchk_bmap_iextent() 488 irec.br_startblock != iext_irec.br_startblock || in xchk_bmapbt_rec() 579 if (irec.br_startblock != XFS_AGB_TO_FSB(sc->mp, in xchk_bmap_check_rmap() 734 if (irec->br_startblock == HOLESTARTBLOCK) in xchk_bmap_iext_mapping() 756 if (b1->br_startblock + b1->br_blockcount != b2->br_startblock) in xchk_are_bmaps_contiguous() 927 if (isnullstartblock(irec.br_startblock)) in xchk_bmap()
|