]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] minix block usage counting fix
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Sun, 22 Aug 2004 07:07:46 +0000 (00:07 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 22 Aug 2004 07:07:46 +0000 (00:07 -0700)
In 2.5.18 some minix-specific stuff was moved to the minix subdirectory
where it belonged.  However, a typo crept in, causing inode disk usage
to be incorrectly reported.  A few people have complained, but so far
not sufficiently loudly.

Signed-off-by: Andries Brouwer <Andries.Brouwer@cwi.nl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/minix/itree_common.c

index f8e9bd831c90314a48e9127724bf663b82f66ee5..5a4b51dbfcb389b4109697b9d67fab431e2d1bad 100644 (file)
@@ -358,5 +358,5 @@ static inline unsigned nblocks(loff_t size)
                res += blocks;
                direct = 1;
        }
-       return blocks;
+       return res;
 }