Lines Matching refs:whichfork
104 int whichfork; member
121 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
130 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
167 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
186 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
199 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
207 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
213 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
217 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
230 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
233 if (!!(info->whichfork == XFS_ATTR_FORK) != in xchk_bmap_xref_rmap()
235 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
238 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
279 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_extent_xref()
286 switch (info->whichfork) { in xchk_bmap_extent_xref()
325 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
330 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
338 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
343 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
346 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
352 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
359 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
364 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_extent()
365 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_extent()
402 info->whichfork, 0); in xchk_bmapbt_rec()
415 int whichfork, in xchk_bmap_btree() argument
424 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
425 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
433 int whichfork; member
453 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
460 ifp = XFS_IFORK_PTR(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
462 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
469 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
480 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
484 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
487 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
498 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
512 int whichfork, in xchk_bmap_check_ag_rmaps() argument
531 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
546 int whichfork) in xchk_bmap_check_rmaps() argument
553 whichfork == XFS_COW_FORK || in xchk_bmap_check_rmaps()
558 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
568 switch (whichfork) { in xchk_bmap_check_rmaps()
579 if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE && in xchk_bmap_check_rmaps()
580 (size == 0 || XFS_IFORK_NEXTENTS(sc->ip, whichfork) > 0)) in xchk_bmap_check_rmaps()
584 error = xchk_bmap_check_ag_rmaps(sc, whichfork, agno); in xchk_bmap_check_rmaps()
603 int whichfork) in xchk_bmap() argument
614 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
616 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
617 info.whichfork = whichfork; in xchk_bmap()
618 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
621 switch (whichfork) { in xchk_bmap()
640 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
645 switch (XFS_IFORK_FORMAT(ip, whichfork)) { in xchk_bmap()
653 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
658 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
659 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
663 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
668 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
677 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap()
678 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
683 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
684 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
689 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
697 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
707 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
708 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()