From 8238a4c7c229823bc2e8f62cfeafbaab6e1d2735 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Mon, 8 Sep 2008 10:47:19 -0400 Subject: [PATCH] --- yaml --- r: 112948 b: refs/heads/master c: 7ee1ec4ca30c6df8e989615cdaacb75f2af4fa6b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/super.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c6f67403fc94..a7efe0aa2d76 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 05496769e5da83ce22ed97345afd9c7b71d6bd24 +refs/heads/master: 7ee1ec4ca30c6df8e989615cdaacb75f2af4fa6b diff --git a/trunk/fs/ext4/super.c b/trunk/fs/ext4/super.c index 64e1c21eb5d2..8175318abd84 100644 --- a/trunk/fs/ext4/super.c +++ b/trunk/fs/ext4/super.c @@ -1623,8 +1623,10 @@ static int ext4_check_descriptors(struct super_block *sb) "Checksum for group %lu failed (%u!=%u)\n", i, le16_to_cpu(ext4_group_desc_csum(sbi, i, gdp)), le16_to_cpu(gdp->bg_checksum)); - if (!(sb->s_flags & MS_RDONLY)) + if (!(sb->s_flags & MS_RDONLY)) { + spin_unlock(sb_bgl_lock(sbi, i)); return 0; + } } spin_unlock(sb_bgl_lock(sbi, i)); if (!flexbg_flag)