Whamcloud - gitweb
a52d91f20a4770176256fda3220e1cd06fe1a7b4
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel6.3 / ext4-not-discard-preallocation-umount.patch
1 Index: linux-stage/fs/ext4/mballoc.c
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/mballoc.c
4 +++ linux-stage/fs/ext4/mballoc.c
5 @@ -3781,7 +3781,8 @@ ext4_mb_release_inode_pa(struct ext4_bud
6                  * from the bitmap and continue.
7                  */
8         }
9 -       BUG_ON(pa->pa_free != free);
10 +       /* do not verify if the file system is being umounted */
11 +       BUG_ON(atomic_read(&sb->s_active) > 0 && pa->pa_free != free);
12         atomic_add(free, &sbi->s_mb_discarded);
13  
14         return err;