Whamcloud - gitweb
LU-8364 ldiskfs: fixes for failover mode
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles12sp2 / ext4-mmp-brelse.patch
1 --- linux-stage.orig/fs/ext4/mmp.c      2015-10-06 08:21:12.013939184 +0530
2 +++ linux-stage/fs/ext4/mmp.c   2015-10-06 08:20:35.242939292 +0530
3 @@ -99,6 +99,8 @@ static int read_mmp_block(struct super_b
4                 return 0;
5
6  warn_exit:
7 +       brelse(*bh);
8 +       *bh = NULL;
9         ext4_warning(sb, "Error %d while reading MMP block %llu",
10                      ret, mmp_block);
11         return ret;
12 @@ -219,6 +221,7 @@ static int kmmpd(void *data)
13                                              "The filesystem seems to have been"
14                                              " multiply mounted.");
15                                 ext4_error(sb, "abort");
16 +                               put_bh(bh_check);
17                                 goto failed;
18                         }
19                         put_bh(bh_check);