Lines Matching refs:whichfork
79 int whichfork; member
96 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap()
103 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap()
140 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_get_rmap()
159 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_xref_rmap()
172 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
180 if (info->whichfork != XFS_COW_FORK) { in xchk_bmap_xref_rmap()
186 info->whichfork, irec->br_startoff); in xchk_bmap_xref_rmap()
190 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()
206 if (info->whichfork == XFS_ATTR_FORK && in xchk_bmap_xref_rmap()
208 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
211 xchk_fblock_xref_set_corrupt(info->sc, info->whichfork, in xchk_bmap_xref_rmap()
244 if (!xchk_fblock_process_error(info->sc, info->whichfork, in xchk_bmap_iextent_xref()
251 switch (info->whichfork) { in xchk_bmap_iextent_xref()
282 if (!S_ISDIR(VFS_I(ip)->i_mode) && info->whichfork != XFS_ATTR_FORK) in xchk_bmap_dirattr_extent()
286 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_dirattr_extent()
291 xchk_fblock_set_corrupt(info->sc, info->whichfork, off); in xchk_bmap_dirattr_extent()
310 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
317 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
325 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
330 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
333 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
339 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
346 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
351 info->whichfork == XFS_ATTR_FORK) in xchk_bmap_iextent()
352 xchk_fblock_set_corrupt(info->sc, info->whichfork, in xchk_bmap_iextent()
380 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, info->whichfork); in xchk_bmapbt_rec()
395 info->whichfork, 0); in xchk_bmapbt_rec()
416 xchk_fblock_set_corrupt(bs->sc, info->whichfork, in xchk_bmapbt_rec()
425 int whichfork, in xchk_bmap_btree() argument
429 struct xfs_ifork *ifp = XFS_IFORK_PTR(sc->ip, whichfork); in xchk_bmap_btree()
438 error = xfs_iread_extents(sc->tp, ip, whichfork); in xchk_bmap_btree()
439 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap_btree()
444 cur = xfs_bmbt_init_cursor(mp, sc->tp, ip, whichfork); in xchk_bmap_btree()
445 xfs_rmap_ino_bmbt_owner(&oinfo, ip->i_ino, whichfork); in xchk_bmap_btree()
454 int whichfork; member
474 if ((sbcri->whichfork == XFS_ATTR_FORK) ^ in xchk_bmap_check_rmap()
481 ifp = XFS_IFORK_PTR(sc->ip, sbcri->whichfork); in xchk_bmap_check_rmap()
483 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
490 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
501 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
505 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
508 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
519 xchk_fblock_set_corrupt(sc, sbcri->whichfork, in xchk_bmap_check_rmap()
533 int whichfork, in xchk_bmap_check_ag_rmaps() argument
552 sbcri.whichfork = whichfork; in xchk_bmap_check_ag_rmaps()
567 int whichfork) in xchk_bmap_check_rmaps() argument
574 whichfork == XFS_COW_FORK || in xchk_bmap_check_rmaps()
579 if (XFS_IS_REALTIME_INODE(sc->ip) && whichfork == XFS_DATA_FORK) in xchk_bmap_check_rmaps()
589 switch (whichfork) { in xchk_bmap_check_rmaps()
600 if (XFS_IFORK_FORMAT(sc->ip, whichfork) != XFS_DINODE_FMT_BTREE && in xchk_bmap_check_rmaps()
601 (size == 0 || XFS_IFORK_NEXTENTS(sc->ip, whichfork) > 0)) in xchk_bmap_check_rmaps()
605 error = xchk_bmap_check_ag_rmaps(sc, whichfork, agno); in xchk_bmap_check_rmaps()
624 int whichfork) in xchk_bmap() argument
635 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
637 info.is_rt = whichfork == XFS_DATA_FORK && XFS_IS_REALTIME_INODE(ip); in xchk_bmap()
638 info.whichfork = whichfork; in xchk_bmap()
639 info.is_shared = whichfork == XFS_DATA_FORK && xfs_is_reflink_inode(ip); in xchk_bmap()
642 switch (whichfork) { in xchk_bmap()
661 ASSERT(whichfork == XFS_DATA_FORK); in xchk_bmap()
666 switch (XFS_IFORK_FORMAT(ip, whichfork)) { in xchk_bmap()
674 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
679 if (whichfork == XFS_COW_FORK) { in xchk_bmap()
680 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
684 error = xchk_bmap_btree(sc, whichfork, &info); in xchk_bmap()
689 xchk_fblock_set_corrupt(sc, whichfork, 0); in xchk_bmap()
697 error = xfs_bmap_last_offset(ip, &endoff, whichfork); in xchk_bmap()
698 if (!xchk_fblock_process_error(sc, whichfork, 0, &error)) in xchk_bmap()
703 ifp = XFS_IFORK_PTR(ip, whichfork); in xchk_bmap()
711 xchk_fblock_set_corrupt(sc, whichfork, in xchk_bmap()
721 error = xchk_bmap_check_rmaps(sc, whichfork); in xchk_bmap()
722 if (!xchk_fblock_xref_process_error(sc, whichfork, 0, &error)) in xchk_bmap()