minix: remove fs state

For v3 minix superblocks the state flag (s_state) has been removed, so drop it
from the structure in accordance with the kernel's representation.

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
This commit is contained in:
Davidlohr Bueso 2011-07-13 00:05:31 -04:00 committed by Karel Zak
parent 636a6207d9
commit 3ca43386bd
2 changed files with 2 additions and 6 deletions

View File

@ -62,7 +62,6 @@ struct minix3_super_block {
u16 s_pad2; u16 s_pad2;
u16 s_blocksize; u16 s_blocksize;
u8 s_disk_version; u8 s_disk_version;
u16 s_state;
}; };
#define BLOCK_SIZE_BITS 10 #define BLOCK_SIZE_BITS 10

View File

@ -160,11 +160,8 @@ static void check_mount(void) {
static void super_set_state(void) static void super_set_state(void)
{ {
switch (fs_version) { switch (fs_version) {
case 3: case 1:
Super3.s_state |= MINIX_VALID_FS; case 2:
Super3.s_state &= ~MINIX_ERROR_FS;
break;
default:
Super.s_state |= MINIX_VALID_FS; Super.s_state |= MINIX_VALID_FS;
Super.s_state &= ~MINIX_ERROR_FS; Super.s_state &= ~MINIX_ERROR_FS;
break; break;