/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 122 cur->bc_rec.b.br_blockcount = 0; in xfs_bmbt_lookup_first() 496 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret() 499 ASSERT(mval[i].br_blockcount <= len); in xfs_bmap_validate_ret() 500 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret() 504 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret() 508 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret() 840 rec.br_blockcount = 1; in xfs_bmap_local_to_extents() 1113 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec() 1260 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused() 1364 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof() [all …]
|
H A D | xfs_attr_remote.c | 418 dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); in xfs_attr_rmtval_get() 432 lblkno += map[i].br_blockcount; in xfs_attr_rmtval_get() 433 blkcnt -= map[i].br_blockcount; in xfs_attr_rmtval_get() 513 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_set_value() 530 lblkno += map.br_blockcount; in xfs_attr_rmtval_set_value() 531 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set_value() 556 XFS_FSB_TO_BB(mp, map->br_blockcount), in xfs_attr_rmtval_stale() 626 attr->xattri_lblkno += map->br_blockcount; in xfs_attr_rmtval_set_blk() 627 attr->xattri_blkcnt -= map->br_blockcount; in xfs_attr_rmtval_set_blk() 667 lblkno += map.br_blockcount; in xfs_attr_rmtval_invalidate() [all …]
|
H A 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()
|
H A D | xfs_iext_tree.c | 58 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() 973 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
|
H A D | xfs_types.h | 166 xfs_filblks_t br_blockcount; /* number of blocks */ member
|
H A D | xfs_rmap.c | 2456 ri->ri_bmap.br_startoff, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one() 2496 error = xfs_rmap_map(rcur, bno, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one() 2501 ri->ri_bmap.br_blockcount, unwritten, &oinfo); in xfs_rmap_finish_one() 2505 error = xfs_rmap_unmap(rcur, bno, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one() 2510 ri->ri_bmap.br_blockcount, unwritten, &oinfo); in xfs_rmap_finish_one() 2513 error = xfs_rmap_convert(rcur, bno, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one() 2518 ri->ri_bmap.br_blockcount, !unwritten, &oinfo); in xfs_rmap_finish_one() 2559 bmap->br_blockcount, in __xfs_rmap_add() 2651 bmap.br_blockcount = len; in xfs_rmap_alloc_extent() 2673 bmap.br_blockcount = len; in xfs_rmap_free_extent()
|
H A D | xfs_da_btree.c | 2198 mapp[mapi - 1].br_blockcount; in xfs_da_grow_inode_int() 2208 got += mapp[i].br_blockcount; in xfs_da_grow_inode_int() 2210 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int() 2555 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_dabuf_map() 2556 off += irecs[i].br_blockcount; in xfs_dabuf_map() 2581 irecs[i].br_blockcount, in xfs_dabuf_map()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | bmap.c | 192 if (rmap_end != agbno + irec->br_blockcount) in xchk_bmap_xref_rmap() 202 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap() 260 if (rmap_end < agbno + irec->br_blockcount) in xchk_bmap_xref_rmap_cow() 294 irec->br_blockcount); in xchk_bmap_rt_iextent_xref() 313 len = irec->br_blockcount; in xchk_bmap_iextent_xref() 329 irec->br_blockcount, &oinfo); in xchk_bmap_iextent_xref() 331 irec->br_blockcount); in xchk_bmap_iextent_xref() 334 irec->br_blockcount); in xchk_bmap_iextent_xref() 340 xchk_xref_is_only_owned_by(info->sc, agbno, irec->br_blockcount, in xchk_bmap_iextent_xref() 343 irec->br_blockcount); in xchk_bmap_iextent_xref() [all …]
|
H A D | dir.c | 673 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 681 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 692 got.br_blockcount == args.geo->fsbcount && in xchk_directory_blocks() 738 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 745 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
|
H A D | rtbitmap.c | 91 off += map.br_blockcount; in xchk_rtbitmap_check_extents()
|
H A D | quota.c | 206 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_reflink.c | 191 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared() 212 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared() 223 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 268 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked() 317 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent() 336 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent() 354 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_reflink_convert_unwritten() 397 imap->br_blockcount, xfs_get_cowextsz_hint(ip)); in xfs_reflink_fill_cow_hole() 421 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_fill_cow_hole() 484 cmap->br_blockcount, in xfs_reflink_fill_delalloc() [all …]
|
H A D | xfs_iomap.c | 46 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero() 124 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap() 228 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb() 434 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size() 442 plen = prev.br_blockcount; in xfs_iomap_prealloc_size() 446 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size() 447 got.br_startblock + got.br_blockcount != prev.br_startblock) in xfs_iomap_prealloc_size() 449 plen += got.br_blockcount; in xfs_iomap_prealloc_size() 637 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten() 642 ASSERT(imap.br_blockcount); in xfs_iomap_write_unwritten() [all …]
|
H A D | xfs_bmap_util.c | 238 *count += got.br_blockcount; in xfs_bmap_count_leaves() 339 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one() 382 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec() 387 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec() 390 rec->br_startblock += rec->br_blockcount; in xfs_getbmap_next_rec() 391 rec->br_blockcount = total_end - end; in xfs_getbmap_next_rec() 549 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap() 610 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range() 619 if (!del.br_blockcount || in xfs_bmap_punch_delalloc_range() 902 startoffset_fsb += imapp->br_blockcount; in xfs_alloc_file_space() [all …]
|
H A D | xfs_bmap_item.c | 331 map->me_len = bi->bi_bmap.br_blockcount; in xfs_bmap_update_log_item() 409 if (!error && bi->bi_bmap.br_blockcount > 0) { in xfs_bmap_update_finish_item() 546 fake.bi_bmap.br_blockcount = map->me_len; in xfs_bui_item_recover() 559 if (fake.bi_bmap.br_blockcount > 0) { in xfs_bui_item_recover()
|
H A D | xfs_aops.c | 326 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 339 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks() 340 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
|
H A D | xfs_symlink.c | 56 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_readlink_bmap_ilocked() 288 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink() 432 XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0, in xfs_inactive_symlink_rmt()
|
H A D | xfs_attr_inactive.c | 68 blkno += map.br_blockcount; in xfs_attr3_rmt_stale() 69 blkcnt -= map.br_blockcount; in xfs_attr3_rmt_stale()
|
H A D | xfs_refcount_item.c | 569 .br_blockcount = fake.ri_blockcount, in xfs_cui_item_recover() 582 irec.br_blockcount); in xfs_cui_item_recover() 587 irec.br_blockcount); in xfs_cui_item_recover()
|
H A D | xfs_dir2_readdir.c | 300 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf() 312 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()
|
H A D | xfs_qm.c | 1021 ASSERT(map[i].br_blockcount); in xfs_qm_reset_dqcounts_buf() 1024 lblkno += map[i].br_blockcount; in xfs_qm_reset_dqcounts_buf() 1036 rablkcnt = map[i+1].br_blockcount; in xfs_qm_reset_dqcounts_buf() 1052 map[i].br_blockcount, in xfs_qm_reset_dqcounts_buf()
|
H A D | xfs_rmap_item.c | 357 map->me_len = ri->ri_bmap.br_blockcount; in xfs_rmap_update_log_item() 587 fake.ri_bmap.br_blockcount = map->me_len; in xfs_rui_item_recover()
|
H A D | xfs_pnfs.c | 190 imap.br_blockcount); in xfs_fs_map_blocks()
|
H A D | xfs_dquot.c | 335 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_dquot_disk_alloc() 437 ASSERT(map.br_blockcount >= 1); in xfs_dquot_disk_read()
|
H A D | xfs_rtalloc.c | 856 bno < map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc() 893 oblocks = map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
|