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()
160 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
179 if (info->whichfork == XFS_COW_FORK) 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()
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()
264 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_iextent_xref()
271 switch (info->whichfork) { in xchk_bmap_iextent_xref()
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()
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()
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()
358 xchk_fblock_set_corrupt(info->sc, info->whichfork, 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()
396 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, info->whichfork); in xchk_bmapbt_rec()
411 info->whichfork, 0); in xchk_bmapbt_rec()
432 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
441 int whichfork, in xchk_bmap_btree() argument
445 struct xfs_ifork *ifp = XFS_IFORK_PTR(sc->ip, whichfork); in xchk_bmap_btree()
454 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap_btree()
455 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap_btree()
459 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
460 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
469 int whichfork; member
490 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
497 ifp = XFS_IFORK_PTR(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
499 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
506 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
518 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
523 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
526 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
537 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
551 int whichfork, in xchk_bmap_check_ag_rmaps() argument
566 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
580 int whichfork) in xchk_bmap_check_rmaps() argument
582 struct xfs_ifork *ifp = XFS_IFORK_PTR(sc->ip, whichfork); in xchk_bmap_check_rmaps()
589 whichfork == XFS_COW_FORK || in xchk_bmap_check_rmaps()
594 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
597 ASSERT(XFS_IFORK_PTR(sc->ip, whichfork) != NULL); in xchk_bmap_check_rmaps()
607 if (whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
617 error = xchk_bmap_check_ag_rmaps(sc, whichfork, pag); in xchk_bmap_check_rmaps()
637 int whichfork) in xchk_bmap() argument
643 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
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()
657 switch (whichfork) { in xchk_bmap()
670 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
684 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
685 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
689 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
694 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
702 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
703 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
708 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
716 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
725 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
726 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()