Lines Matching refs:whichfork
113 int whichfork;
130 if (info->whichfork == XFS_ATTR_FORK)
139 if (info->whichfork == XFS_COW_FORK)
160 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
188 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
193 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
198 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
203 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
208 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
220 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
223 if (!!(info->whichfork == XFS_ATTR_FORK) !=
225 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
228 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
256 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
261 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
266 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
276 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
279 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
282 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork,
316 if (!xchk_fblock_process_error(info->sc, info->whichfork,
322 switch (info->whichfork) {
327 info->whichfork, irec->br_startoff);
339 info->whichfork, irec->br_startoff);
375 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK)
379 xchk_fblock_set_corrupt(info->sc, info->whichfork,
384 xchk_fblock_set_corrupt(info->sc, info->whichfork, off);
402 xchk_fblock_set_corrupt(info->sc, info->whichfork,
406 xchk_fblock_set_corrupt(info->sc, info->whichfork,
414 xchk_fblock_set_corrupt(info->sc, info->whichfork,
418 xchk_fblock_set_corrupt(info->sc, info->whichfork,
423 info->whichfork == XFS_ATTR_FORK)
424 xchk_fblock_set_corrupt(info->sc, info->whichfork,
449 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, info->whichfork);
464 info->whichfork, 0);
479 if (xfs_bmap_validate_extent(ip, info->whichfork, &irec) != NULL) {
480 xchk_fblock_set_corrupt(bs->sc, info->whichfork,
491 xchk_fblock_set_corrupt(bs->sc, info->whichfork,
500 int whichfork,
504 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, whichfork);
513 error = xfs_iread_extents(sc->tp, ip, whichfork);
514 if (!xchk_fblock_process_error(sc, whichfork, 0, &error))
518 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork);
519 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork);
528 int whichfork;
549 if ((sbcri->whichfork == XFS_ATTR_FORK) ^
556 ifp = xfs_ifork_ptr(sc->ip, sbcri->whichfork);
558 xchk_fblock_set_corrupt(sc, sbcri->whichfork,
565 xchk_fblock_set_corrupt(sc, sbcri->whichfork,
577 xchk_fblock_set_corrupt(sc, sbcri->whichfork,
582 xchk_fblock_set_corrupt(sc, sbcri->whichfork,
585 xchk_fblock_set_corrupt(sc, sbcri->whichfork,
596 xchk_fblock_set_corrupt(sc, sbcri->whichfork,
610 int whichfork,
625 sbcri.whichfork = whichfork;
648 if (info->whichfork == XFS_COW_FORK)
665 ifp = xfs_ifork_ptr(sc->ip, info->whichfork);
667 if (info->whichfork == XFS_DATA_FORK &&
681 int whichfork)
688 error = xchk_bmap_check_ag_rmaps(sc, whichfork, pag);
714 xchk_fblock_set_corrupt(info->sc, info->whichfork,
718 xchk_fblock_set_corrupt(info->sc, info->whichfork,
723 xchk_fblock_set_corrupt(info->sc, info->whichfork,
778 ifp = xfs_ifork_ptr(info->sc->ip, info->whichfork);
786 xchk_fblock_set_corrupt(info->sc, info->whichfork,
801 xchk_fblock_set_corrupt(info->sc, info->whichfork,
816 if (nr > 1 && info->whichfork != XFS_COW_FORK &&
832 int whichfork)
838 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork);
846 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip);
847 info.whichfork = whichfork;
848 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip);
851 switch (whichfork) {
864 ASSERT(whichfork == XFS_DATA_FORK);
874 if (whichfork == XFS_COW_FORK)
875 xchk_fblock_set_corrupt(sc, whichfork, 0);
880 if (whichfork == XFS_COW_FORK) {
881 xchk_fblock_set_corrupt(sc, whichfork, 0);
885 error = xchk_bmap_btree(sc, whichfork, &info);
890 xchk_fblock_set_corrupt(sc, whichfork, 0);
898 error = xfs_bmap_last_offset(ip, &endoff, whichfork);
899 if (!xchk_fblock_process_error(sc, whichfork, 0, &error))
916 xchk_fblock_set_corrupt(sc, whichfork,
929 error = xchk_bmap_check_rmaps(sc, whichfork);
930 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error))