diff options
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r-- | util-linux/fsck_minix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index 3ebc07661..dba52417e 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -244,15 +244,15 @@ static ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n) | |||
244 | return (size + n-1) / n; | 244 | return (size + n-1) / n; |
245 | } | 245 | } |
246 | 246 | ||
247 | #if ENABLE_FEATURE_MINIX2 | 247 | #if !ENABLE_FEATURE_MINIX2 |
248 | #define INODE_BLOCKS div_roundup(INODES, (version2 ? MINIX2_INODES_PER_BLOCK \ | 248 | #define INODE_BLOCKS div_roundup(INODES, MINIX1_INODES_PER_BLOCK) |
249 | : MINIX1_INODES_PER_BLOCK)) | ||
250 | #else | 249 | #else |
251 | #define INODE_BLOCKS div_roundup(INODES, MINIX1_INODES_PER_BLOCK) | 250 | #define INODE_BLOCKS div_roundup(INODES, \ |
251 | (version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK)) | ||
252 | #endif | 252 | #endif |
253 | 253 | ||
254 | #define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE) | 254 | #define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE) |
255 | #define NORM_FIRSTZONE (2 + IMAPS + ZMAPS + INODE_BLOCKS) | 255 | #define NORM_FIRSTZONE (2 + IMAPS + ZMAPS + INODE_BLOCKS) |
256 | 256 | ||
257 | /* Before you ask "where they come from?": */ | 257 | /* Before you ask "where they come from?": */ |
258 | /* setbit/clrbit are supplied by sys/param.h */ | 258 | /* setbit/clrbit are supplied by sys/param.h */ |