diff options
| -rw-r--r-- | fs/nilfs2/the_nilfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/the_nilfs.c b/fs/nilfs2/the_nilfs.c index 37de1f062d81..6af1c0073e9e 100644 --- a/fs/nilfs2/the_nilfs.c +++ b/fs/nilfs2/the_nilfs.c | |||
| @@ -608,11 +608,11 @@ static int nilfs_load_super_block(struct the_nilfs *nilfs, | |||
| 608 | return -EINVAL; | 608 | return -EINVAL; |
| 609 | } | 609 | } |
| 610 | 610 | ||
| 611 | if (swp) { | 611 | if (!valid[!swp]) |
| 612 | printk(KERN_WARNING "NILFS warning: broken superblock. " | 612 | printk(KERN_WARNING "NILFS warning: broken superblock. " |
| 613 | "using spare superblock.\n"); | 613 | "using spare superblock.\n"); |
| 614 | if (swp) | ||
| 614 | nilfs_swap_super_block(nilfs); | 615 | nilfs_swap_super_block(nilfs); |
| 615 | } | ||
| 616 | 616 | ||
| 617 | nilfs->ns_sbwcount = 0; | 617 | nilfs->ns_sbwcount = 0; |
| 618 | nilfs->ns_sbwtime = le64_to_cpu(sbp[0]->s_wtime); | 618 | nilfs->ns_sbwtime = le64_to_cpu(sbp[0]->s_wtime); |
