From: Andries Brouwer Date: Tue, 20 Feb 2007 21:57:47 +0000 (-0800) Subject: [PATCH] minix v3: fix superblock definition X-Git-Tag: v2.6.21-rc1~47 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4fa27c16ba9b6910c5b815e5c13a7e8249277f0;p=linux-2.6 [PATCH] minix v3: fix superblock definition 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" Cc: "Daniel Aragones" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/minix_fs.h b/include/linux/minix_fs.h index 9850d513ff..0e39745f51 100644 --- a/include/linux/minix_fs.h +++ b/include/linux/minix_fs.h @@ -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;