Lines Matching refs:whichfork

113 	int			whichfork;  member
130 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
139 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()
188 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
193 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
198 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
203 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
208 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
220 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
223 if (!!(info->whichfork == XFS_ATTR_FORK) != in xchk_bmap_xref_rmap()
225 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
228 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
256 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
261 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
266 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
276 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
279 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
282 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
316 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_iextent_xref()
322 switch (info->whichfork) { in xchk_bmap_iextent_xref()
327 info->whichfork, irec->br_startoff); in xchk_bmap_iextent_xref()
339 info->whichfork, irec->br_startoff); in xchk_bmap_iextent_xref()
375 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
379 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_dirattr_extent()
384 xchk_fblock_set_corrupt(info->sc, info->whichfork, off); in xchk_bmap_dirattr_extent()
402 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
406 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
414 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
418 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
423 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_iextent()
424 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
449 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, info->whichfork); in xchk_bmapbt_rec()
464 info->whichfork, 0); in xchk_bmapbt_rec()
479 if (xfs_bmap_validate_extent(ip, info->whichfork, &irec) != NULL) { in xchk_bmapbt_rec()
480 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
491 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
500 int whichfork, in xchk_bmap_btree() argument
504 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, whichfork); in xchk_bmap_btree()
513 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap_btree()
514 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap_btree()
518 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
519 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
528 int whichfork; member
549 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
556 ifp = xfs_ifork_ptr(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
558 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
565 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
577 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
582 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
585 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
596 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
610 int whichfork, in xchk_bmap_check_ag_rmaps() argument
625 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
648 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_want_check_rmaps()
665 ifp = xfs_ifork_ptr(sc->ip, info->whichfork); in xchk_bmap_want_check_rmaps()
667 if (info->whichfork == XFS_DATA_FORK && in xchk_bmap_want_check_rmaps()
681 int whichfork) in xchk_bmap_check_rmaps() argument
688 error = xchk_bmap_check_ag_rmaps(sc, whichfork, pag); in xchk_bmap_check_rmaps()
714 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent_delalloc()
718 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent_delalloc()
723 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent_delalloc()
778 ifp = xfs_ifork_ptr(info->sc->ip, info->whichfork); in xchk_bmap_iext_iter()
786 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iext_iter()
801 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iext_iter()
816 if (nr > 1 && info->whichfork != XFS_COW_FORK && in xchk_bmap_iext_iter()
832 int whichfork) in xchk_bmap() argument
838 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xchk_bmap()
846 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
847 info.whichfork = whichfork; in xchk_bmap()
848 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
851 switch (whichfork) { in xchk_bmap()
870 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
880 if (whichfork == XFS_COW_FORK) in xchk_bmap()
881 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
886 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
887 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
891 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
896 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
904 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
905 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
922 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
935 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
936 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()