Lines Matching refs:ip
49 struct xfs_inode *ip) in xchk_install_handle_iscrub() argument
53 error = xchk_install_handle_inode(sc, ip); in xchk_install_handle_iscrub()
71 struct xfs_inode *ip; in xchk_setup_inode() local
98 error = xchk_iget_safe(sc, sc->sm->sm_ino, &ip); in xchk_setup_inode()
100 return xchk_install_handle_iscrub(sc, ip); in xchk_setup_inode()
132 error = xchk_iget_agi(sc, sc->sm->sm_ino, &agi_bp, &ip); in xchk_setup_inode()
136 return xchk_install_handle_iscrub(sc, ip); in xchk_setup_inode()
418 if (dip->di_mode == 0 && sc->ip) in xchk_dinode()
653 error = xfs_bmap_count_blocks(sc->tp, sc->ip, XFS_DATA_FORK, in xchk_inode_xref_bmap()
658 xchk_ino_xref_set_corrupt(sc, sc->ip->i_ino); in xchk_inode_xref_bmap()
660 error = xfs_bmap_count_blocks(sc->tp, sc->ip, XFS_ATTR_FORK, in xchk_inode_xref_bmap()
665 xchk_ino_xref_set_corrupt(sc, sc->ip->i_ino); in xchk_inode_xref_bmap()
669 xchk_ino_xref_set_corrupt(sc, sc->ip->i_ino); in xchk_inode_xref_bmap()
722 error = xfs_reflink_inode_has_shared_extents(sc->tp, sc->ip, in xchk_inode_check_reflink_iflag()
727 if (xfs_is_reflink_inode(sc->ip) && !has_shared) in xchk_inode_check_reflink_iflag()
729 else if (!xfs_is_reflink_inode(sc->ip) && has_shared) in xchk_inode_check_reflink_iflag()
746 if (!sc->ip) { in xchk_inode()
752 xfs_inode_to_disk(sc->ip, &di, 0); in xchk_inode()
753 xchk_dinode(sc, &di, sc->ip->i_ino); in xchk_inode()
762 if (S_ISREG(VFS_I(sc->ip)->i_mode)) in xchk_inode()
763 xchk_inode_check_reflink_iflag(sc, sc->ip->i_ino); in xchk_inode()
765 xchk_inode_xref(sc, sc->ip->i_ino, &di); in xchk_inode()