Home
last modified time | relevance | path

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

12

/linux/fs/xfs/scrub/
A Dbmap.c185 irec->br_startoff); in xchk_bmap_get_rmap()
213 irec->br_startoff); in xchk_bmap_xref_rmap()
218 irec->br_startoff); in xchk_bmap_xref_rmap()
223 irec->br_startoff); in xchk_bmap_xref_rmap()
226 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap()
228 irec->br_startoff); in xchk_bmap_xref_rmap()
406 off = irec->br_startoff + irec->br_blockcount - 1; in xchk_bmap_dirattr_extent()
429 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount)) in xchk_bmap_iextent()
437 !xfs_verify_rtbext(mp, irec->br_startblock, irec->br_blockcount)) in xchk_bmap_iextent()
441 !xfs_verify_fsbext(mp, irec->br_startblock, irec->br_blockcount)) in xchk_bmap_iextent()
[all …]
A Dialloc.c67 struct xfs_inobt_rec_incore *irec, in xchk_inobt_xref_finobt() argument
108 if (irec->ir_free == 0) in xchk_inobt_xref_finobt()
134 struct xfs_inobt_rec_incore *irec, in xchk_inobt_chunk_xref_finobt() argument
175 struct xfs_inobt_rec_incore irec; in xchk_finobt_xref_inobt() local
255 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_chunk() argument
302 struct xfs_inobt_rec_incore *irec, in xchk_iallocbt_check_cluster_ifree() argument
522 if (irec->ir_startino & imask) in xchk_iallocbt_rec_alignment()
593 agino = irec.ir_startino; in xchk_iallocbt_rec()
599 iabt->inodes += irec.ir_count; in xchk_iallocbt_rec()
613 holemask = irec.ir_holemask; in xchk_iallocbt_rec()
[all …]
A Drmap.c82 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref_refc() argument
113 struct xfs_rmap_irec *irec) in xchk_rmapbt_xref() argument
128 irec->rm_blockcount); in xchk_rmapbt_xref()
130 xchk_rmapbt_xref_refc(sc, irec); in xchk_rmapbt_xref()
188 const struct xfs_rmap_irec *irec) in xchk_rmapbt_is_shareable() argument
205 const struct xfs_rmap_irec *irec) in xchk_rmapbt_check_overlapping() argument
227 inext = irec->rm_startblock + irec->rm_blockcount; in xchk_rmapbt_check_overlapping()
306 switch (irec->rm_owner) { in xchk_rmapbt_mark_bitmap()
348 return xagb_bitmap_clear(bmp, irec->rm_startblock, irec->rm_blockcount); in xchk_rmapbt_mark_bitmap()
358 struct xfs_rmap_irec irec; in xchk_rmapbt_rec() local
[all …]
A Drefcount.c291 .bno = irec->rc_startblock, in xchk_refcountbt_xref_rmap()
292 .len = irec->rc_blockcount, in xchk_refcountbt_xref_rmap()
293 .refcount = irec->rc_refcount, in xchk_refcountbt_xref_rmap()
309 high.rm_startblock = irec->rc_startblock + irec->rc_blockcount - 1; in xchk_refcountbt_xref_rmap()
339 xchk_xref_is_used_space(sc, irec->rc_startblock, irec->rc_blockcount); in xchk_refcountbt_xref()
341 irec->rc_blockcount); in xchk_refcountbt_xref()
342 xchk_refcountbt_xref_rmap(sc, irec); in xchk_refcountbt_xref()
452 struct xfs_refcount_irec irec; in xchk_refcountbt_rec() local
468 rrc->prev_domain = irec.rc_domain; in xchk_refcountbt_rec()
471 xchk_refcountbt_xref(bs->sc, &irec); in xchk_refcountbt_rec()
[all …]
A Dalloc.c99 const struct xfs_alloc_rec_incore *irec) in xchk_allocbt_xref() argument
101 xfs_agblock_t agbno = irec->ar_startblock; in xchk_allocbt_xref()
102 xfs_extlen_t len = irec->ar_blockcount; in xchk_allocbt_xref()
119 const struct xfs_alloc_rec_incore *irec) in xchk_allocbt_mergeable() argument
126 ca->prev.ar_blockcount + irec->ar_blockcount < (uint32_t)~0U) in xchk_allocbt_mergeable()
129 memcpy(&ca->prev, irec, sizeof(*irec)); in xchk_allocbt_mergeable()
138 struct xfs_alloc_rec_incore irec; in xchk_allocbt_rec() local
141 xfs_alloc_btrec_to_irec(rec, &irec); in xchk_allocbt_rec()
142 if (xfs_alloc_check_irec(bs->cur->bc_ag.pag, &irec) != NULL) { in xchk_allocbt_rec()
147 xchk_allocbt_mergeable(bs, ca, &irec); in xchk_allocbt_rec()
[all …]
A Dquota_repair.c59 struct xfs_bmbt_irec *irec) in xrep_quota_item_fill_bmap_hole() argument
76 irec, &nmaps); in xrep_quota_item_fill_bmap_hole()
111 struct xfs_bmbt_irec irec; in xrep_quota_item_bmap() local
136 ASSERT(irec.br_state == XFS_EXT_NORM); in xrep_quota_item_bmap()
399 struct xfs_bmbt_irec irec = { 0 }; in xrep_quota_data_fork() local
417 for_each_xfs_iext(ifp, &icur, &irec) { in xrep_quota_data_fork()
424 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xrep_quota_data_fork()
440 irec.br_startoff, irec.br_blockcount, in xrep_quota_data_fork()
481 for_each_xfs_iext(ifp, &icur, &irec) { in xrep_quota_data_fork()
482 for (fsbno = irec.br_startblock, off = irec.br_startoff; in xrep_quota_data_fork()
[all …]
A Dbmap_repair.c128 struct xfs_bmbt_irec irec = { in xrep_bmap_from_rmap() local
158 xfs_bmbt_disk_set_all(&rbe, &irec); in xrep_bmap_from_rmap()
171 irec.br_startblock += irec.br_blockcount; in xrep_bmap_from_rmap()
172 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap()
173 blockcount -= irec.br_blockcount; in xrep_bmap_from_rmap()
315 struct xfs_bmbt_irec irec; in xrep_bmap_sort_records() local
335 xfs_bmbt_disk_get_all(&rec, &irec); in xrep_bmap_sort_records()
337 if (irec.br_startoff < next_off) in xrep_bmap_sort_records()
340 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
369 struct xfs_bmbt_irec irec; in xrep_bmap_find_delalloc() local
[all …]
A Dcow_repair.c67 struct xfs_bmbt_irec irec; member
94 startoff = xc->irec.br_startoff + in xrep_cow_mark_file_range()
95 (startblock - xc->irec.br_startblock); in xrep_cow_mark_file_range()
124 xc->irec_startbno + xc->irec.br_blockcount) { in xrep_cow_trim_refcount()
126 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_trim_refcount()
221 (xc->irec_startbno + xc->irec.br_blockcount); in xrep_cow_mark_missing_staging_rmap()
280 xc->irec_startbno + xc->irec.br_blockcount - in xrep_cow_find_bad()
302 xc->irec.br_blockcount); in xrep_cow_find_bad()
568 for_each_xfs_iext(ifp, &icur, &xc->irec) { in xrep_bmap_cow()
577 if (isnullstartblock(xc->irec.br_startblock)) in xrep_bmap_cow()
[all …]
A Drefcount_repair.c175 struct xfs_refcount_irec irec = { in xrep_refc_stash() local
188 error = xrep_refc_check_ext(rr->sc, &irec); in xrep_refc_stash()
192 trace_xrep_refc_found(sc->sa.pag, &irec); in xrep_refc_stash()
292 const struct xfs_refcount_irec *irec) in xrep_refc_encode_startblock() argument
297 if (irec->rc_domain == XFS_REFC_DOMAIN_COW) in xrep_refc_encode_startblock()
331 struct xfs_refcount_irec irec; in xrep_refc_sort_records() local
352 dom = irec.rc_domain; in xrep_refc_sort_records()
356 if (dom != irec.rc_domain) in xrep_refc_sort_records()
358 if (irec.rc_startblock < next_agbno) in xrep_refc_sort_records()
361 next_agbno = irec.rc_startblock + irec.rc_blockcount; in xrep_refc_sort_records()
[all …]
A Dquota.c87 struct xfs_bmbt_irec irec; in xchk_quota_item_bmap() local
102 error = xfs_bmapi_read(sc->ip, offset, 1, &irec, &nmaps, 0); in xchk_quota_item_bmap()
111 if (!xfs_verify_fsbno(mp, irec.br_startblock)) in xchk_quota_item_bmap()
113 if (XFS_FSB_TO_DADDR(mp, irec.br_startblock) != dq->q_blkno) in xchk_quota_item_bmap()
115 if (!xfs_bmap_is_written_extent(&irec)) in xchk_quota_item_bmap()
259 struct xfs_bmbt_irec irec = { 0 }; in xchk_quota_data_fork() local
274 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
282 if (!xfs_bmap_is_written_extent(&irec) || in xchk_quota_data_fork()
283 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
284 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
[all …]
A Dialloc_repair.c530 struct xfs_inobt_rec_incore *irec = &cur->bc_rec.i; in xrep_fibt_get_records() local
539 ri->array_cur++, irec); in xrep_fibt_get_records()
540 } while (error == 0 && xfs_inobt_rec_freecount(irec) == 0); in xrep_fibt_get_records()
560 struct xfs_inobt_rec_incore *irec = &cur->bc_rec.i; in xrep_ibt_get_records() local
567 error = xfarray_load(ri->inode_records, ri->array_cur++, irec); in xrep_ibt_get_records()
607 struct xfs_inobt_rec_incore irec; in xrep_ibt_check_overlap() local
616 error = xfarray_load(ri->inode_records, cur, &irec); in xrep_ibt_check_overlap()
620 if (irec.ir_startino < next_agino) in xrep_ibt_check_overlap()
623 next_agino = irec.ir_startino + XFS_INODES_PER_CHUNK; in xrep_ibt_check_overlap()
/linux/fs/xfs/libxfs/
A Dxfs_refcount.h23 struct xfs_refcount_irec *irec, int *stat);
68 const struct xfs_refcount_irec *irec) in xfs_refcount_check_domain() argument
70 if (irec->rc_domain == XFS_REFC_DOMAIN_COW && irec->rc_refcount != 1) in xfs_refcount_check_domain()
72 if (irec->rc_domain == XFS_REFC_DOMAIN_SHARED && irec->rc_refcount < 2) in xfs_refcount_check_domain()
78 struct xfs_bmbt_irec *irec);
80 struct xfs_bmbt_irec *irec);
120 struct xfs_refcount_irec *irec);
122 const struct xfs_refcount_irec *irec);
124 struct xfs_refcount_irec *irec, int *stat);
A 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()
68 struct xfs_rmap_irec *irec) in xfs_rmap_irec_offset_unpack() argument
73 irec->rm_offset = XFS_RMAP_OFF(offset); in xfs_rmap_irec_offset_unpack()
74 irec->rm_flags = 0; in xfs_rmap_irec_offset_unpack()
76 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_rmap_irec_offset_unpack()
78 irec->rm_flags |= XFS_RMAP_BMBT_BLOCK; in xfs_rmap_irec_offset_unpack()
80 irec->rm_flags |= XFS_RMAP_UNWRITTEN; in xfs_rmap_irec_offset_unpack()
206 struct xfs_rmap_irec *irec);
[all …]
A Dxfs_refcount.c108 struct xfs_refcount_irec *irec) in xfs_refcount_btrec_to_irec() argument
120 irec->rc_startblock = start; in xfs_refcount_btrec_to_irec()
131 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_check_irec()
138 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount)) in xfs_refcount_check_irec()
141 if (irec->rc_refcount == 0 || irec->rc_refcount > MAXREFCOUNT) in xfs_refcount_check_irec()
160 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_complain_bad_rec()
171 struct xfs_refcount_irec *irec, in xfs_refcount_get_rec() argument
199 struct xfs_refcount_irec *irec) in xfs_refcount_update() argument
208 irec->rc_domain); in xfs_refcount_update()
265 struct xfs_refcount_irec irec; in xfs_refcount_delete() local
[all …]
A Dxfs_rmap.c104 trace_xfs_rmap_update(cur, irec->rm_startblock, irec->rm_blockcount, in xfs_rmap_update()
105 irec->rm_owner, irec->rm_offset, irec->rm_flags); in xfs_rmap_update()
207 irec); in xfs_rmap_btrec_to_irec()
261 !xfs_verify_fileext(mp, irec->rm_offset, irec->rm_blockcount)) in xfs_rmap_check_irec()
294 irec->rm_owner, irec->rm_flags, irec->rm_startblock, in xfs_rmap_complain_bad_rec()
388 info.irec = irec; in xfs_rmap_find_left_neighbor()
423 irec->rm_blockcount, irec->rm_owner, irec->rm_offset, in xfs_rmap_find_left_neighbor()
424 irec->rm_flags); in xfs_rmap_find_left_neighbor()
482 info.irec = irec; in xfs_rmap_lookup_le_range()
516 irec->rm_blockcount, irec->rm_owner, irec->rm_offset, in xfs_rmap_lookup_le_range()
[all …]
A Dxfs_bmap.h150 static inline bool xfs_bmap_is_real_extent(const struct xfs_bmbt_irec *irec) in xfs_bmap_is_real_extent() argument
152 return irec->br_startblock != HOLESTARTBLOCK && in xfs_bmap_is_real_extent()
153 irec->br_startblock != DELAYSTARTBLOCK && in xfs_bmap_is_real_extent()
154 !isnullstartblock(irec->br_startblock); in xfs_bmap_is_real_extent()
161 static inline bool xfs_bmap_is_written_extent(const struct xfs_bmbt_irec *irec) in xfs_bmap_is_written_extent() argument
163 return xfs_bmap_is_real_extent(irec) && in xfs_bmap_is_written_extent()
164 irec->br_state != XFS_EXT_UNWRITTEN; in xfs_bmap_is_written_extent()
176 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
274 int whichfork, struct xfs_bmbt_irec *irec);
276 struct xfs_bmbt_irec *irec);
[all …]
A Dxfs_iext_tree.c55 struct xfs_bmbt_irec *irec) in xfs_iext_set() argument
64 rec->lo |= (irec->br_startblock << 54); 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
79 irec->br_startblock = rec->lo >> 54; in xfs_iext_get()
83 irec->br_state = XFS_EXT_UNWRITTEN; in xfs_iext_get()
85 irec->br_state = XFS_EXT_NORM; in xfs_iext_get()
636 struct xfs_bmbt_irec *irec) in xfs_iext_insert_raw() argument
668 xfs_iext_set(cur_rec(cur), irec); in xfs_iext_insert_raw()
679 struct xfs_bmbt_irec *irec, in xfs_iext_insert() argument
[all …]
A Dxfs_exchmaps.c112 const struct xfs_bmbt_irec *irec) in xmi_advance() argument
114 xmi->xmi_startoff1 += irec->br_blockcount; in xmi_advance()
194 struct xfs_bmbt_irec *irec) in xfs_exchmaps_can_skip_mapping() argument
203 if (xfs_bmap_is_written_extent(irec)) in xfs_exchmaps_can_skip_mapping()
226 if (!xfs_bmap_is_real_extent(irec)) in xfs_exchmaps_can_skip_mapping()
241 irec->br_blockcount = min(irec->br_blockcount, in xfs_exchmaps_can_skip_mapping()
242 new_end - irec->br_startoff); in xfs_exchmaps_can_skip_mapping()
260 new_end = rounddown_64(irec->br_startoff + irec->br_blockcount, in xfs_exchmaps_can_skip_mapping()
262 irec->br_blockcount = new_end - irec->br_startoff; in xfs_exchmaps_can_skip_mapping()
905 const struct xfs_bmbt_irec *irec, in xmi_next() argument
[all …]
A Dxfs_ialloc.c79 struct xfs_inobt_rec_incore *irec) in xfs_inobt_btrec_to_irec() argument
93 irec->ir_freecount = in xfs_inobt_btrec_to_irec()
104 uint64_t realfree = irec->ir_free; in xfs_inobt_rec_freecount()
129 if (xfs_inobt_rec_freecount(irec) != irec->ir_freecount) in xfs_inobt_check_irec()
148 irec->ir_startino, irec->ir_count, irec->ir_freecount, in xfs_inobt_complain_bad_rec()
149 irec->ir_free, irec->ir_holemask); in xfs_inobt_complain_bad_rec()
160 struct xfs_inobt_rec_incore *irec, in xfs_inobt_get_rec() argument
2806 struct xfs_inobt_rec_incore irec; in xfs_ialloc_count_ondisk() local
2821 if (irec.ir_startino > high) in xfs_ialloc_count_ondisk()
2825 if (irec.ir_startino + i < low) in xfs_ialloc_count_ondisk()
[all …]
A Dxfs_ialloc.h85 uint8_t xfs_inobt_rec_freecount(const struct xfs_inobt_rec_incore *irec);
99 struct xfs_inobt_rec_incore *irec);
101 const struct xfs_inobt_rec_incore *irec);
/linux/fs/xfs/
A Dxfs_iwalk.c100 struct xfs_inobt_rec_incore *irec) in xfs_iwalk_ichunk_ra() argument
115 if (imask & ~irec->ir_free) { in xfs_iwalk_ichunk_ra()
138 idx = agino - irec->ir_startino; in xfs_iwalk_adjust_start()
141 irec->ir_freecount = hweight64(irec->ir_free); in xfs_iwalk_adjust_start()
212 irec->ir_startino + j); in xfs_iwalk_ag_recs()
266 struct xfs_inobt_rec_incore *irec; in xfs_iwalk_ag_start() local
299 irec = &iwag->recs[iwag->nr_recs]; in xfs_iwalk_ag_start()
323 xfs_iwalk_adjust_start(agino, irec); in xfs_iwalk_ag_start()
414 struct xfs_inobt_rec_incore *irec; in xfs_iwalk_ag() local
422 irec = &iwag->recs[iwag->nr_recs]; in xfs_iwalk_ag()
[all …]
A Dxfs_fsmap.c414 struct xfs_rmap_irec irec; in xfs_getfsmap_datadev_bnobt_helper() local
423 irec.rm_offset = 0; in xfs_getfsmap_datadev_bnobt_helper()
424 irec.rm_flags = 0; in xfs_getfsmap_datadev_bnobt_helper()
432 struct xfs_rmap_irec *irec, in xfs_getfsmap_set_irec_flags() argument
435 irec->rm_flags = 0; in xfs_getfsmap_set_irec_flags()
437 irec->rm_flags |= XFS_RMAP_ATTR_FORK; in xfs_getfsmap_set_irec_flags()
720 struct xfs_rmap_irec irec; in xfs_getfsmap_rtdev_rtbitmap_helper() local
726 irec.rm_startblock = rtbno; in xfs_getfsmap_rtdev_rtbitmap_helper()
730 irec.rm_blockcount = rtbno; in xfs_getfsmap_rtdev_rtbitmap_helper()
733 irec.rm_offset = 0; in xfs_getfsmap_rtdev_rtbitmap_helper()
[all …]
A Dxfs_itable.c399 const struct xfs_inobt_rec_incore *irec, in xfs_inumbers_walk() argument
403 .xi_startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino), in xfs_inumbers_walk()
404 .xi_alloccount = irec->ir_count - irec->ir_freecount, in xfs_inumbers_walk()
405 .xi_allocmask = ~irec->ir_free, in xfs_inumbers_walk()
415 ic->breq->startino = XFS_AGINO_TO_INO(mp, agno, irec->ir_startino) + in xfs_inumbers_walk()
/linux/drivers/media/platform/st/sti/c8sectpfe/
A Dc8sectpfe-core.c74 if (channel->irec && readl(channel->irec + DMA_PRDS_TPENABLE)) in c8sectpfe_timer_interrupt()
90 if (unlikely(!channel || !channel->irec)) in channel_swdemux_bh_work()
95 wp = readl(channel->irec + DMA_PRDS_BUSWP_TP(0)); in channel_swdemux_bh_work()
96 rp = readl(channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_bh_work()
133 writel(wp, channel->irec + DMA_PRDS_BUSRP_TP(0)); in channel_swdemux_bh_work()
242 writel(0x1, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_start_feed()
304 writel(0, channel->irec + DMA_PRDS_TPENABLE); in c8sectpfe_stop_feed()
326 channel->irec + DMA_PRDS_BUSBASE_TP(0)); in c8sectpfe_stop_feed()
332 channel->irec + DMA_PRDS_BUSWP_TP(0)); in c8sectpfe_stop_feed()
613 tsin->irec += (tsin->tsin_id * DMA_PRDS_SIZE); in configure_memdma_and_inputblock()
[all …]
/linux/fs/ext4/
A 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()
260 struct ext4_fsmap irec; in ext4_getfsmap_logdev() local
284 irec.fmr_owner = EXT4_FMR_OWN_LOG; in ext4_getfsmap_logdev()
[all …]

Completed in 74 milliseconds

12