/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_bmap.c | 118 cur->bc_rec.b.br_blockcount = 0; in xfs_bmbt_lookup_first() 500 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret() 503 ASSERT(mval[i].br_blockcount <= len); in xfs_bmap_validate_ret() 504 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret() 508 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret() 512 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret() 901 rec.br_blockcount = 1; in xfs_bmap_local_to_extents() 1330 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused() 1437 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof() 1471 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset() [all …]
|
D | xfs_attr_remote.c | 406 dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); in xfs_attr_rmtval_get() 422 lblkno += map[i].br_blockcount; in xfs_attr_rmtval_get() 423 blkcnt -= map[i].br_blockcount; in xfs_attr_rmtval_get() 496 lblkno += map.br_blockcount; in xfs_attr_rmtval_set() 497 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set() 534 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_set() 551 lblkno += map.br_blockcount; in xfs_attr_rmtval_set() 552 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set() 599 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_remove() 611 lblkno += map.br_blockcount; in xfs_attr_rmtval_remove() [all …]
|
D | xfs_types.h | 146 xfs_filblks_t br_blockcount; /* number of blocks */ member
|
D | xfs_bmap_btree.c | 72 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all() 112 ASSERT(!(s->br_blockcount & xfs_mask64hi(64-BMBT_BLOCKCOUNT_BITLEN))); in xfs_bmbt_disk_set_all() 121 ((xfs_bmbt_rec_base_t)s->br_blockcount & in xfs_bmbt_disk_set_all()
|
D | xfs_iext_tree.c | 62 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set() 66 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set() 81 irec->br_blockcount = rec->hi & XFS_IEXT_LENGTH_MASK; in xfs_iext_get() 978 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
|
D | xfs_da_btree.c | 2096 mapp[mapi - 1].br_blockcount; in xfs_da_grow_inode_int() 2107 got += mapp[i].br_blockcount; in xfs_da_grow_inode_int() 2109 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int() 2436 off += mapp[i].br_blockcount; in xfs_da_map_covers_blocks() 2477 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_buf_map_from_irec() 2534 irecs->br_blockcount = nfsb; in xfs_dabuf_map() 2553 (long long)irecs[i].br_blockcount, in xfs_dabuf_map()
|
D | xfs_refcount.c | 1216 PREV->br_startblock, PREV->br_blockcount); in xfs_refcount_increase_extent() 1231 PREV->br_startblock, PREV->br_blockcount); in xfs_refcount_decrease_extent()
|
D | xfs_rmap.c | 2294 bmap->br_blockcount, in __xfs_rmap_add() 2377 bmap.br_blockcount = len; in xfs_rmap_alloc_extent() 2399 bmap.br_blockcount = len; in xfs_rmap_free_extent()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_reflink.c | 205 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared() 223 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared() 235 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 275 xfs_trim_extent(imap, got.br_startoff, got.br_blockcount); in xfs_reflink_reserve_cow() 299 imap->br_blockcount, 0, &got, &icur, eof); in xfs_reflink_reserve_cow() 324 if (imap->br_blockcount == 0) in xfs_reflink_convert_cow_extent() 326 return xfs_bmapi_write(NULL, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_convert_cow_extent() 368 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent() 385 xfs_trim_extent(imap, got.br_startoff, got.br_blockcount); in xfs_find_trim_cow_extent() 406 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_reflink_allocate_cow() [all …]
|
D | xfs_iomap.c | 60 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap() 138 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero() 190 imap->br_blockcount + in xfs_iomap_write_direct() 399 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size() 418 if (prev.br_blockcount <= (MAXEXTLEN >> 1)) in xfs_iomap_prealloc_size() 419 alloc_blocks = prev.br_blockcount << 1; in xfs_iomap_prealloc_size() 679 count_fsb = imap->br_blockcount; in xfs_iomap_write_allocate() 785 imap->br_blockcount))) { in xfs_iomap_write_allocate() 794 count_fsb -= imap->br_blockcount; in xfs_iomap_write_allocate() 795 map_start_fsb = imap->br_startoff + imap->br_blockcount; in xfs_iomap_write_allocate() [all …]
|
D | xfs_bmap_util.c | 205 *eof = endoff >= rec.br_startoff + rec.br_blockcount; in xfs_bmap_eof() 228 *count += got.br_blockcount; in xfs_bmap_count_leaves() 443 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one() 486 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec() 491 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec() 494 rec->br_startblock += rec->br_blockcount; in xfs_getbmap_next_rec() 495 rec->br_blockcount = total_end - end; in xfs_getbmap_next_rec() 654 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap() 711 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range() 720 if (!del.br_blockcount || in xfs_bmap_punch_delalloc_range() [all …]
|
D | xfs_trans_bmap.c | 159 map->me_len = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_log_item() 187 count = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_finish_item() 197 bmap->bi_bmap.br_blockcount = count; in xfs_bmap_update_finish_item()
|
D | xfs_attr_inactive.c | 79 map.br_blockcount); in xfs_attr3_leaf_freextent() 94 tblkno += map.br_blockcount; in xfs_attr3_leaf_freextent() 95 tblkcnt -= map.br_blockcount; in xfs_attr3_leaf_freextent()
|
D | xfs_refcount_item.c | 490 irec.br_blockcount = new_len; in xfs_cui_recover() 501 irec.br_blockcount); in xfs_cui_recover() 506 irec.br_blockcount); in xfs_cui_recover()
|
D | xfs_trans_rmap.c | 177 map->me_len = rmap->ri_bmap.br_blockcount; in xfs_rmap_update_log_item() 209 rmap->ri_bmap.br_blockcount, in xfs_rmap_update_finish_item()
|
D | xfs_aops.c | 350 offset_fsb < wpc->imap.br_startoff + wpc->imap.br_blockcount; in xfs_map_blocks() 424 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 436 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks() 437 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks() 460 imap.br_startoff + imap.br_blockcount <= cow_fsb); in xfs_map_blocks()
|
D | xfs_symlink.c | 62 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_readlink_bmap_ilocked() 299 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink() 438 XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0); in xfs_inactive_symlink_rmt()
|
D | xfs_dir2_readdir.c | 299 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf() 311 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()
|
D | xfs_qm.c | 1008 ASSERT(map[i].br_blockcount); in xfs_qm_reset_dqcounts_buf() 1011 lblkno += map[i].br_blockcount; in xfs_qm_reset_dqcounts_buf() 1023 rablkcnt = map[i+1].br_blockcount; in xfs_qm_reset_dqcounts_buf() 1039 map[i].br_blockcount, in xfs_qm_reset_dqcounts_buf()
|
D | xfs_bmap_item.c | 486 irec.br_blockcount = count; in xfs_bui_recover()
|
D | xfs_dquot.c | 315 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_dquot_disk_alloc() 408 ASSERT(map.br_blockcount >= 1); in xfs_dquot_disk_read()
|
D | xfs_rtalloc.c | 810 bno < map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc() 846 oblocks = map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
|
/Linux-v4.19/fs/xfs/scrub/ |
D | bmap.c | 178 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 191 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 234 irec->br_blockcount); in xchk_bmap_rt_extent_xref() 256 len = irec->br_blockcount; in xchk_bmap_extent_xref() 273 irec->br_blockcount); in xchk_bmap_extent_xref() 277 irec->br_blockcount); in xchk_bmap_extent_xref() 322 if (irec->br_blockcount > MAXEXTLEN) in xchk_bmap_extent() 325 if (irec->br_startblock + irec->br_blockcount <= irec->br_startblock) in xchk_bmap_extent() 328 end = irec->br_startblock + irec->br_blockcount - 1; in xchk_bmap_extent() 353 info->lastoff = irec->br_startoff + irec->br_blockcount; in xchk_bmap_extent() [all …]
|
D | dir.c | 668 got.br_blockcount != args.geo->fsbcount)) { in xchk_directory_blocks() 691 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 698 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 709 got.br_blockcount == args.geo->fsbcount && in xchk_directory_blocks() 755 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 762 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
|
D | quota.c | 224 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
|