/fs/xfs/scrub/ |
D | bmap.c | 86 struct xfs_bmbt_irec *irec, in xchk_bmap_get_rmap() argument 106 offset = irec->br_startoff; in xchk_bmap_get_rmap() 141 irec->br_startoff); in xchk_bmap_get_rmap() 149 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument 165 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap() 171 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 173 irec->br_startoff); in xchk_bmap_xref_rmap() 183 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap() 184 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap() 186 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap() [all …]
|
D | rmap.c | 36 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref_refc() argument 49 non_inode = XFS_RMAP_NON_INODE_OWNER(irec->rm_owner); in xchk_rmapbt_xref_refc() 50 is_bmbt = irec->rm_flags & XFS_RMAP_BMBT_BLOCK; in xchk_rmapbt_xref_refc() 51 is_attr = irec->rm_flags & XFS_RMAP_ATTR_FORK; in xchk_rmapbt_xref_refc() 52 is_unwritten = irec->rm_flags & XFS_RMAP_UNWRITTEN; in xchk_rmapbt_xref_refc() 55 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc() 56 irec->rm_blockcount, &fbno, &flen, false); in xchk_rmapbt_xref_refc() 67 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref() argument 69 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref() 70 xfs_extlen_t len = irec->rm_blockcount; in xchk_rmapbt_xref() [all …]
|
D | ialloc.c | 59 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk_xref_other() argument 75 if (((irec->ir_freecount > 0 && !has_irec) || in xchk_iallocbt_chunk_xref_other() 76 (irec->ir_freecount == 0 && has_irec))) in xchk_iallocbt_chunk_xref_other() 84 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk_xref() argument 93 xchk_iallocbt_chunk_xref_other(sc, irec, agino); in xchk_iallocbt_chunk_xref() 102 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk() argument 116 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk() 147 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_check_cluster_ifree() argument 166 agino = irec->ir_startino + irec_ino; in xchk_iallocbt_check_cluster_ifree() 168 irec_free = (irec->ir_free & XFS_INOBT_MASK(irec_ino)); in xchk_iallocbt_check_cluster_ifree() [all …]
|
D | quota.c | 189 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local 204 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork() 211 if (isnullstartblock(irec.br_startblock) || in xchk_quota_data_fork() 212 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork() 213 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork() 215 irec.br_startoff); in xchk_quota_data_fork()
|
D | trace.h | 732 struct xfs_refcount_irec *irec), 733 TP_ARGS(mp, agno, irec), 744 __entry->startblock = irec->rc_startblock; 745 __entry->blockcount = irec->rc_blockcount; 746 __entry->refcount = irec->rc_refcount;
|
/fs/xfs/ |
D | xfs_iwalk.c | 91 struct xfs_inobt_rec_incore *irec) in xfs_iwalk_ichunk_ra() argument 98 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_iwalk_ichunk_ra() 105 if (imask & ~irec->ir_free) { in xfs_iwalk_ichunk_ra() 123 struct xfs_inobt_rec_incore *irec) /* btree record */ in xfs_iwalk_adjust_start() argument 128 idx = agino - irec->ir_startino; in xfs_iwalk_adjust_start() 136 if (XFS_INOBT_MASK(i) & ~irec->ir_free) in xfs_iwalk_adjust_start() 137 irec->ir_freecount++; in xfs_iwalk_adjust_start() 140 irec->ir_free |= xfs_inobt_maskn(0, idx); in xfs_iwalk_adjust_start() 185 struct xfs_inobt_rec_incore *irec = &iwag->recs[i]; in xfs_iwalk_ag_recs() local 187 trace_xfs_iwalk_ag_rec(mp, agno, irec); in xfs_iwalk_ag_recs() [all …]
|
D | xfs_fsmap.c | 361 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local 367 irec.rm_startblock = rec->ar_startblock; in xfs_getfsmap_datadev_bnobt_helper() 368 irec.rm_blockcount = rec->ar_blockcount; in xfs_getfsmap_datadev_bnobt_helper() 369 irec.rm_owner = XFS_RMAP_OWN_NULL; /* "free" */ in xfs_getfsmap_datadev_bnobt_helper() 370 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper() 371 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper() 373 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper() 379 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument 382 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags() 384 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags() [all …]
|
D | xfs_refcount_item.c | 463 struct xfs_bmbt_irec irec; in xfs_cui_recover() local 554 irec.br_startblock = new_fsb; in xfs_cui_recover() 555 irec.br_blockcount = new_len; in xfs_cui_recover() 558 xfs_refcount_increase_extent(tp, &irec); in xfs_cui_recover() 561 xfs_refcount_decrease_extent(tp, &irec); in xfs_cui_recover() 565 irec.br_startblock, in xfs_cui_recover() 566 irec.br_blockcount); in xfs_cui_recover() 570 irec.br_startblock, in xfs_cui_recover() 571 irec.br_blockcount); in xfs_cui_recover()
|
D | xfs_reflink.c | 173 struct xfs_bmbt_irec *irec, in xfs_reflink_trim_around_shared() argument 184 if (!xfs_is_cow_inode(ip) || !xfs_bmap_is_real_extent(irec)) { in xfs_reflink_trim_around_shared() 189 trace_xfs_reflink_trim_around_shared(ip, irec); in xfs_reflink_trim_around_shared() 191 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 192 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 193 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared() 211 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared() 221 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 996 struct xfs_bmbt_irec *irec, in xfs_reflink_remap_extent() argument 1001 bool real_extent = xfs_bmap_is_real_extent(irec); in xfs_reflink_remap_extent() [all …]
|
D | xfs_itable.c | 332 const struct xfs_inobt_rec_incore *irec, in xfs_inumbers_walk() argument 336 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk() 337 .xi_alloccount = irec->ir_count - irec->ir_freecount, in xfs_inumbers_walk() 338 .xi_allocmask = ~irec->ir_free, in xfs_inumbers_walk() 348 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
|
D | xfs_bmap_item.c | 450 struct xfs_bmbt_irec irec; in xfs_bui_recover() local 541 irec.br_startblock = bmap->me_startblock; in xfs_bui_recover() 542 irec.br_blockcount = count; in xfs_bui_recover() 543 irec.br_startoff = bmap->me_startoff; in xfs_bui_recover() 544 irec.br_state = state; in xfs_bui_recover() 545 xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_bui_recover()
|
D | xfs_trace.h | 1228 int whichfork, struct xfs_bmbt_irec *irec), 1229 TP_ARGS(ip, offset, count, whichfork, irec), 1248 __entry->startoff = irec ? irec->br_startoff : 0; 1249 __entry->startblock = irec ? irec->br_startblock : 0; 1250 __entry->blockcount = irec ? irec->br_blockcount : 0; 1268 int whichfork, struct xfs_bmbt_irec *irec), \ 1269 TP_ARGS(ip, offset, count, whichfork, irec)) 2672 struct xfs_refcount_irec *irec), 2673 TP_ARGS(mp, agno, irec), 2684 __entry->startblock = irec->rc_startblock; [all …]
|
D | xfs_iwalk.h | 36 const struct xfs_inobt_rec_incore *irec,
|
D | xfs_bmap_util.c | 1474 struct xfs_bmbt_irec irec; in xfs_swap_extent_rmap() local 1521 tirec.br_blockcount, &irec, in xfs_swap_extent_rmap() 1526 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap() 1527 trace_xfs_swap_extent_rmap_remap_piece(ip, &irec); in xfs_swap_extent_rmap() 1533 irec.br_blockcount); in xfs_swap_extent_rmap() 1540 xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_swap_extent_rmap() 1546 xfs_bmap_map_extent(tp, tip, &irec); in xfs_swap_extent_rmap()
|
/fs/xfs/libxfs/ |
D | xfs_rmap.h | 49 const struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_pack() argument 53 x = XFS_RMAP_OFF(irec->rm_offset); in xfs_rmap_irec_offset_pack() 54 if (irec->rm_flags & XFS_RMAP_ATTR_FORK) in xfs_rmap_irec_offset_pack() 56 if (irec->rm_flags & XFS_RMAP_BMBT_BLOCK) in xfs_rmap_irec_offset_pack() 58 if (irec->rm_flags & XFS_RMAP_UNWRITTEN) in xfs_rmap_irec_offset_pack() 66 struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_unpack() argument 70 irec->rm_offset = XFS_RMAP_OFF(offset); in xfs_rmap_irec_offset_unpack() 71 irec->rm_flags = 0; in xfs_rmap_irec_offset_unpack() 73 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_rmap_irec_offset_unpack() 75 irec->rm_flags |= XFS_RMAP_BMBT_BLOCK; in xfs_rmap_irec_offset_unpack() [all …]
|
D | xfs_rmap.c | 77 struct xfs_rmap_irec *irec) in xfs_rmap_update() argument 83 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update() 84 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update() 86 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update() 87 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update() 88 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update() 90 xfs_rmap_irec_offset_pack(irec)); in xfs_rmap_update() 169 struct xfs_rmap_irec *irec) in xfs_rmap_btrec_to_irec() argument 171 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec() 172 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec() [all …]
|
D | xfs_refcount.c | 94 struct xfs_refcount_irec *irec) in xfs_refcount_btrec_to_irec() argument 96 irec->rc_startblock = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcount_btrec_to_irec() 97 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec() 98 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); in xfs_refcount_btrec_to_irec() 107 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument 120 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec() 123 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec() 127 realstart = irec->rc_startblock; in xfs_refcount_get_rec() 129 if (irec->rc_refcount != 1) in xfs_refcount_get_rec() 132 } else if (irec->rc_refcount < 2) { in xfs_refcount_get_rec() [all …]
|
D | xfs_refcount.h | 16 struct xfs_refcount_irec *irec, int *stat); 33 struct xfs_bmbt_irec *irec); 35 struct xfs_bmbt_irec *irec); 75 struct xfs_refcount_irec *irec); 77 struct xfs_refcount_irec *irec, int *stat);
|
D | xfs_iext_tree.c | 55 struct xfs_bmbt_irec *irec) in xfs_iext_set() argument 57 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set() 58 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set() 59 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set() 61 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set() 62 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set() 64 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set() 65 rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); in xfs_iext_set() 67 if (irec->br_state == XFS_EXT_UNWRITTEN) in xfs_iext_set() 73 struct xfs_bmbt_irec *irec, in xfs_iext_get() argument [all …]
|
D | xfs_ialloc.c | 56 xfs_inobt_rec_incore_t *irec) /* btree record */ in xfs_inobt_update() argument 60 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update() 62 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update() 63 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update() 64 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update() 67 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update() 69 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update() 78 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument 80 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec() 82 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec() [all …]
|
D | xfs_bmap.h | 166 static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument 168 return irec->br_state != XFS_EXT_UNWRITTEN && in xfs_bmap_is_real_extent() 169 irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent() 170 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent() 171 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent() 181 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 283 struct xfs_bmbt_irec *irec);
|
D | xfs_bmap_btree.c | 62 struct xfs_bmbt_irec *irec) in xfs_bmbt_disk_get_all() argument 67 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all() 68 irec->br_startblock = ((l0 & xfs_mask64lo(9)) << 43) | (l1 >> 21); in xfs_bmbt_disk_get_all() 69 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all() 71 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_bmbt_disk_get_all() 73 irec->br_state = XFS_EXT_NORM; in xfs_bmbt_disk_get_all()
|
D | xfs_bmap.c | 99 struct xfs_bmbt_irec *irec, in xfs_bmbt_lookup_eq() argument 102 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq() 146 struct xfs_bmbt_irec *irec) in xfs_bmbt_update() argument 150 xfs_bmbt_disk_set_all(&rec.bmbt, irec); in xfs_bmbt_update() 3660 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument 3667 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent() 3668 irec->br_startoff >= end) { in xfs_trim_extent() 3669 irec->br_blockcount = 0; in xfs_trim_extent() 3673 if (irec->br_startoff < bno) { in xfs_trim_extent() 3674 distance = bno - irec->br_startoff; in xfs_trim_extent() [all …]
|
D | xfs_ialloc.h | 142 struct xfs_inobt_rec_incore *irec);
|
/fs/ext4/ |
D | fsmap.c | 190 struct ext4_fsmap irec; in ext4_getfsmap_datadev_helper() local 235 irec.fmr_device = 0; in ext4_getfsmap_datadev_helper() 236 irec.fmr_physical = fsb; in ext4_getfsmap_datadev_helper() 237 irec.fmr_length = fslen; in ext4_getfsmap_datadev_helper() 238 irec.fmr_owner = EXT4_FMR_OWN_FREE; in ext4_getfsmap_datadev_helper() 239 irec.fmr_flags = 0; in ext4_getfsmap_datadev_helper() 242 if (ext4_fsmap_next_pblk(&irec) == in ext4_getfsmap_datadev_helper() 244 info->gfi_lastfree = irec; in ext4_getfsmap_datadev_helper() 249 return ext4_getfsmap_helper(sb, info, &irec); in ext4_getfsmap_datadev_helper() 257 struct ext4_fsmap irec; in ext4_getfsmap_logdev() local [all …]
|