• Home
  • Raw
  • Download

Lines Matching refs:info

103 	struct xchk_bmap_info	*info,  in xchk_bmap_get_rmap()  argument
114 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
123 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
133 if (info->is_shared) { in xchk_bmap_get_rmap()
134 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap()
136 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap()
137 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap()
145 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap()
147 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap()
148 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap()
153 error = xfs_rmap_get_rec(info->sc->sa.rmap_cur, rmap, &has_rmap); in xchk_bmap_get_rmap()
154 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap()
155 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap()
160 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
168 struct xchk_bmap_info *info, in xchk_bmap_xref_rmap() argument
176 if (!info->sc->sa.rmap_cur || xchk_skip_xref(info->sc->sm)) in xchk_bmap_xref_rmap()
179 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
182 owner = info->sc->ip->i_ino; in xchk_bmap_xref_rmap()
185 if (!xchk_bmap_get_rmap(info, irec, agbno, owner, &rmap)) in xchk_bmap_xref_rmap()
192 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
200 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
205 xchk_fblock_xref_set_corrupt(info->sc, in xchk_bmap_xref_rmap()
206 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
210 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
223 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
226 if (!!(info->whichfork == XFS_ATTR_FORK) != in xchk_bmap_xref_rmap()
228 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
231 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
239 struct xchk_bmap_info *info, in xchk_bmap_rt_iextent_xref() argument
242 xchk_xref_is_used_rt_space(info->sc, irec->br_startblock, in xchk_bmap_rt_iextent_xref()
250 struct xchk_bmap_info *info, in xchk_bmap_iextent_xref() argument
253 struct xfs_mount *mp = info->sc->mp; in xchk_bmap_iextent_xref()
263 error = xchk_ag_init_existing(info->sc, agno, &info->sc->sa); in xchk_bmap_iextent_xref()
264 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_iextent_xref()
268 xchk_xref_is_used_space(info->sc, agbno, len); in xchk_bmap_iextent_xref()
269 xchk_xref_is_not_inode_chunk(info->sc, agbno, len); in xchk_bmap_iextent_xref()
270 xchk_bmap_xref_rmap(info, irec, agbno); in xchk_bmap_iextent_xref()
271 switch (info->whichfork) { in xchk_bmap_iextent_xref()
273 if (xfs_is_reflink_inode(info->sc->ip)) in xchk_bmap_iextent_xref()
277 xchk_xref_is_not_shared(info->sc, agbno, in xchk_bmap_iextent_xref()
281 xchk_xref_is_cow_staging(info->sc, agbno, in xchk_bmap_iextent_xref()
287 xchk_ag_free(info->sc, &info->sc->sa); in xchk_bmap_iextent_xref()
297 struct xchk_bmap_info *info, in xchk_bmap_dirattr_extent() argument
303 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
307 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_dirattr_extent()
312 xchk_fblock_set_corrupt(info->sc, info->whichfork, off); in xchk_bmap_dirattr_extent()
319 struct xchk_bmap_info *info, in xchk_bmap_iextent() argument
322 struct xfs_mount *mp = info->sc->mp; in xchk_bmap_iextent()
329 if (irec->br_startoff < info->lastoff) in xchk_bmap_iextent()
330 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
334 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
337 xchk_bmap_dirattr_extent(ip, info, irec); in xchk_bmap_iextent()
341 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
349 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
354 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
356 if (info->is_rt && in xchk_bmap_iextent()
358 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
360 if (!info->is_rt && in xchk_bmap_iextent()
362 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
367 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_iextent()
368 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
371 if (info->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_bmap_iextent()
374 if (info->is_rt) in xchk_bmap_iextent()
375 xchk_bmap_rt_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
377 xchk_bmap_iextent_xref(ip, info, irec); in xchk_bmap_iextent()
379 info->lastoff = irec->br_startoff + irec->br_blockcount; in xchk_bmap_iextent()
392 struct xchk_bmap_info *info = bs->private; in xchk_bmapbt_rec() local
396 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, info->whichfork); in xchk_bmapbt_rec()
411 info->whichfork, 0); in xchk_bmapbt_rec()
422 if (!info->was_loaded) in xchk_bmapbt_rec()
432 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
442 struct xchk_bmap_info *info) in xchk_bmap_btree() argument
452 info->was_loaded = !xfs_need_iread_extents(ifp); in xchk_bmap_btree()
461 error = xchk_btree(sc, cur, xchk_bmapbt_rec, &oinfo, info); in xchk_bmap_btree()
640 struct xchk_bmap_info info = { NULL }; in xchk_bmap() local
652 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
653 info.whichfork = whichfork; in xchk_bmap()
654 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
655 info.sc = sc; in xchk_bmap()
689 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
707 info.lastoff = 0; in xchk_bmap()
720 error = xchk_bmap_iextent(ip, &info, &irec); in xchk_bmap()