Home
last modified time | relevance | path

Searched refs:br_blockcount (Results 1 – 25 of 47) sorted by relevance

12

/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c127 cur->bc_rec.b.br_blockcount = 0; in xfs_bmbt_lookup_first()
522 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret()
525 ASSERT(mval[i].br_blockcount <= len); in xfs_bmap_validate_ret()
526 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
530 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
534 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
865 rec.br_blockcount = 1; in xfs_bmap_local_to_extents()
1116 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec()
1268 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1373 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
[all …]
H A Dxfs_exchmaps.c96 len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount), in xfs_exchmaps_update_size()
114 xmi->xmi_startoff1 += irec->br_blockcount; in xmi_advance()
115 xmi->xmi_startoff2 += irec->br_blockcount; in xmi_advance()
116 xmi->xmi_blockcount -= irec->br_blockcount; in xmi_advance()
174 ip1_delta -= irec1->br_blockcount; in xfs_exchmaps_update_quota()
175 ip2_delta += irec1->br_blockcount; in xfs_exchmaps_update_quota()
179 ip1_delta += irec2->br_blockcount; in xfs_exchmaps_update_quota()
180 ip2_delta -= irec2->br_blockcount; in xfs_exchmaps_update_quota()
241 irec->br_blockcount = min(irec->br_blockcount, in xfs_exchmaps_can_skip_mapping()
245 if (isaligned_64(irec->br_blockcount, mp->m_sb.sb_rextsize)) in xfs_exchmaps_can_skip_mapping()
[all …]
H A Dxfs_attr_remote.c433 dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); in xfs_attr_rmtval_get()
455 lblkno += map[i].br_blockcount; in xfs_attr_rmtval_get()
456 blkcnt -= map[i].br_blockcount; in xfs_attr_rmtval_get()
536 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_set_value()
553 lblkno += map.br_blockcount; in xfs_attr_rmtval_set_value()
554 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set_value()
581 XFS_FSB_TO_BB(mp, map->br_blockcount), in xfs_attr_rmtval_stale()
651 attr->xattri_lblkno += map->br_blockcount; in xfs_attr_rmtval_set_blk()
652 attr->xattri_blkcnt -= map->br_blockcount; in xfs_attr_rmtval_set_blk()
694 lblkno += map.br_blockcount; in xfs_attr_rmtval_invalidate()
[all …]
H A Dxfs_symlink_remote.c266 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink_remote_read()
360 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink_write_target()
412 XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0, in xfs_symlink_remote_truncate()
H A Dxfs_iext_tree.c58 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()
990 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
H A Dxfs_bmap_btree.c87 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all()
127 ASSERT(!(s->br_blockcount & xfs_mask64hi(64-BMBT_BLOCKCOUNT_BITLEN))); in xfs_bmbt_disk_set_all()
136 ((xfs_bmbt_rec_base_t)s->br_blockcount & in xfs_bmbt_disk_set_all()
H A Dxfs_types.h158 xfs_filblks_t br_blockcount; /* number of blocks */ member
/linux/fs/xfs/scrub/
H A Dbmap.c226 if (rmap_end != bno + irec->br_blockcount) in xchk_bmap_xref_rmap()
236 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap()
294 if (rmap_end < bno + irec->br_blockcount) in xchk_bmap_xref_rmap_cow()
344 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
358 irec->br_blockcount, &oinfo); in xchk_bmap_rt_iextent_xref()
360 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
363 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
368 irec->br_blockcount, &XFS_RMAP_OINFO_COW); in xchk_bmap_rt_iextent_xref()
370 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
372 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
[all …]
H A Dcow_repair.c131 xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_trim_refcount()
133 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_trim_refcount()
223 if (rec_bno + rec_len > xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_mark_missing_staging_rmap()
225 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_mark_missing_staging_rmap()
263 rc_high.rc_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
272 rc_high.rc_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
280 if (xc->next_bno < xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_find_bad()
283 xc->irec_startbno + xc->irec.br_blockcount - in xrep_cow_find_bad()
292 rm_high.rm_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
305 xc->irec.br_blockcount); in xrep_cow_find_bad()
[all …]
H A Dreap.c1247 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_select()
1275 imap->br_blockcount = len; in xreap_bmapi_select()
1336 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_binval()
1349 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval()
1367 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()
1403 imap->br_blockcount = agbno_next - bno; in xreap_bmapi_binval()
1414 imap->br_blockcount); in xreap_bmapi_binval()
1442 imap->br_blockcount); in xrep_reap_bmapi_iter()
1451 -(int64_t)imap->br_blockcount); in xrep_reap_bmapi_iter()
1465 imap->br_blockcount); in xrep_reap_bmapi_iter()
[all …]
H A Dquota_repair.c422 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xrep_quota_data_fork()
438 irec.br_startoff, irec.br_blockcount, in xrep_quota_data_fork()
443 ASSERT(nrec.br_blockcount == irec.br_blockcount); in xrep_quota_data_fork()
481 fsbno < irec.br_startblock + irec.br_blockcount; in xrep_quota_data_fork()
H A Ddqiterate.c62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff) in xchk_dquot_iter_revalidate_bmap()
100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount; in xchk_dquot_iter_advance_bmap()
H A Dbmap_repair.c160 irec.br_blockcount = min_t(xfs_filblks_t, blockcount, in xrep_bmap_from_rmap()
180 irec.br_startblock += irec.br_blockcount; in xrep_bmap_from_rmap()
181 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap()
182 blockcount -= irec.br_blockcount; in xrep_bmap_from_rmap()
347 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
H A Drtbitmap_repair.c437 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
457 map.br_blockcount, in xrep_rtbitmap_data_mappings()
468 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
H A Dsymlink_repair.c127 d, XFS_FSB_TO_BB(sc->mp, mval[n].br_blockcount), in xrep_symlink_salvage_remote()
134 byte_cnt = XFS_FSB_TO_B(sc->mp, mval[n].br_blockcount); in xrep_symlink_salvage_remote()
H A Ddir.c844 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
852 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
863 got.br_blockcount == args.geo->fsbcount && in xchk_directory_blocks()
909 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
916 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
H A Dattr_repair.c900 offset = got.br_startoff + got.br_blockcount) { in xrep_xattr_recover()
912 dabno < got.br_startoff + got.br_blockcount; in xrep_xattr_recover()
921 got.br_blockcount - curr_offset); in xrep_xattr_recover()
990 irec.br_startblock, irec.br_blockcount, in xrep_xattr_fork_remove()
/linux/fs/xfs/
H A Dxfs_reflink.c158 error = xfs_refcount_find_shared(cur, orig_bno, irec->br_blockcount, in xfs_reflink_find_shared()
206 error = xfs_refcount_find_shared(cur, orig_bno, irec->br_blockcount, in xfs_reflink_find_rtshared()
264 irec->br_blockcount = shared_len; in xfs_reflink_trim_around_shared()
273 irec->br_blockcount = shared_offset; in xfs_reflink_trim_around_shared()
320 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked()
369 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent()
388 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
406 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_reflink_convert_unwritten()
449 imap->br_blockcount, xfs_get_cowextsz_hint(ip)); 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 Dxfs_iomap.c51 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero()
145 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
257 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb()
510 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
518 plen = prev.br_blockcount; in xfs_iomap_prealloc_size()
522 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
523 got.br_startblock + got.br_blockcount != prev.br_startblock) in xfs_iomap_prealloc_size()
525 plen += got.br_blockcount; in xfs_iomap_prealloc_size()
707 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten()
712 ASSERT(imap.br_blockcount); in xfs_iomap_write_unwritten()
[all …]
H A Dxfs_bmap_util.c84 *count += got.br_blockcount; in xfs_bmap_count_leaves()
185 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one()
228 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec()
233 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec()
236 rec->br_startblock += rec->br_blockcount; in xfs_getbmap_next_rec()
237 rec->br_blockcount = total_end - end; in xfs_getbmap_next_rec()
394 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
456 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
465 if (!del.br_blockcount || in xfs_bmap_punch_delalloc_range()
481 ac->reserved_blocks += del.br_blockcount; in xfs_bmap_punch_delalloc_range()
[all …]
H A Dxfs_zone_alloc.c251 error = xfs_bmapi_read(ip, new->br_startoff, new->br_blockcount, &data, in xfs_zoned_map_extent()
260 ASSERT(new->br_blockcount >= data.br_blockcount); in xfs_zoned_map_extent()
261 new->br_blockcount = data.br_blockcount; in xfs_zoned_map_extent()
297 data.br_blockcount, NULL, in xfs_zoned_map_extent()
305 xfs_zone_record_blocks(tp, oz, new->br_startblock, new->br_blockcount); in xfs_zoned_map_extent()
313 xfs_zone_skip_blocks(oz, new->br_blockcount); in xfs_zoned_map_extent()
342 new.br_blockcount = end_fsb - new.br_startoff; in xfs_zoned_end_io()
360 new.br_startoff += new.br_blockcount; in xfs_zoned_end_io()
361 new.br_startblock += new.br_blockcount; in xfs_zoned_end_io()
363 old_startblock += new.br_blockcount; in xfs_zoned_end_io()
H A Dxfs_bmap_item.c272 map->me_len = bi->bi_bmap.br_blockcount; in xfs_bmap_update_log_item()
368 bi->bi_owner->i_delayed_blks += bi->bi_bmap.br_blockcount; in xfs_bmap_defer_add()
382 bi->bi_owner->i_delayed_blks -= bi->bi_bmap.br_blockcount; in xfs_bmap_update_cancel_item()
400 if (!error && bi->bi_bmap.br_blockcount > 0) { in xfs_bmap_update_finish_item()
475 bi->bi_bmap.br_blockcount = map->me_len; in xfs_bui_recover_work()
483 bi->bi_owner->i_delayed_blks += bi->bi_bmap.br_blockcount; in xfs_bui_recover_work()
H A Dxfs_aops.c413 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
426 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
427 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
605 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_zoned_map_blocks()
613 end_fsb = min(end_fsb, imap.br_startoff + imap.br_blockcount); in xfs_zoned_map_blocks()
H A Dxfs_attr_inactive.c69 blkno += map.br_blockcount; in xfs_attr3_rmt_stale()
70 blkcnt -= map.br_blockcount; in xfs_attr3_rmt_stale()
H A Dxfs_dir2_readdir.c303 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf()
315 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()

12