Lines Matching refs:whichfork

86 	int			whichfork;  member
103 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
110 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
147 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
166 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
179 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
187 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
193 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
197 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
210 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
213 if (info->whichfork == XFS_ATTR_FORK && in xchk_bmap_xref_rmap()
215 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
218 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
259 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_extent_xref()
266 switch (info->whichfork) { in xchk_bmap_extent_xref()
305 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
310 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
318 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
323 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
326 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
332 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
339 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
344 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_extent()
345 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
382 info->whichfork, 0); in xchk_bmapbt_rec()
395 int whichfork, in xchk_bmap_btree() argument
404 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
405 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
413 int whichfork; member
433 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
440 ifp = XFS_IFORK_PTR(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
442 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
449 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
460 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
464 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
467 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
478 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
492 int whichfork, in xchk_bmap_check_ag_rmaps() argument
511 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
526 int whichfork) in xchk_bmap_check_rmaps() argument
533 whichfork == XFS_COW_FORK || in xchk_bmap_check_rmaps()
538 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
548 switch (whichfork) { in xchk_bmap_check_rmaps()
559 if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE && in xchk_bmap_check_rmaps()
560 (size == 0 || XFS_IFORK_NEXTENTS(sc->ip, whichfork) > 0)) in xchk_bmap_check_rmaps()
564 error = xchk_bmap_check_ag_rmaps(sc, whichfork, agno); in xchk_bmap_check_rmaps()
583 int whichfork) in xchk_bmap() argument
594 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
596 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
597 info.whichfork = whichfork; in xchk_bmap()
598 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
601 switch (whichfork) { in xchk_bmap()
620 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
625 switch (XFS_IFORK_FORMAT(ip, whichfork)) { in xchk_bmap()
633 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
638 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
639 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
643 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
648 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
657 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap()
658 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
663 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
664 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
669 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
677 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
687 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
688 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()