Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
145 irec->br_startoff); in xchk_bmap_get_rmap()
153 struct xfs_bmbt_irec *irec, in xchk_bmap_xref_rmap() argument
169 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
175 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
177 irec->br_startoff); in xchk_bmap_xref_rmap()
187 if (rmap.rm_offset > irec->br_startoff || in xchk_bmap_xref_rmap()
188 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
115 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk()
146 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_check_cluster_ifree() argument
165 agino = irec->ir_startino + irec_ino; in xchk_iallocbt_check_cluster_ifree()
167 irec_free = (irec->ir_free & XFS_INOBT_MASK(irec_ino)); in xchk_iallocbt_check_cluster_ifree()
[all …]
Drefcount.c272 const struct xfs_refcount_irec *irec) in xchk_refcountbt_xref_rmap() argument
276 .bno = irec->rc_startblock, in xchk_refcountbt_xref_rmap()
277 .len = irec->rc_blockcount, in xchk_refcountbt_xref_rmap()
278 .refcount = irec->rc_refcount, in xchk_refcountbt_xref_rmap()
292 low.rm_startblock = irec->rc_startblock; in xchk_refcountbt_xref_rmap()
294 high.rm_startblock = irec->rc_startblock + irec->rc_blockcount - 1; in xchk_refcountbt_xref_rmap()
303 if (irec->rc_refcount != refchk.seen) in xchk_refcountbt_xref_rmap()
317 const struct xfs_refcount_irec *irec) in xchk_refcountbt_xref() argument
322 xchk_xref_is_used_space(sc, irec->rc_startblock, irec->rc_blockcount); in xchk_refcountbt_xref()
323 xchk_xref_is_not_inode_chunk(sc, irec->rc_startblock, in xchk_refcountbt_xref()
[all …]
Dquota.c174 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local
189 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
196 if (isnullstartblock(irec.br_startblock) || in xchk_quota_data_fork()
197 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
198 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
200 irec.br_startoff); in xchk_quota_data_fork()
/linux-6.1.9/fs/xfs/
Dxfs_iwalk.c99 struct xfs_inobt_rec_incore *irec) in xfs_iwalk_ichunk_ra() argument
106 agbno = XFS_AGINO_TO_AGBNO(mp, irec->ir_startino); in xfs_iwalk_ichunk_ra()
113 if (imask & ~irec->ir_free) { in xfs_iwalk_ichunk_ra()
131 struct xfs_inobt_rec_incore *irec) /* btree record */ in xfs_iwalk_adjust_start() argument
136 idx = agino - irec->ir_startino; in xfs_iwalk_adjust_start()
144 if (XFS_INOBT_MASK(i) & ~irec->ir_free) in xfs_iwalk_adjust_start()
145 irec->ir_freecount++; in xfs_iwalk_adjust_start()
148 irec->ir_free |= xfs_inobt_maskn(0, idx); in xfs_iwalk_adjust_start()
192 struct xfs_inobt_rec_incore *irec = &iwag->recs[i]; in xfs_iwalk_ag_recs() local
194 trace_xfs_iwalk_ag_rec(mp, pag->pag_agno, irec); in xfs_iwalk_ag_recs()
[all …]
Dxfs_fsmap.c373 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local
379 irec.rm_startblock = rec->ar_startblock; in xfs_getfsmap_datadev_bnobt_helper()
380 irec.rm_blockcount = rec->ar_blockcount; in xfs_getfsmap_datadev_bnobt_helper()
381 irec.rm_owner = XFS_RMAP_OWN_NULL; /* "free" */ in xfs_getfsmap_datadev_bnobt_helper()
382 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper()
383 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper()
385 return xfs_getfsmap_helper(cur->bc_tp, info, &irec, rec_daddr); in xfs_getfsmap_datadev_bnobt_helper()
391 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument
394 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags()
396 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags()
[all …]
Dxfs_refcount_item.c466 struct xfs_bmbt_irec irec; in xfs_cui_item_recover() local
548 irec.br_startblock = new_fsb; in xfs_cui_item_recover()
549 irec.br_blockcount = new_len; in xfs_cui_item_recover()
552 xfs_refcount_increase_extent(tp, &irec); in xfs_cui_item_recover()
555 xfs_refcount_decrease_extent(tp, &irec); in xfs_cui_item_recover()
559 irec.br_startblock, in xfs_cui_item_recover()
560 irec.br_blockcount); in xfs_cui_item_recover()
564 irec.br_startblock, in xfs_cui_item_recover()
565 irec.br_blockcount); in xfs_cui_item_recover()
Dxfs_itable.c380 const struct xfs_inobt_rec_incore *irec, in xfs_inumbers_walk() argument
384 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk()
385 .xi_alloccount = irec->ir_count - irec->ir_freecount, in xfs_inumbers_walk()
386 .xi_allocmask = ~irec->ir_free, in xfs_inumbers_walk()
396 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
Dxfs_bmap_item.c474 struct xfs_bmbt_irec irec; in xfs_bui_item_recover() local
538 irec.br_startblock = bmap->me_startblock; in xfs_bui_item_recover()
539 irec.br_blockcount = count; in xfs_bui_item_recover()
540 irec.br_startoff = bmap->me_startoff; in xfs_bui_item_recover()
541 irec.br_state = state; in xfs_bui_item_recover()
542 xfs_bmap_unmap_extent(tp, ip, &irec); in xfs_bui_item_recover()
Dxfs_trace.h1444 int whichfork, struct xfs_bmbt_irec *irec),
1445 TP_ARGS(ip, offset, count, whichfork, irec),
1464 __entry->startoff = irec ? irec->br_startoff : 0;
1465 __entry->startblock = irec ? irec->br_startblock : 0;
1466 __entry->blockcount = irec ? irec->br_blockcount : 0;
1484 int whichfork, struct xfs_bmbt_irec *irec), \
1485 TP_ARGS(ip, offset, count, whichfork, irec))
2926 struct xfs_refcount_irec *irec),
2927 TP_ARGS(mp, agno, irec),
2939 __entry->domain = irec->rc_domain;
[all …]
Dxfs_reflink.c170 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 pag = xfs_perag_get(mp, XFS_FSB_TO_AGNO(mp, irec->br_startblock)); in xfs_reflink_trim_around_shared()
190 agbno = XFS_FSB_TO_AGBNO(mp, irec->br_startblock); in xfs_reflink_trim_around_shared()
191 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared()
212 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared()
223 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
Dxfs_iwalk.h36 const struct xfs_inobt_rec_incore *irec,
/linux-6.1.9/fs/xfs/libxfs/
Dxfs_refcount.h23 struct xfs_refcount_irec *irec, int *stat);
61 const struct xfs_refcount_irec *irec) in xfs_refcount_check_domain() argument
63 if (irec->rc_domain == XFS_REFC_DOMAIN_COW && irec->rc_refcount != 1) in xfs_refcount_check_domain()
65 if (irec->rc_domain == XFS_REFC_DOMAIN_SHARED && irec->rc_refcount < 2) in xfs_refcount_check_domain()
71 struct xfs_bmbt_irec *irec);
73 struct xfs_bmbt_irec *irec);
117 struct xfs_refcount_irec *irec);
119 struct xfs_refcount_irec *irec, int *stat);
Dxfs_rmap.h51 const struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_pack() argument
55 x = XFS_RMAP_OFF(irec->rm_offset); in xfs_rmap_irec_offset_pack()
56 if (irec->rm_flags & XFS_RMAP_ATTR_FORK) in xfs_rmap_irec_offset_pack()
58 if (irec->rm_flags & XFS_RMAP_BMBT_BLOCK) in xfs_rmap_irec_offset_pack()
60 if (irec->rm_flags & XFS_RMAP_UNWRITTEN) in xfs_rmap_irec_offset_pack()
68 struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_unpack() argument
72 irec->rm_offset = XFS_RMAP_OFF(offset); in xfs_rmap_irec_offset_unpack()
73 irec->rm_flags = 0; in xfs_rmap_irec_offset_unpack()
75 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_rmap_irec_offset_unpack()
77 irec->rm_flags |= XFS_RMAP_BMBT_BLOCK; in xfs_rmap_irec_offset_unpack()
[all …]
Dxfs_bmap.h147 static inline bool xfs_bmap_is_real_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument
149 return irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent()
150 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent()
151 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent()
158 static inline bool xfs_bmap_is_written_extent(struct xfs_bmbt_irec *irec) in xfs_bmap_is_written_extent() argument
160 return xfs_bmap_is_real_extent(irec) && in xfs_bmap_is_written_extent()
161 irec->br_state != XFS_EXT_UNWRITTEN; in xfs_bmap_is_written_extent()
171 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
259 struct xfs_bmbt_irec *irec);
Dxfs_rmap.c40 struct xfs_rmap_irec *irec, in xfs_rmap_lookup_le() argument
53 if (error || !(*stat) || !irec) in xfs_rmap_lookup_le()
56 error = xfs_rmap_get_rec(cur, irec, &get_stat); in xfs_rmap_lookup_le()
95 struct xfs_rmap_irec *irec) in xfs_rmap_update() argument
101 irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
102 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update()
104 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update()
105 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update()
106 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update()
108 xfs_rmap_irec_offset_pack(irec)); in xfs_rmap_update()
[all …]
Dxfs_refcount.c106 struct xfs_refcount_irec *irec) in xfs_refcount_btrec_to_irec() argument
113 irec->rc_domain = XFS_REFC_DOMAIN_COW; in xfs_refcount_btrec_to_irec()
115 irec->rc_domain = XFS_REFC_DOMAIN_SHARED; in xfs_refcount_btrec_to_irec()
118 irec->rc_startblock = start; in xfs_refcount_btrec_to_irec()
119 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
120 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); in xfs_refcount_btrec_to_irec()
129 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument
141 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec()
142 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
145 if (!xfs_refcount_check_domain(irec)) 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_refcount_btree.c164 const struct xfs_refcount_irec *irec = &cur->bc_rec.rc; in xfs_refcountbt_init_rec_from_cur() local
167 start = xfs_refcount_encode_startblock(irec->rc_startblock, in xfs_refcountbt_init_rec_from_cur()
168 irec->rc_domain); in xfs_refcountbt_init_rec_from_cur()
192 const struct xfs_refcount_irec *irec = &cur->bc_rec.rc; in xfs_refcountbt_key_diff() local
195 start = xfs_refcount_encode_startblock(irec->rc_startblock, in xfs_refcountbt_key_diff()
196 irec->rc_domain); in xfs_refcountbt_key_diff()
Dxfs_bmap_btree.c64 struct xfs_bmbt_irec *irec) in xfs_bmbt_disk_get_all() argument
69 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all()
70 irec->br_startblock = ((l0 & xfs_mask64lo(9)) << 43) | (l1 >> 21); in xfs_bmbt_disk_get_all()
71 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all()
73 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_bmbt_disk_get_all()
75 irec->br_state = XFS_EXT_NORM; in xfs_bmbt_disk_get_all()
Dxfs_bmap.c108 struct xfs_bmbt_irec *irec, in xfs_bmbt_lookup_eq() argument
111 cur->bc_rec.b = *irec; in xfs_bmbt_lookup_eq()
157 struct xfs_bmbt_irec *irec) in xfs_bmbt_update() argument
161 xfs_bmbt_disk_set_all(&rec.bmbt, irec); in xfs_bmbt_update()
3725 struct xfs_bmbt_irec *irec, in xfs_trim_extent() argument
3732 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3733 irec->br_startoff >= end) { in xfs_trim_extent()
3734 irec->br_blockcount = 0; in xfs_trim_extent()
3738 if (irec->br_startoff < bno) { in xfs_trim_extent()
3739 distance = bno - irec->br_startoff; in xfs_trim_extent()
[all …]
/linux-6.1.9/drivers/media/platform/st/sti/c8sectpfe/
Dc8sectpfe-core.c71 if (channel->irec && readl(channel->irec + DMA_PRDS_TPENABLE)) in c8sectpfe_timer_interrupt()
87 if (unlikely(!channel || !channel->irec)) in channel_swdemux_tsklet()
92 wp = readl(channel->irec + DMA_PRDS_BUSWP_TP(0)); in channel_swdemux_tsklet()
93 rp = readl(channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet()
127 writel(channel->back_buffer_busaddr, channel->irec + in channel_swdemux_tsklet()
130 writel(wp, channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_tsklet()
225 writel(channel->back_buffer_busaddr, channel->irec + in c8sectpfe_start_feed()
229 writel(tmp, channel->irec + DMA_PRDS_BUSTOP_TP(0)); in c8sectpfe_start_feed()
231 writel(channel->back_buffer_busaddr, channel->irec + in c8sectpfe_start_feed()
239 writel(0x1, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_start_feed()
[all …]
/linux-6.1.9/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