]> err.no Git - linux-2.6/commitdiff
[PATCH] minix v3: fix superblock definition
authorAndries Brouwer <Andries.Brouwer@cwi.nl>
Tue, 20 Feb 2007 21:57:47 +0000 (13:57 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 21 Feb 2007 01:10:13 +0000 (17:10 -0800)
Somehow we got the layout of the v3 superblock wrong, which causes crashes due
to overindexing of the buffer_head array in statfs on large fielsystems.

Cc: "Cedric Augonnet" <cedric.augonnet@gmail.com>
Cc: "Daniel Aragones" <danarag@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/minix_fs.h

index 9850d513ff60e9b023273a9aa6a29f3b0baf2ed0..0e39745f5111b90d930998aae2caadade96c99e8 100644 (file)
@@ -78,8 +78,7 @@ struct minix_super_block {
  * V3 minix super-block data on disk
  */
 struct minix3_super_block {
-       __u16 s_ninodes;
-       __u16 s_nzones;
+       __u32 s_ninodes;
        __u16 s_pad0;
        __u16 s_imap_blocks;
        __u16 s_zmap_blocks;