Home
last modified time | relevance | path

Searched refs:irec (Results 1 – 25 of 26) sorted by relevance

12

/linux-4.19.296/fs/xfs/scrub/
Drmap.c45 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref_refc() argument
58 non_inode = XFS_RMAP_NON_INODE_OWNER(irec->rm_owner); in xchk_rmapbt_xref_refc()
59 is_bmbt = irec->rm_flags & XFS_RMAP_BMBT_BLOCK; in xchk_rmapbt_xref_refc()
60 is_attr = irec->rm_flags & XFS_RMAP_ATTR_FORK; in xchk_rmapbt_xref_refc()
61 is_unwritten = irec->rm_flags & XFS_RMAP_UNWRITTEN; in xchk_rmapbt_xref_refc()
64 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc()
65 irec->rm_blockcount, &fbno, &flen, false); in xchk_rmapbt_xref_refc()
76 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref() argument
78 xfs_agblock_t agbno = irec->rm_startblock; in xchk_rmapbt_xref()
79 xfs_extlen_t len = irec->rm_blockcount; in xchk_rmapbt_xref()
[all …]
Dbmap.c111 struct xfs_bmbt_irec *irec, in xchk_bmap_get_rmap() argument
123 if (irec->br_state == XFS_EXT_UNWRITTEN) in xchk_bmap_get_rmap()
133 offset = irec->br_startoff; in xchk_bmap_get_rmap()
168 irec->br_startoff); in xchk_bmap_get_rmap()
176 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument
192 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
198 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
200 irec->br_startoff); in xchk_bmap_xref_rmap()
210 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
211 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
[all …]
Dialloc.c55 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk_xref_other() argument
71 if (((irec->ir_freecount > 0 && !has_irec) || in xchk_iallocbt_chunk_xref_other()
72 (irec->ir_freecount == 0 && has_irec))) in xchk_iallocbt_chunk_xref_other()
80 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk_xref() argument
91 xchk_iallocbt_chunk_xref_other(sc, irec, agino); in xchk_iallocbt_chunk_xref()
101 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk() argument
115 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk()
136 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_check_cluster_freemask() argument
157 if (irec->ir_free & XFS_INOBT_MASK(chunkino + clusterino)) in xchk_iallocbt_check_cluster_freemask()
187 struct xfs_inobt_rec_incore *irec) in xchk_iallocbt_check_freemask() argument
[all …]
Dquota.c200 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local
215 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
222 if (isnullstartblock(irec.br_startblock) || in xchk_quota_data_fork()
223 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
224 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
226 irec.br_startoff); in xchk_quota_data_fork()
Dtrace.h561 struct xfs_refcount_irec *irec),
562 TP_ARGS(mp, agno, irec),
573 __entry->startblock = irec->rc_startblock;
574 __entry->blockcount = irec->rc_blockcount;
575 __entry->refcount = irec->rc_refcount;
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_rmap.h73 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 …]
Dxfs_refcount.h16 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);
Dxfs_rmap.c84 struct xfs_rmap_irec *irec) in xfs_rmap_update() argument
90 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
91 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update()
93 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
94 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update()
95 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update()
97 xfs_rmap_irec_offset_pack(irec)); in xfs_rmap_update()
176 struct xfs_rmap_irec *irec) in xfs_rmap_btrec_to_irec() argument
178 irec->rm_flags = 0; in xfs_rmap_btrec_to_irec()
179 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
[all …]
Dxfs_refcount.c96 struct xfs_refcount_irec *irec) in xfs_refcount_btrec_to_irec() argument
98 irec->rc_startblock = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcount_btrec_to_irec()
99 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
100 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); in xfs_refcount_btrec_to_irec()
109 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument
122 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec()
125 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
129 realstart = irec->rc_startblock; in xfs_refcount_get_rec()
131 if (irec->rc_refcount != 1) in xfs_refcount_get_rec()
134 } else if (irec->rc_refcount < 2) { in xfs_refcount_get_rec()
[all …]
Dxfs_bmap.h174 static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument
176 return irec->br_state != XFS_EXT_UNWRITTEN && in xfs_bmap_is_real_extent()
177 irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent()
178 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent()
179 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent()
182 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
277 struct xfs_bmbt_irec *irec);
Dxfs_iext_tree.c59 struct xfs_bmbt_irec *irec) in xfs_iext_set() argument
61 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set()
62 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set()
63 ASSERT((irec->br_startblock & ~XFS_IEXT_STARTBLOCK_MASK) == 0); in xfs_iext_set()
65 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set()
66 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set()
68 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set()
69 rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); in xfs_iext_set()
71 if (irec->br_state == XFS_EXT_UNWRITTEN) in xfs_iext_set()
77 struct xfs_bmbt_irec *irec, in xfs_iext_get() argument
[all …]
Dxfs_ialloc.c73 xfs_inobt_rec_incore_t *irec) /* btree record */ in xfs_inobt_update() argument
77 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update()
79 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update()
80 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update()
81 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update()
84 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update()
86 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update()
95 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument
97 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec()
99 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec()
[all …]
Dxfs_bmap_btree.c65 struct xfs_bmbt_irec *irec) in xfs_bmbt_disk_get_all() argument
70 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all()
71 irec->br_startblock = ((l0 & xfs_mask64lo(9)) << 43) | (l1 >> 21); in xfs_bmbt_disk_get_all()
72 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all()
74 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_bmbt_disk_get_all()
76 irec->br_state = XFS_EXT_NORM; in xfs_bmbt_disk_get_all()
Dxfs_bmap.c104 struct xfs_bmbt_irec *irec, in xfs_bmbt_lookup_eq() argument
107 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq()
151 struct xfs_bmbt_irec *irec) in xfs_bmbt_update() argument
155 xfs_bmbt_disk_set_all(&rec.bmbt, irec); in xfs_bmbt_update()
3661 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument
3668 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3669 irec->br_startoff >= end) { in xfs_trim_extent()
3670 irec->br_blockcount = 0; in xfs_trim_extent()
3674 if (irec->br_startoff < bno) { in xfs_trim_extent()
3675 distance = bno - irec->br_startoff; in xfs_trim_extent()
[all …]
Dxfs_ialloc.h159 struct xfs_inobt_rec_incore *irec);
Dxfs_da_btree.c2502 struct xfs_bmbt_irec irec; in xfs_dabuf_map() local
2503 struct xfs_bmbt_irec *irecs = &irec; in xfs_dabuf_map()
2523 irecs = kmem_zalloc(sizeof(irec) * nfsb, in xfs_dabuf_map()
2564 if (irecs != &irec) in xfs_dabuf_map()
/linux-4.19.296/fs/xfs/
Dxfs_refcount_item.c398 struct xfs_bmbt_irec irec; in xfs_cui_recover() local
489 irec.br_startblock = new_fsb; in xfs_cui_recover()
490 irec.br_blockcount = new_len; in xfs_cui_recover()
493 error = xfs_refcount_increase_extent(tp, &irec); in xfs_cui_recover()
496 error = xfs_refcount_decrease_extent(tp, &irec); in xfs_cui_recover()
500 irec.br_startblock, in xfs_cui_recover()
501 irec.br_blockcount); in xfs_cui_recover()
505 irec.br_startblock, in xfs_cui_recover()
506 irec.br_blockcount); in xfs_cui_recover()
Dxfs_itable.c166 struct xfs_inobt_rec_incore *irec) in xfs_bulkstat_ichunk_ra() argument
174 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_bulkstat_ichunk_ra()
181 if (xfs_inobt_maskn(i, inodes_per_cluster) & ~irec->ir_free) { in xfs_bulkstat_ichunk_ra()
200 struct xfs_inobt_rec_incore *irec) /* btree record */ in xfs_bulkstat_grab_ichunk() argument
216 error = xfs_inobt_get_rec(cur, irec, &stat); in xfs_bulkstat_grab_ichunk()
222 if (irec->ir_startino + XFS_INODES_PER_CHUNK <= agino) { in xfs_bulkstat_grab_ichunk()
227 idx = agino - irec->ir_startino + 1; in xfs_bulkstat_grab_ichunk()
229 (xfs_inobt_maskn(idx, XFS_INODES_PER_CHUNK - idx) & ~irec->ir_free)) { in xfs_bulkstat_grab_ichunk()
237 if (XFS_INOBT_MASK(i) & ~irec->ir_free) in xfs_bulkstat_grab_ichunk()
238 irec->ir_freecount++; in xfs_bulkstat_grab_ichunk()
[all …]
Dxfs_fsmap.c368 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local
374 irec.rm_startblock = rec->ar_startblock; in xfs_getfsmap_datadev_bnobt_helper()
375 irec.rm_blockcount = rec->ar_blockcount; in xfs_getfsmap_datadev_bnobt_helper()
376 irec.rm_owner = XFS_RMAP_OWN_NULL; /* "free" */ in xfs_getfsmap_datadev_bnobt_helper()
377 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper()
378 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper()
380 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper()
386 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument
389 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags()
391 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags()
[all …]
Dxfs_reflink.c184 struct xfs_bmbt_irec *irec, in xfs_reflink_trim_around_shared() argument
196 if (!xfs_is_reflink_inode(ip) || !xfs_bmap_is_real_extent(irec)) { in xfs_reflink_trim_around_shared()
201 trace_xfs_reflink_trim_around_shared(ip, irec); in xfs_reflink_trim_around_shared()
203 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared()
204 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared()
205 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared()
223 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared()
235 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
1001 struct xfs_bmbt_irec *irec, in xfs_reflink_remap_extent() argument
1006 bool real_extent = xfs_bmap_is_real_extent(irec); in xfs_reflink_remap_extent()
[all …]
Dxfs_bmap_item.c394 struct xfs_bmbt_irec irec; in xfs_bui_recover() local
485 irec.br_startblock = bmap->me_startblock; in xfs_bui_recover()
486 irec.br_blockcount = count; in xfs_bui_recover()
487 irec.br_startoff = bmap->me_startoff; in xfs_bui_recover()
488 irec.br_state = state; in xfs_bui_recover()
489 error = xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_bui_recover()
Dxfs_trace.h1210 int type, struct xfs_bmbt_irec *irec),
1211 TP_ARGS(ip, offset, count, type, irec),
1230 __entry->startoff = irec ? irec->br_startoff : 0;
1231 __entry->startblock = irec ? irec->br_startblock : 0;
1232 __entry->blockcount = irec ? irec->br_blockcount : 0;
1250 int type, struct xfs_bmbt_irec *irec), \
1251 TP_ARGS(ip, offset, count, type, irec))
2647 struct xfs_refcount_irec *irec),
2648 TP_ARGS(mp, agno, irec),
2659 __entry->startblock = irec->rc_startblock;
[all …]
Dxfs_reflink.h13 struct xfs_bmbt_irec *irec, bool *shared, bool *trimmed);
Dxfs_bmap_util.c1529 struct xfs_bmbt_irec irec; in xfs_swap_extent_rmap() local
1576 tirec.br_blockcount, &irec, in xfs_swap_extent_rmap()
1581 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap()
1582 trace_xfs_swap_extent_rmap_remap_piece(ip, &irec); in xfs_swap_extent_rmap()
1588 irec.br_blockcount); in xfs_swap_extent_rmap()
1597 error = xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_swap_extent_rmap()
1607 error = xfs_bmap_map_extent(tp, tip, &irec); in xfs_swap_extent_rmap()
/linux-4.19.296/fs/ext4/
Dfsmap.c193 struct ext4_fsmap irec; in ext4_getfsmap_datadev_helper() local
238 irec.fmr_device = 0; in ext4_getfsmap_datadev_helper()
239 irec.fmr_physical = fsb; in ext4_getfsmap_datadev_helper()
240 irec.fmr_length = fslen; in ext4_getfsmap_datadev_helper()
241 irec.fmr_owner = EXT4_FMR_OWN_FREE; in ext4_getfsmap_datadev_helper()
242 irec.fmr_flags = 0; in ext4_getfsmap_datadev_helper()
245 if (ext4_fsmap_next_pblk(&irec) == in ext4_getfsmap_datadev_helper()
247 info->gfi_lastfree = irec; in ext4_getfsmap_datadev_helper()
252 return ext4_getfsmap_helper(sb, info, &irec); in ext4_getfsmap_datadev_helper()
260 struct ext4_fsmap irec; in ext4_getfsmap_logdev() local
[all …]

12