]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
repair: kill check_inode_block
authorChristoph Hellwig <hch@infradead.org>
Fri, 2 Dec 2011 17:46:28 +0000 (12:46 -0500)
committerChristoph Hellwig <hch@lst.de>
Sun, 5 Feb 2012 14:00:34 +0000 (14:00 +0000)
It's a wrapper around check_aginode_block, but given that the only caller
already has the agno and agbno at hand it isn't overly useful.

Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
repair/dino_chunks.c

index c4f86e5c08a4aac53e399e960f8efb932eddf8dc..eac2cee5a8b988c5f562d294b52525fa4eb88460 100644 (file)
@@ -72,14 +72,6 @@ check_aginode_block(xfs_mount_t      *mp,
        return(cnt);
 }
 
-int
-check_inode_block(xfs_mount_t          *mp,
-                       xfs_ino_t       ino)
-{
-       return(check_aginode_block(mp, XFS_INO_TO_AGNO(mp, ino),
-                                       XFS_INO_TO_AGBNO(mp, ino)));
-}
-
 /*
  * tries to establish if the inode really exists in a valid
  * inode chunk.  returns number of new inodes if things are good
@@ -145,10 +137,9 @@ verify_inode_chunk(xfs_mount_t             *mp,
         */
        if (XFS_IALLOC_BLOCKS(mp) == 1)  {
                if (agbno > max_agbno)
-                       return(0);
-
-               if (check_inode_block(mp, ino) == 0)
-                       return(0);
+                       return 0;
+               if (check_aginode_block(mp, agno, agino) == 0)
+                       return 0;
 
                pthread_mutex_lock(&ag_locks[agno]);