Lines Matching refs:ip

86 				sc->ip ? sc->ip : XFS_I(file_inode(sc->file)),
149 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error);
489 if (sc->ip)
880 ASSERT(sc->ip != NULL);
893 struct xfs_inode *ip)
895 if (VFS_I(ip)->i_generation != sc->sm->sm_gen) {
896 xchk_irele(sc, ip);
900 sc->ip = ip;
912 struct xfs_inode *ip)
914 if (!igrab(VFS_I(ip))) {
915 xchk_ino_set_corrupt(sc, ip->i_ino);
919 sc->ip = ip;
939 struct xfs_inode *ip = NULL;
956 error = xchk_iget_safe(sc, sc->sm->sm_ino, &ip);
958 return xchk_install_handle_inode(sc, ip);
983 error = xchk_iget_agi(sc, sc->sm->sm_ino, &agi_bp, &ip);
987 return xchk_install_handle_inode(sc, ip);
1047 struct xfs_inode *ip)
1062 spin_lock(&VFS_I(ip)->i_lock);
1063 VFS_I(ip)->i_state &= ~I_DONTCACHE;
1064 spin_unlock(&VFS_I(ip)->i_lock);
1067 xfs_irele(ip);
1108 xfs_ilock(sc->ip, ilock_flags);
1117 if (xfs_ilock_nowait(sc->ip, ilock_flags)) {
1131 xfs_iunlock(sc->ip, ilock_flags);
1212 * pointed to by sc->ip and the ILOCK must be held.
1230 if (sc->ip->i_diflags & XFS_DIFLAG_REALTIME) {
1231 xchk_ino_set_corrupt(sc, sc->ip->i_ino);
1236 if (xfs_is_reflink_inode(sc->ip)) {
1237 xchk_ino_set_corrupt(sc, sc->ip->i_ino);
1242 if (xfs_inode_hasattr(sc->ip)) {
1243 xchk_ino_set_corrupt(sc, sc->ip->i_ino);
1254 error = xfs_reflink_inode_has_shared_extents(sc->tp, sc->ip,
1260 xchk_ino_set_corrupt(sc, sc->ip->i_ino);
1322 struct xfs_inode *ip;
1344 ip = radix_tree_lookup(&pag->pag_ici_root, agino);
1345 if (!ip) {
1355 spin_lock(&ip->i_flags_lock);
1356 if (ip->i_ino != ino)
1359 trace_xchk_inode_is_allocated(ip);
1374 if (!(ip->i_flags & (XFS_NEED_INACTIVE | XFS_INEW | XFS_IRECLAIMABLE |
1377 ASSERT(VFS_I(ip)->i_mode != 0);
1391 if (ip->i_flags & XFS_INEW) {
1393 ASSERT(VFS_I(ip)->i_mode != 0);
1400 if ((ip->i_flags & XFS_NEED_INACTIVE) &&
1401 !(ip->i_flags & XFS_INACTIVATING)) {
1403 ASSERT(VFS_I(ip)->i_mode != 0);
1439 *inuse = VFS_I(ip)->i_mode != 0;
1443 spin_unlock(&ip->i_flags_lock);