Home
last modified time | relevance | path

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

12

/linux/fs/xfs/scrub/
H A Dcow_repair.c126 xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_trim_refcount()
128 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_trim_refcount()
218 if (rec_bno + rec_len > xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_mark_missing_staging_rmap()
220 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_mark_missing_staging_rmap()
237 xfs_extlen_t len = xc->irec.br_blockcount; in xrep_cow_debug_replacement()
281 rc_high.rc_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
290 rc_high.rc_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
298 if (xc->next_bno < xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_find_bad()
301 xc->irec_startbno + xc->irec.br_blockcount - in xrep_cow_find_bad()
310 rm_high.rm_startblock = xc->irec_startbno + xc->irec.br_blockcount - 1; in xrep_cow_find_bad()
[all …]
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 Dreap.c1247 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_select()
1274 imap->br_blockcount = len; in xreap_bmapi_select()
1335 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_binval()
1348 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval()
1366 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()
1402 imap->br_blockcount = bno - agbno; in xreap_bmapi_binval()
1413 imap->br_blockcount); in xreap_bmapi_binval()
1441 imap->br_blockcount); in xrep_reap_bmapi_iter()
1450 -(int64_t)imap->br_blockcount); in xrep_reap_bmapi_iter()
1464 imap->br_blockcount); in xrep_reap_bmapi_iter()
[all …]
H A Dquota_repair.c429 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xrep_quota_data_fork()
445 irec.br_startoff, irec.br_blockcount, in xrep_quota_data_fork()
450 ASSERT(nrec.br_blockcount == irec.br_blockcount); in xrep_quota_data_fork()
487 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 Drtbitmap_repair.c442 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
462 map.br_blockcount, in xrep_rtbitmap_data_mappings()
473 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.c849 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
857 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
868 got.br_blockcount == args.geo->fsbcount && in xchk_directory_blocks()
914 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
921 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()
H A Drtbitmap.c183 off += map.br_blockcount; in xchk_rtbitmap_check_extents()
H A Dquota.c290 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
H A Drtsummary.c270 off += map.br_blockcount; in xchk_rtsum_compare()
H A Drmap_repair.c361 accum->rm_blockcount += rec->br_blockcount; in xrep_rmap_visit_bmbt()
371 accum->rm_blockcount = rec->br_blockcount; in xrep_rmap_visit_bmbt()
/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()
450 imap->br_blockcount, xfs_get_cowextsz_hint(ip)); in xfs_reflink_fill_cow_hole()
480 imap->br_blockcount, imap, &nimaps, 0); in xfs_reflink_fill_cow_hole()
[all …]
H A Dxfs_iomap.c51 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero()
146 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
260 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb()
513 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
521 plen = prev.br_blockcount; in xfs_iomap_prealloc_size()
525 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
526 got.br_startblock + got.br_blockcount != prev.br_startblock) in xfs_iomap_prealloc_size()
528 plen += got.br_blockcount; in xfs_iomap_prealloc_size()
710 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten()
715 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.c243 error = xfs_bmapi_read(ip, new->br_startoff, new->br_blockcount, &data, in xfs_zoned_map_extent()
252 ASSERT(new->br_blockcount >= data.br_blockcount); in xfs_zoned_map_extent()
253 new->br_blockcount = data.br_blockcount; in xfs_zoned_map_extent()
289 data.br_blockcount, NULL, in xfs_zoned_map_extent()
299 new->br_blockcount); in xfs_zoned_map_extent()
302 rmapip->i_used_blocks += new->br_blockcount; in xfs_zoned_map_extent()
304 xfs_zone_inc_written(oz, 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()
[all …]
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.c248 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
261 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
262 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
440 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_zoned_map_blocks()
448 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_qm.c1196 ASSERT(map[i].br_blockcount); in xfs_qm_reset_dqcounts_buf()
1199 lblkno += map[i].br_blockcount; in xfs_qm_reset_dqcounts_buf()
1211 rablkcnt = map[i+1].br_blockcount; in xfs_qm_reset_dqcounts_buf()
1227 map[i].br_blockcount, in xfs_qm_reset_dqcounts_buf()
H A Dxfs_rmap_item.c294 map->me_len = ri->ri_bmap.br_blockcount; in xfs_rmap_update_log_item()
552 ri->ri_bmap.br_blockcount = map->me_len; in xfs_rui_recover_work()
/linux/fs/xfs/libxfs/
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()
172 ip1_delta -= irec1->br_blockcount; in xfs_exchmaps_update_quota()
173 ip2_delta += irec1->br_blockcount; in xfs_exchmaps_update_quota()
177 ip1_delta += irec2->br_blockcount; in xfs_exchmaps_update_quota()
178 ip2_delta -= irec2->br_blockcount; in xfs_exchmaps_update_quota()
239 irec->br_blockcount = min(irec->br_blockcount, in xfs_exchmaps_can_skip_mapping()
[all...]
H A Dxfs_types.h158 xfs_filblks_t br_blockcount; /* number of blocks */ member
H A Dxfs_da_btree.c2368 mapp[mapi - 1].br_blockcount; in xfs_da_grow_inode_int()
2378 got += mapp[i].br_blockcount; in xfs_da_grow_inode_int()
2380 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()
2763 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_dabuf_map()
2764 off += irecs[i].br_blockcount; in xfs_dabuf_map()
2790 irecs[i].br_blockcount, in xfs_dabuf_map()

12