Lines Matching refs:ip
40 struct xfs_inode *ip, in xchk_dir_check_ftype() argument
51 if (xfs_mode_to_ftype(VFS_I(ip)->i_mode) != ftype) in xchk_dir_check_ftype()
71 struct xfs_inode *ip; in xchk_dir_actor() local
128 error = xchk_iget(sc, ino, &ip); in xchk_dir_actor()
137 xchk_dir_check_ftype(sc, offset, ip, name->type); in xchk_dir_actor()
138 xchk_irele(sc, ip); in xchk_dir_actor()
316 error = xfs_dir3_block_read(sc->tp, sc->ip, &bp); in xchk_directory_data_bestfree()
319 error = xfs_dir3_data_read(sc->tp, sc->ip, lblk, 0, &bp); in xchk_directory_data_bestfree()
471 error = xfs_dir3_leaf_read(sc->tp, sc->ip, lblk, &bp); in xchk_directory_leaf1_bestfree()
477 xfs_dir2_leaf_hdr_from_disk(sc->ip->i_mount, &leafhdr, leaf); in xchk_directory_leaf1_bestfree()
532 error = xfs_dir3_data_read(sc->tp, sc->ip, in xchk_directory_leaf1_bestfree()
578 error = xfs_dir2_free_read(sc->tp, sc->ip, lblk, &bp); in xchk_directory_free_bestfree()
591 xfs_dir2_free_hdr_from_disk(sc->ip->i_mount, &freehdr, bp->b_addr); in xchk_directory_free_bestfree()
598 error = xfs_dir3_data_read(sc->tp, sc->ip, in xchk_directory_free_bestfree()
622 .dp = sc ->ip, in xchk_directory_blocks()
627 struct xfs_ifork *ifp = xfs_ifork_ptr(sc->ip, XFS_DATA_FORK); in xchk_directory_blocks()
654 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
683 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
690 if (xfs_iext_lookup_extent(sc->ip, ifp, leaf_lblk, &icur, &got) && in xchk_directory_blocks()
709 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
747 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
760 if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) in xchk_directory()
764 if (sc->ip->i_disk_size < xfs_dir2_sf_hdr_size(0)) { in xchk_directory()
765 xchk_ino_set_corrupt(sc, sc->ip->i_ino); in xchk_directory()
786 error = xchk_dir_walk(sc, sc->ip, xchk_dir_actor, NULL); in xchk_directory()