/fs/xfs/libxfs/ |
D | xfs_rmap.h | 73 const struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_pack() argument 77 x = XFS_RMAP_OFF(irec->rm_offset); in xfs_rmap_irec_offset_pack() 78 if (irec->rm_flags & XFS_RMAP_ATTR_FORK) in xfs_rmap_irec_offset_pack() 80 if (irec->rm_flags & XFS_RMAP_BMBT_BLOCK) in xfs_rmap_irec_offset_pack() 82 if (irec->rm_flags & XFS_RMAP_UNWRITTEN) in xfs_rmap_irec_offset_pack() 90 struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_unpack() argument 94 irec->rm_offset = XFS_RMAP_OFF(offset); in xfs_rmap_irec_offset_unpack() 96 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_rmap_irec_offset_unpack() 98 irec->rm_flags |= XFS_RMAP_BMBT_BLOCK; in xfs_rmap_irec_offset_unpack() 100 irec->rm_flags |= XFS_RMAP_UNWRITTEN; in xfs_rmap_irec_offset_unpack() [all …]
|
D | xfs_rmap.c | 94 struct xfs_rmap_irec *irec) in xfs_rmap_update() argument 100 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update() 101 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update() 103 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update() 104 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update() 105 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update() 107 xfs_rmap_irec_offset_pack(irec)); in xfs_rmap_update() 186 struct xfs_rmap_irec *irec) in xfs_rmap_btrec_to_irec() argument 188 irec->rm_flags = 0; in xfs_rmap_btrec_to_irec() 189 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec() [all …]
|
D | xfs_bmap.h | 178 static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument 180 return irec->br_state != XFS_EXT_UNWRITTEN && in xfs_bmap_is_real_extent() 181 irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent() 182 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent() 183 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent() 209 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
|
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 115 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec() 117 irec); in xfs_refcount_get_rec() 130 struct xfs_refcount_irec *irec) in xfs_refcount_update() argument 135 trace_xfs_refcount_update(cur->bc_mp, cur->bc_private.a.agno, irec); in xfs_refcount_update() 136 rec.refc.rc_startblock = cpu_to_be32(irec->rc_startblock); in xfs_refcount_update() [all …]
|
D | xfs_refcount.h | 28 struct xfs_refcount_irec *irec, int *stat); 45 struct xfs_defer_ops *dfops, struct xfs_bmbt_irec *irec); 47 struct xfs_defer_ops *dfops, struct xfs_bmbt_irec *irec);
|
D | xfs_ialloc.c | 84 xfs_inobt_rec_incore_t *irec) /* btree record */ in xfs_inobt_update() argument 88 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update() 90 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update() 91 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update() 92 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update() 95 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update() 97 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update() 106 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument 108 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec() 110 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec() [all …]
|
D | xfs_ialloc.h | 173 struct xfs_inobt_rec_incore *irec);
|
D | xfs_bmap.c | 3825 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument 3832 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent() 3833 irec->br_startoff >= end) { in xfs_trim_extent() 3834 irec->br_blockcount = 0; in xfs_trim_extent() 3838 if (irec->br_startoff < bno) { in xfs_trim_extent() 3839 distance = bno - irec->br_startoff; in xfs_trim_extent() 3840 if (isnullstartblock(irec->br_startblock)) in xfs_trim_extent() 3841 irec->br_startblock = DELAYSTARTBLOCK; in xfs_trim_extent() 3842 if (irec->br_startblock != DELAYSTARTBLOCK && in xfs_trim_extent() 3843 irec->br_startblock != HOLESTARTBLOCK) in xfs_trim_extent() [all …]
|
D | xfs_da_btree.c | 2469 struct xfs_bmbt_irec irec; in xfs_dabuf_map() local 2470 struct xfs_bmbt_irec *irecs = &irec; in xfs_dabuf_map() 2490 irecs = kmem_zalloc(sizeof(irec) * nfsb, in xfs_dabuf_map() 2531 if (irecs != &irec) in xfs_dabuf_map()
|
D | xfs_alloc.c | 3002 struct xfs_alloc_rec_incore irec; in xfs_alloc_query_range_helper() local 3004 irec.ar_startblock = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_query_range_helper() 3005 irec.ar_blockcount = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_query_range_helper() 3006 return query->fn(cur, &irec, query->priv); in xfs_alloc_query_range_helper()
|
/fs/xfs/ |
D | xfs_fsmap.c | 379 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local 385 irec.rm_startblock = rec->ar_startblock; in xfs_getfsmap_datadev_bnobt_helper() 386 irec.rm_blockcount = rec->ar_blockcount; in xfs_getfsmap_datadev_bnobt_helper() 387 irec.rm_owner = XFS_RMAP_OWN_NULL; /* "free" */ in xfs_getfsmap_datadev_bnobt_helper() 388 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper() 389 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper() 391 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper() 397 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument 400 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags() 402 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags() [all …]
|
D | xfs_refcount_item.c | 411 struct xfs_bmbt_irec irec; in xfs_cui_recover() local 493 irec.br_startblock = new_fsb; in xfs_cui_recover() 494 irec.br_blockcount = new_len; in xfs_cui_recover() 498 tp->t_mountp, dfops, &irec); in xfs_cui_recover() 502 tp->t_mountp, dfops, &irec); in xfs_cui_recover() 507 irec.br_startblock, in xfs_cui_recover() 508 irec.br_blockcount); in xfs_cui_recover() 513 irec.br_startblock, in xfs_cui_recover() 514 irec.br_blockcount); in xfs_cui_recover()
|
D | xfs_itable.c | 189 struct xfs_inobt_rec_incore *irec) in xfs_bulkstat_ichunk_ra() argument 197 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_bulkstat_ichunk_ra() 204 if (xfs_inobt_maskn(i, inodes_per_cluster) & ~irec->ir_free) { in xfs_bulkstat_ichunk_ra() 223 struct xfs_inobt_rec_incore *irec) /* btree record */ in xfs_bulkstat_grab_ichunk() argument 239 error = xfs_inobt_get_rec(cur, irec, &stat); in xfs_bulkstat_grab_ichunk() 245 if (irec->ir_startino + XFS_INODES_PER_CHUNK <= agino) { in xfs_bulkstat_grab_ichunk() 250 idx = agino - irec->ir_startino + 1; in xfs_bulkstat_grab_ichunk() 252 (xfs_inobt_maskn(idx, XFS_INODES_PER_CHUNK - idx) & ~irec->ir_free)) { in xfs_bulkstat_grab_ichunk() 260 if (XFS_INOBT_MASK(i) & ~irec->ir_free) in xfs_bulkstat_grab_ichunk() 261 irec->ir_freecount++; in xfs_bulkstat_grab_ichunk() [all …]
|
D | xfs_reflink.c | 200 struct xfs_bmbt_irec *irec, in xfs_reflink_trim_around_shared() argument 212 if (!xfs_is_reflink_inode(ip) || !xfs_bmap_is_real_extent(irec)) { in xfs_reflink_trim_around_shared() 217 trace_xfs_reflink_trim_around_shared(ip, irec); in xfs_reflink_trim_around_shared() 219 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 220 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared() 221 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared() 239 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared() 251 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared() 1065 struct xfs_bmbt_irec *irec, in xfs_reflink_remap_extent() argument 1070 bool real_extent = xfs_bmap_is_real_extent(irec); in xfs_reflink_remap_extent() [all …]
|
D | xfs_bmap_item.c | 408 struct xfs_bmbt_irec irec; in xfs_bui_recover() local 493 irec.br_startblock = bmap->me_startblock; in xfs_bui_recover() 494 irec.br_blockcount = count; in xfs_bui_recover() 495 irec.br_startoff = bmap->me_startoff; in xfs_bui_recover() 496 irec.br_state = state; in xfs_bui_recover() 497 error = xfs_bmap_unmap_extent(tp->t_mountp, dfops, ip, &irec); in xfs_bui_recover()
|
D | xfs_trace.h | 1273 int type, struct xfs_bmbt_irec *irec), 1274 TP_ARGS(ip, offset, count, type, irec), 1293 __entry->startoff = irec ? irec->br_startoff : 0; 1294 __entry->startblock = irec ? irec->br_startblock : 0; 1295 __entry->blockcount = irec ? irec->br_blockcount : 0; 1313 int type, struct xfs_bmbt_irec *irec), \ 1314 TP_ARGS(ip, offset, count, type, irec)) 2719 struct xfs_refcount_irec *irec), 2720 TP_ARGS(mp, agno, irec), 2731 __entry->startblock = irec->rc_startblock; [all …]
|
D | xfs_reflink.h | 27 struct xfs_bmbt_irec *irec, bool *shared, bool *trimmed);
|
D | xfs_bmap_util.c | 1706 struct xfs_bmbt_irec irec; in xfs_swap_extent_rmap() local 1755 tirec.br_blockcount, &irec, in xfs_swap_extent_rmap() 1760 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap() 1761 trace_xfs_swap_extent_rmap_remap_piece(ip, &irec); in xfs_swap_extent_rmap() 1767 irec.br_blockcount); in xfs_swap_extent_rmap() 1778 ip, &irec); in xfs_swap_extent_rmap() 1790 tip, &irec); in xfs_swap_extent_rmap()
|
/fs/ext4/ |
D | fsmap.c | 203 struct ext4_fsmap irec; in ext4_getfsmap_datadev_helper() local 248 irec.fmr_device = 0; in ext4_getfsmap_datadev_helper() 249 irec.fmr_physical = fsb; in ext4_getfsmap_datadev_helper() 250 irec.fmr_length = fslen; in ext4_getfsmap_datadev_helper() 251 irec.fmr_owner = EXT4_FMR_OWN_FREE; in ext4_getfsmap_datadev_helper() 252 irec.fmr_flags = 0; in ext4_getfsmap_datadev_helper() 255 if (ext4_fsmap_next_pblk(&irec) == in ext4_getfsmap_datadev_helper() 257 info->gfi_lastfree = irec; in ext4_getfsmap_datadev_helper() 262 return ext4_getfsmap_helper(sb, info, &irec); in ext4_getfsmap_datadev_helper() 270 struct ext4_fsmap irec; in ext4_getfsmap_logdev() local [all …]
|