tools headers UAPI: Sync linux/prctl.h with the kernel sources
[linux-2.6-microblaze.git] / fs / xfs / scrub / dir.c
index 3ec6290..28dda39 100644 (file)
 /* Set us up to scrub directories. */
 int
 xchk_setup_directory(
-       struct xfs_scrub        *sc,
-       struct xfs_inode        *ip)
+       struct xfs_scrub        *sc)
 {
-       return xchk_setup_inode_contents(sc, ip, 0);
+       return xchk_setup_inode_contents(sc, 0);
 }
 
 /* Directories */
@@ -538,7 +537,7 @@ xchk_directory_leaf1_bestfree(
         * There should be as many bestfree slots as there are dir data
         * blocks that can fit under i_size.
         */
-       if (bestcount != xfs_dir2_byte_to_db(geo, sc->ip->i_d.di_size)) {
+       if (bestcount != xfs_dir2_byte_to_db(geo, sc->ip->i_disk_size)) {
                xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, lblk);
                goto out;
        }
@@ -808,7 +807,7 @@ xchk_directory(
                return -ENOENT;
 
        /* Plausible size? */
-       if (sc->ip->i_d.di_size < xfs_dir2_sf_hdr_size(0)) {
+       if (sc->ip->i_disk_size < xfs_dir2_sf_hdr_size(0)) {
                xchk_ino_set_corrupt(sc, sc->ip->i_ino);
                goto out;
        }
@@ -834,7 +833,7 @@ xchk_directory(
         * Userspace usually asks for a 32k buffer, so we will too.
         */
        bufsize = (size_t)min_t(loff_t, XFS_READDIR_BUFSIZE,
-                       sc->ip->i_d.di_size);
+                       sc->ip->i_disk_size);
 
        /*
         * Look up every name in this directory by hash.