Lines Matching refs:whichfork

140 	int			whichfork;  member
158 if (xfs_ifork_is_realtime(info->sc->ip, info->whichfork)) in xchk_bmap_get_rmap()
164 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
173 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
194 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
222 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
227 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
232 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
237 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
242 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
254 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
257 if (!!(info->whichfork == XFS_ATTR_FORK) != in xchk_bmap_xref_rmap()
259 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
262 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
290 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
295 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
300 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
310 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
313 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
316 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap_cow()
334 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_rt_iextent_xref()
339 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_rt_iextent_xref()
351 switch (info->whichfork) { in xchk_bmap_rt_iextent_xref()
356 info->whichfork, irec->br_startoff); in xchk_bmap_rt_iextent_xref()
400 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_iextent_xref()
406 switch (info->whichfork) { in xchk_bmap_iextent_xref()
411 info->whichfork, irec->br_startoff); in xchk_bmap_iextent_xref()
423 info->whichfork, irec->br_startoff); in xchk_bmap_iextent_xref()
459 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
463 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_dirattr_extent()
468 xchk_fblock_set_corrupt(info->sc, info->whichfork, off); in xchk_bmap_dirattr_extent()
486 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
490 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
498 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
502 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
507 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_iextent()
508 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
533 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, info->whichfork); in xchk_bmapbt_rec()
548 info->whichfork, 0); in xchk_bmapbt_rec()
563 if (xfs_bmap_validate_extent(ip, info->whichfork, &irec) != NULL) { in xchk_bmapbt_rec()
564 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
575 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
584 int whichfork, in xchk_bmap_btree() argument
588 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, whichfork); in xchk_bmap_btree()
597 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap_btree()
598 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap_btree()
602 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
603 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
612 int whichfork; member
633 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
640 ifp = xfs_ifork_ptr(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
642 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
649 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
661 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
665 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
668 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
679 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
693 int whichfork, in xchk_bmap_check_ag_rmaps() argument
708 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
732 sbcri.whichfork = XFS_DATA_FORK; in xchk_bmap_check_rt_rmaps()
826 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_want_check_rmaps()
831 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_want_check_rmaps()
841 int whichfork) in xchk_bmap_check_rmaps() argument
846 if (xfs_ifork_is_realtime(sc->ip, whichfork)) { in xchk_bmap_check_rmaps()
862 error = xchk_bmap_check_ag_rmaps(sc, whichfork, pag); in xchk_bmap_check_rmaps()
888 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent_delalloc()
892 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent_delalloc()
897 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent_delalloc()
966 ifp = xfs_ifork_ptr(info->sc->ip, info->whichfork); in xchk_bmap_iext_iter()
974 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iext_iter()
989 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iext_iter()
1004 if (nr > 1 && info->whichfork != XFS_COW_FORK && in xchk_bmap_iext_iter()
1020 int whichfork) in xchk_bmap() argument
1026 struct xfs_ifork *ifp = xfs_ifork_ptr(ip, whichfork); in xchk_bmap()
1034 info.is_rt = xfs_ifork_is_realtime(ip, whichfork); in xchk_bmap()
1035 info.whichfork = whichfork; in xchk_bmap()
1036 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
1039 switch (whichfork) { in xchk_bmap()
1058 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
1069 if (whichfork == XFS_COW_FORK) in xchk_bmap()
1070 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
1075 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
1076 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
1080 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
1085 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
1093 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
1094 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
1111 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
1124 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
1125 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()