Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/fs/xfs/scrub/
Drmap.c36 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 …]
Dbmap.c104 struct xfs_bmbt_irec *irec, in xchk_bmap_get_rmap() argument
116 if (irec->br_state == XFS_EXT_UNWRITTEN) in xchk_bmap_get_rmap()
126 offset = irec->br_startoff; in xchk_bmap_get_rmap()
161 irec->br_startoff); in xchk_bmap_get_rmap()
169 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument
185 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
191 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
193 irec->br_startoff); in xchk_bmap_xref_rmap()
203 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
204 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
[all …]
Dialloc.c59 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 …]
Dquota.c175 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local
190 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
197 if (isnullstartblock(irec.br_startblock) || in xchk_quota_data_fork()
198 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
199 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
201 irec.br_startoff); in xchk_quota_data_fork()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_iwalk.c94 struct xfs_inobt_rec_incore *irec) in xfs_iwalk_ichunk_ra() argument
101 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_iwalk_ichunk_ra()
108 if (imask & ~irec->ir_free) { in xfs_iwalk_ichunk_ra()
126 struct xfs_inobt_rec_incore *irec) /* btree record */ in xfs_iwalk_adjust_start() argument
131 idx = agino - irec->ir_startino; in xfs_iwalk_adjust_start()
139 if (XFS_INOBT_MASK(i) & ~irec->ir_free) in xfs_iwalk_adjust_start()
140 irec->ir_freecount++; in xfs_iwalk_adjust_start()
143 irec->ir_free |= xfs_inobt_maskn(0, idx); in xfs_iwalk_adjust_start()
188 struct xfs_inobt_rec_incore *irec = &iwag->recs[i]; in xfs_iwalk_ag_recs() local
190 trace_xfs_iwalk_ag_rec(mp, agno, irec); in xfs_iwalk_ag_recs()
[all …]
Dxfs_fsmap.c372 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local
378 irec.rm_startblock = rec->ar_startblock; in xfs_getfsmap_datadev_bnobt_helper()
379 irec.rm_blockcount = rec->ar_blockcount; in xfs_getfsmap_datadev_bnobt_helper()
380 irec.rm_owner = XFS_RMAP_OWN_NULL; /* "free" */ in xfs_getfsmap_datadev_bnobt_helper()
381 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper()
382 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper()
384 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper()
390 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument
393 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags()
395 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags()
[all …]
Dxfs_refcount_item.c429 struct xfs_bmbt_irec irec; in xfs_cui_item_recover() local
520 irec.br_startblock = new_fsb; in xfs_cui_item_recover()
521 irec.br_blockcount = new_len; in xfs_cui_item_recover()
524 xfs_refcount_increase_extent(tp, &irec); in xfs_cui_item_recover()
527 xfs_refcount_decrease_extent(tp, &irec); in xfs_cui_item_recover()
531 irec.br_startblock, in xfs_cui_item_recover()
532 irec.br_blockcount); in xfs_cui_item_recover()
536 irec.br_startblock, in xfs_cui_item_recover()
537 irec.br_blockcount); in xfs_cui_item_recover()
Dxfs_itable.c332 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()
Dxfs_bmap_item.c429 struct xfs_bmbt_irec irec; in xfs_bui_item_recover() local
509 irec.br_startblock = bmap->me_startblock; in xfs_bui_item_recover()
510 irec.br_blockcount = count; in xfs_bui_item_recover()
511 irec.br_startoff = bmap->me_startoff; in xfs_bui_item_recover()
512 irec.br_state = state; in xfs_bui_item_recover()
513 xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_bui_item_recover()
Dxfs_reflink.c171 struct xfs_bmbt_irec *irec, in xfs_reflink_trim_around_shared() argument
182 if (!xfs_is_cow_inode(ip) || !xfs_bmap_is_written_extent(irec)) { in xfs_reflink_trim_around_shared()
187 trace_xfs_reflink_trim_around_shared(ip, irec); in xfs_reflink_trim_around_shared()
189 agno = XFS_FSB_TO_AGNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared()
190 agbno = XFS_FSB_TO_AGBNO(ip->i_mount, irec->br_startblock); in xfs_reflink_trim_around_shared()
191 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared()
209 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared()
219 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
Dxfs_trace.h1309 int whichfork, struct xfs_bmbt_irec *irec),
1310 TP_ARGS(ip, offset, count, whichfork, irec),
1329 __entry->startoff = irec ? irec->br_startoff : 0;
1330 __entry->startblock = irec ? irec->br_startblock : 0;
1331 __entry->blockcount = irec ? irec->br_blockcount : 0;
1349 int whichfork, struct xfs_bmbt_irec *irec), \
1350 TP_ARGS(ip, offset, count, whichfork, irec))
2789 struct xfs_refcount_irec *irec),
2790 TP_ARGS(mp, agno, irec),
2801 __entry->startblock = irec->rc_startblock;
[all …]
Dxfs_iwalk.h36 const struct xfs_inobt_rec_incore *irec,
Dxfs_bmap_util.c1325 struct xfs_bmbt_irec irec; in xfs_swap_extent_rmap() local
1372 tirec.br_blockcount, &irec, in xfs_swap_extent_rmap()
1377 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap()
1378 trace_xfs_swap_extent_rmap_remap_piece(ip, &irec); in xfs_swap_extent_rmap()
1384 irec.br_blockcount); in xfs_swap_extent_rmap()
1391 xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_swap_extent_rmap()
1397 xfs_bmap_map_extent(tp, tip, &irec); in xfs_swap_extent_rmap()
Dxfs_reflink.h24 struct xfs_bmbt_irec *irec, bool *shared);
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_rmap.h49 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 …]
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_bmap.h162 static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument
164 return irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent()
165 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent()
166 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent()
173 static inline bool xfs_bmap_is_written_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_written_extent() argument
175 return xfs_bmap_is_real_extent(irec) && in xfs_bmap_is_written_extent()
176 irec->br_state != XFS_EXT_UNWRITTEN; in xfs_bmap_is_written_extent()
186 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
288 struct xfs_bmbt_irec *irec);
Dxfs_rmap.c77 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()
181 struct xfs_rmap_irec *irec) in xfs_rmap_btrec_to_irec() argument
183 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
184 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec()
[all …]
Dxfs_refcount.c94 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 …]
Dxfs_iext_tree.c55 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 …]
Dxfs_ialloc.c56 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 …]
Dxfs_bmap_btree.c62 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()
Dxfs_bmap.c100 struct xfs_bmbt_irec *irec, in xfs_bmbt_lookup_eq() argument
103 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq()
149 struct xfs_bmbt_irec *irec) in xfs_bmbt_update() argument
153 xfs_bmbt_disk_set_all(&rec.bmbt, irec); in xfs_bmbt_update()
3731 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument
3738 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3739 irec->br_startoff >= end) { in xfs_trim_extent()
3740 irec->br_blockcount = 0; in xfs_trim_extent()
3744 if (irec->br_startoff < bno) { in xfs_trim_extent()
3745 distance = bno - irec->br_startoff; in xfs_trim_extent()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-core.c72 if (channel->irec && readl(channel->irec + DMA_PRDS_TPENABLE)) in c8sectpfe_timer_interrupt()
88 if (unlikely(!channel || !channel->irec)) in channel_swdemux_tsklet()
93 wp = readl(channel->irec + DMA_PRDS_BUSWP_TP(0)); in channel_swdemux_tsklet()
94 rp = readl(channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet()
128 writel(channel->back_buffer_busaddr, channel->irec + in channel_swdemux_tsklet()
131 writel(wp, channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet()
226 writel(channel->back_buffer_busaddr, channel->irec + in c8sectpfe_start_feed()
230 writel(tmp, channel->irec + DMA_PRDS_BUSTOP_TP(0)); in c8sectpfe_start_feed()
232 writel(channel->back_buffer_busaddr, channel->irec + in c8sectpfe_start_feed()
240 writel(0x1, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_start_feed()
[all …]
/kernel/linux/linux-5.10/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