aboutsummaryrefslogtreecommitdiffstats
path: root/fs/minix
diff options
context:
space:
mode:
Diffstat (limited to 'fs/minix')
-rw-r--r--fs/minix/inode.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/minix/inode.c b/fs/minix/inode.c
index c11a4b9fb863..1e36bae4d0eb 100644
--- a/fs/minix/inode.c
+++ b/fs/minix/inode.c
@@ -149,12 +149,8 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
149 return -ENOMEM; 149 return -ENOMEM;
150 s->s_fs_info = sbi; 150 s->s_fs_info = sbi;
151 151
152 /* N.B. These should be compile-time tests. 152 BUILD_BUG_ON(32 != sizeof (struct minix_inode));
153 Unfortunately that is impossible. */ 153 BUILD_BUG_ON(64 != sizeof(struct minix2_inode));
154 if (32 != sizeof (struct minix_inode))
155 panic("bad V1 i-node size");
156 if (64 != sizeof(struct minix2_inode))
157 panic("bad V2 i-node size");
158 154
159 if (!sb_set_blocksize(s, BLOCK_SIZE)) 155 if (!sb_set_blocksize(s, BLOCK_SIZE))
160 goto out_bad_hblock; 156 goto out_bad_hblock;