/linux/fs/xfs/libxfs/ |
H A D | xfs_rmap.c | 51 cur->bc_rec.r.rm_blockcount = 0; in xfs_rmap_lookup_le() 86 cur->bc_rec.r.rm_blockcount = len; in xfs_rmap_lookup_eq() 106 trace_xfs_rmap_update(cur, irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update() 110 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update() 144 rcur->bc_rec.r.rm_blockcount = len; in xfs_rmap_insert() 206 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec() 224 if (irec->rm_blockcount == 0) in xfs_rmap_check_irec() 229 if (irec->rm_blockcount != XFS_AGFL_BLOCK(mp) + 1) in xfs_rmap_check_irec() 234 irec->rm_blockcount)) in xfs_rmap_check_irec() 263 !xfs_verify_fileext(mp, irec->rm_offset, irec->rm_blockcount)) in xfs_rmap_check_irec() [all …]
|
H A D | xfs_ag.c | 419 rrec->rm_blockcount = cpu_to_be32(XFS_BNO_BLOCK(mp)); in xfs_rmaproot_init() 426 rrec->rm_blockcount = cpu_to_be32(2); in xfs_rmaproot_init() 433 rrec->rm_blockcount = cpu_to_be32(XFS_RMAP_BLOCK(mp) - in xfs_rmaproot_init() 441 rrec->rm_blockcount = cpu_to_be32(1); in xfs_rmaproot_init() 449 rrec->rm_blockcount = cpu_to_be32(1); in xfs_rmaproot_init() 461 rrec->rm_blockcount = cpu_to_be32(mp->m_sb.sb_logblocks); in xfs_rmaproot_init()
|
H A D | xfs_rtrmap_btree.c | 144 adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; in xfs_rtrmapbt_init_high_key_from_rec() 164 rec->rmap.rm_blockcount = cpu_to_be32(cur->bc_rec.r.rm_blockcount); in xfs_rtrmapbt_init_rec_from_cur() 1022 .rm_blockcount = mp->m_sb.sb_rextsize, in xfs_rtrmapbt_init_rtsb()
|
H A D | xfs_rmap_btree.c | 198 adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; in xfs_rmapbt_init_high_key_from_rec() 218 rec->rmap.rm_blockcount = cpu_to_be32(cur->bc_rec.r.rm_blockcount); in xfs_rmapbt_init_rec_from_cur()
|
H A D | xfs_types.h | 186 xfs_extlen_t rm_blockcount; /* extent length */ member
|
/linux/fs/xfs/scrub/ |
H A D | rtrmap.c | 106 if (cr->overlap_rec.rm_blockcount == 0) in xchk_rtrmapbt_check_overlapping() 110 pnext = cr->overlap_rec.rm_startblock + cr->overlap_rec.rm_blockcount; in xchk_rtrmapbt_check_overlapping() 120 inext = irec->rm_startblock + irec->rm_blockcount; in xchk_rtrmapbt_check_overlapping() 137 if (cr->prev_rec.rm_blockcount == 0) in xchk_rtrmap_mergeable() 142 if (r1->rm_startblock + r1->rm_blockcount != r2->rm_startblock) in xchk_rtrmap_mergeable() 144 if ((unsigned long long)r1->rm_blockcount + r2->rm_blockcount > in xchk_rtrmap_mergeable() 149 return r1->rm_offset + r1->rm_blockcount == r2->rm_offset; in xchk_rtrmap_mergeable() 192 irec->rm_blockcount, &fbno, &flen, false); in xchk_rtrmapbt_xref_rtrefc() 210 irec->rm_blockcount); in xchk_rtrmapbt_xref() 213 irec->rm_blockcount); in xchk_rtrmapbt_xref()
|
H A D | bmap_repair.c | 209 rec->rm_blockcount)) in xrep_bmap_check_fork_rmap() 214 !xfs_verify_fileext(sc->mp, rec->rm_offset, rec->rm_blockcount)) in xrep_bmap_check_fork_rmap() 224 rec->rm_blockcount, &outcome); in xrep_bmap_check_fork_rmap() 232 rec->rm_startblock, rec->rm_blockcount, &outcome); in xrep_bmap_check_fork_rmap() 266 rb->nblocks += rec->rm_blockcount; in xrep_bmap_walk_rmap() 283 rb->old_bmbt_block_count += rec->rm_blockcount; in xrep_bmap_walk_rmap() 285 rec->rm_blockcount); in xrep_bmap_walk_rmap() 289 rec->rm_blockcount, in xrep_bmap_walk_rmap() 392 if (!xfs_verify_fileext(sc->mp, rec->rm_offset, rec->rm_blockcount)) in xrep_bmap_check_rtfork_rmap() 397 rec->rm_blockcount)) in xrep_bmap_check_rtfork_rmap() [all …]
|
H A D | rtrmap_repair.c | 137 rec->rm_blockcount); in xrep_rtrmap_check_mapping() 152 .rm_blockcount = blockcount, in xrep_rtrmap_stash() 210 if (rf->accum.rm_blockcount == 0) in xrep_rtrmap_stash_accumulated() 214 rf->accum.rm_blockcount, rf->accum.rm_owner, in xrep_rtrmap_stash_accumulated() 241 if (accum->rm_blockcount > 0 && in xrep_rtrmap_visit_bmbt() 242 rec->br_startoff == accum->rm_offset + accum->rm_blockcount && in xrep_rtrmap_visit_bmbt() 243 rgbno == accum->rm_startblock + accum->rm_blockcount && in xrep_rtrmap_visit_bmbt() 245 accum->rm_blockcount += rec->br_blockcount; in xrep_rtrmap_visit_bmbt() 255 accum->rm_blockcount = rec->br_blockcount; in xrep_rtrmap_visit_bmbt() 407 rec->rm_blockcount); in xrep_rtrmap_walk_rmap()
|
H A D | refcount.c | 123 rm_last = rec->rm_startblock + rec->rm_blockcount - 1; in xchk_refcountbt_rmap_check() 207 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 226 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 239 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 370 *next_bno = rec->rm_startblock + rec->rm_blockcount; in xchk_refcountbt_rmap_check_gap()
|
H A D | rmap_repair.c | 201 rec->rm_blockcount, &outcome); in xrep_rmap_check_mapping() 222 .rm_blockcount = blockcount, in xrep_rmap_stash() 327 if (rf->accum.rm_blockcount == 0) in xrep_rmap_stash_accumulated() 331 rf->accum.rm_blockcount, rf->accum.rm_owner, in xrep_rmap_stash_accumulated() 360 if (accum->rm_blockcount > 0 && in xrep_rmap_visit_bmbt() 361 rec->br_startoff == accum->rm_offset + accum->rm_blockcount && in xrep_rmap_visit_bmbt() 362 agbno == accum->rm_startblock + accum->rm_blockcount && in xrep_rmap_visit_bmbt() 364 accum->rm_blockcount += rec->br_blockcount; in xrep_rmap_visit_bmbt() 374 accum->rm_blockcount = rec->br_blockcount; in xrep_rmap_visit_bmbt() 1494 rec->rm_startblock + rec->rm_blockcount); in xrep_rmap_find_gaps()
|
H A D | rtrefcount.c | 137 rm_last = rec->rm_startblock + rec->rm_blockcount - 1; in xchk_rtrefcountbt_rmap_check() 221 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_rtrefcountbt_process_rmap_fragments() 240 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_rtrefcountbt_process_rmap_fragments() 253 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_rtrefcountbt_process_rmap_fragments() 420 *next_bno = rec->rm_startblock + rec->rm_blockcount; in xchk_rtrefcountbt_rmap_check_gap()
|
H A D | bmap.c | 225 rmap_end = (unsigned long long)rmap.rm_startblock + rmap.rm_blockcount; in xchk_bmap_xref_rmap() 235 rmap_end = (unsigned long long)rmap.rm_offset + rmap.rm_blockcount; in xchk_bmap_xref_rmap() 293 rmap_end = (unsigned long long)rmap.rm_startblock + rmap.rm_blockcount; in xchk_bmap_xref_rmap_cow() 667 if (irec.br_blockcount > check_rec.rm_blockcount) in xchk_bmap_check_rmap() 674 check_rec.rm_blockcount -= irec.br_blockcount; in xchk_bmap_check_rmap() 675 if (check_rec.rm_blockcount == 0) in xchk_bmap_check_rmap()
|
H A D | ialloc_repair.c | 401 rec->rm_blockcount)) in xrep_ibt_record_old_btree_blocks() 405 rec->rm_blockcount); in xrep_ibt_record_old_btree_blocks() 420 rec->rm_blockcount); in xrep_ibt_record_inode_blocks() 431 cluster_base < rec->rm_blockcount; in xrep_ibt_record_inode_blocks()
|
H A D | refcount_repair.c | 272 rmap->rm_blockcount); in xrep_refc_walk_rmaps() 277 rr->btblocks += rmap->rm_blockcount; in xrep_refc_walk_rmaps() 280 rmap->rm_blockcount); in xrep_refc_walk_rmaps()
|
H A D | rtrefcount_repair.c | 260 rmap->rm_blockcount); in xrep_rtrefc_walk_rmaps() 378 rec->rm_blockcount); in xrep_rtrefc_walk_rmap()
|
H A D | rcbag.c | 102 bagrec.rbg_blockcount = rmap->rm_blockcount; in rcbag_add()
|
H A D | repair.c | 685 for (b = 0; b < rec->rm_blockcount; b++) { in xrep_findroot_rmap() 1350 rec->rm_blockcount)) in xrep_check_ino_btree_mapping() 1355 rec->rm_blockcount, &outcome); in xrep_check_ino_btree_mapping()
|
H A D | alloc_repair.c | 235 rec->rm_startblock, rec->rm_blockcount); in xrep_abt_walk_rmap() 257 rec->rm_startblock + rec->rm_blockcount); in xrep_abt_walk_rmap()
|
H A D | rcbag_btree.c | 324 rec->rbg_blockcount = rmap->rm_blockcount; in rcbagbt_lookup_eq()
|
H A D | inode_repair.c | 742 ri->attr_blocks += rec->rm_blockcount; in xrep_dinode_walk_rmap() 749 ri->data_blocks += rec->rm_blockcount; in xrep_dinode_walk_rmap() 797 ri->rt_blocks += rec->rm_blockcount; in xrep_dinode_walk_rtrmap()
|
H A D | rtbitmap_repair.c | 318 rec->rm_startblock + rec->rm_blockcount); in xrep_rtbitmap_walk_rtrmap()
|
H A D | cow_repair.c | 216 rec_len = rec->rm_blockcount; in xrep_cow_mark_missing_staging_rmap()
|
H A D | common.c | 398 (*sroi->blocks) += rec->rm_blockcount; in xchk_count_rmap_ownedby_irec()
|
/linux/fs/xfs/ |
H A D | xfs_fsmap.c | 263 if (info->low.rm_blockcount) { in xfs_getfsmap_frec_before_start() 417 rec->rm_startblock, rec->rm_blockcount, &frec); in xfs_getfsmap_rmapbt_helper() 501 info->low.rm_blockcount = XFS_BB_TO_FSBT(mp, keys[0].fmr_length); in __xfs_getfsmap_datadev() 505 if (info->low.rm_blockcount == 0) { in __xfs_getfsmap_datadev() 512 start_fsb += info->low.rm_blockcount; in __xfs_getfsmap_datadev() 517 info->low.rm_offset += info->low.rm_blockcount; in __xfs_getfsmap_datadev() 524 info->high.rm_blockcount = 0; in __xfs_getfsmap_datadev() 853 rec->rm_startblock, rec->rm_blockcount, &frec); in xfs_getfsmap_rtdev_rmapbt_helper() 905 info->low.rm_blockcount = XFS_BB_TO_FSBT(mp, keys[0].fmr_length); in xfs_getfsmap_rtdev_rmapbt() 909 if (info->low.rm_blockcount == 0) { in xfs_getfsmap_rtdev_rmapbt() [all …]
|
H A D | xfs_notify_failure.c | 64 end_rec = rec->rm_startblock + rec->rm_blockcount; in xfs_failure_pgcnt()
|