Lines Matching refs:ip

81 				sc->ip ? sc->ip : XFS_I(file_inode(sc->file)),  in __xchk_process_error()
136 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_fblock_process_error()
453 if (sc->ip) in xchk_perag_drain_and_lock()
825 struct xfs_inode *ip) in xchk_install_handle_inode() argument
827 if (VFS_I(ip)->i_generation != sc->sm->sm_gen) { in xchk_install_handle_inode()
828 xchk_irele(sc, ip); in xchk_install_handle_inode()
832 sc->ip = ip; in xchk_install_handle_inode()
844 struct xfs_inode *ip) in xchk_install_live_inode() argument
846 if (!igrab(VFS_I(ip))) { in xchk_install_live_inode()
847 xchk_ino_set_corrupt(sc, ip->i_ino); in xchk_install_live_inode()
851 sc->ip = ip; in xchk_install_live_inode()
871 struct xfs_inode *ip = NULL; in xchk_iget_for_scrubbing() local
888 error = xchk_iget_safe(sc, sc->sm->sm_ino, &ip); in xchk_iget_for_scrubbing()
890 return xchk_install_handle_inode(sc, ip); in xchk_iget_for_scrubbing()
915 error = xchk_iget_agi(sc, sc->sm->sm_ino, &agi_bp, &ip); in xchk_iget_for_scrubbing()
919 return xchk_install_handle_inode(sc, ip); in xchk_iget_for_scrubbing()
979 struct xfs_inode *ip) in xchk_irele() argument
994 spin_lock(&VFS_I(ip)->i_lock); in xchk_irele()
995 VFS_I(ip)->i_state &= ~I_DONTCACHE; in xchk_irele()
996 spin_unlock(&VFS_I(ip)->i_lock); in xchk_irele()
997 } else if (atomic_read(&VFS_I(ip)->i_count) == 1) { in xchk_irele()
1002 d_mark_dontcache(VFS_I(ip)); in xchk_irele()
1005 xfs_irele(ip); in xchk_irele()
1041 xfs_ilock(sc->ip, ilock_flags); in xchk_ilock()
1050 if (xfs_ilock_nowait(sc->ip, ilock_flags)) { in xchk_ilock_nowait()
1064 xfs_iunlock(sc->ip, ilock_flags); in xchk_iunlock()
1176 if (sc->ip->i_diflags & XFS_DIFLAG_REALTIME) { in xchk_metadata_inode_forks()
1177 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_metadata_inode_forks()
1182 if (xfs_is_reflink_inode(sc->ip)) { in xchk_metadata_inode_forks()
1183 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_metadata_inode_forks()
1188 if (xfs_inode_hasattr(sc->ip)) { in xchk_metadata_inode_forks()
1189 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_metadata_inode_forks()
1200 error = xfs_reflink_inode_has_shared_extents(sc->tp, sc->ip, in xchk_metadata_inode_forks()
1206 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_metadata_inode_forks()
1259 struct xfs_inode *ip; in xchk_inode_is_allocated() local
1281 ip = radix_tree_lookup(&pag->pag_ici_root, agino); in xchk_inode_is_allocated()
1282 if (!ip) { in xchk_inode_is_allocated()
1292 spin_lock(&ip->i_flags_lock); in xchk_inode_is_allocated()
1293 if (ip->i_ino != ino) in xchk_inode_is_allocated()
1296 trace_xchk_inode_is_allocated(ip); in xchk_inode_is_allocated()
1311 if (!(ip->i_flags & (XFS_NEED_INACTIVE | XFS_INEW | XFS_IRECLAIMABLE | in xchk_inode_is_allocated()
1314 ASSERT(VFS_I(ip)->i_mode != 0); in xchk_inode_is_allocated()
1328 if (ip->i_flags & XFS_INEW) { in xchk_inode_is_allocated()
1330 ASSERT(VFS_I(ip)->i_mode != 0); in xchk_inode_is_allocated()
1337 if ((ip->i_flags & XFS_NEED_INACTIVE) && in xchk_inode_is_allocated()
1338 !(ip->i_flags & XFS_INACTIVATING)) { in xchk_inode_is_allocated()
1340 ASSERT(VFS_I(ip)->i_mode != 0); in xchk_inode_is_allocated()
1376 *inuse = VFS_I(ip)->i_mode != 0; in xchk_inode_is_allocated()
1380 spin_unlock(&ip->i_flags_lock); in xchk_inode_is_allocated()