Lines Matching refs:whichfork

97 	int			whichfork;  member
114 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
123 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
144 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
163 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
176 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
184 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
190 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
194 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
207 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
210 if (!!(info->whichfork == XFS_ATTR_FORK) != in xchk_bmap_xref_rmap()
212 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
215 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
248 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_iextent_xref()
255 switch (info->whichfork) { in xchk_bmap_iextent_xref()
287 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
291 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_dirattr_extent()
296 xchk_fblock_set_corrupt(info->sc, info->whichfork, off); in xchk_bmap_dirattr_extent()
314 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
318 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
325 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
333 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
338 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
342 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
346 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
351 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_iextent()
352 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
380 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, info->whichfork); in xchk_bmapbt_rec()
395 info->whichfork, 0); in xchk_bmapbt_rec()
416 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
425 int whichfork, in xchk_bmap_btree() argument
429 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, whichfork); in xchk_bmap_btree()
438 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap_btree()
439 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap_btree()
443 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
444 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
453 int whichfork; member
474 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
481 ifp = xfs_ifork_ptr(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
483 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
490 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
502 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
507 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
510 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
521 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
535 int whichfork, in xchk_bmap_check_ag_rmaps() argument
550 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
564 int whichfork) in xchk_bmap_check_rmaps() argument
566 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, whichfork); in xchk_bmap_check_rmaps()
573 whichfork == XFS_COW_FORK || in xchk_bmap_check_rmaps()
578 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
581 ASSERT(xfs_ifork_ptr(sc->ip, whichfork) != NULL); in xchk_bmap_check_rmaps()
591 if (whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
601 error = xchk_bmap_check_ag_rmaps(sc, whichfork, pag); in xchk_bmap_check_rmaps()
621 int whichfork) in xchk_bmap() argument
627 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xchk_bmap()
636 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
637 info.whichfork = whichfork; in xchk_bmap()
638 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
641 switch (whichfork) { in xchk_bmap()
654 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
668 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
669 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
673 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
678 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
686 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
687 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
692 ifp = xfs_ifork_ptr(ip, whichfork); in xchk_bmap()
700 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
709 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
710 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()