Whamcloud - gitweb
LU-9510 ldiskfs: to not verify preallocation in umount path
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ubuntu18 / ext4-corrupted-inode-block-bitmaps-handling-patches.patch
index 526e8e9..9062641 100644 (file)
@@ -280,9 +280,9 @@ Index: linux-4.15.0/fs/ext4/mballoc.c
        }
        return 0;
 @@ -4052,16 +4063,8 @@ ext4_mb_release_inode_pa(struct ext4_bud
-       /* "free < pa->pa_free" means we maybe double alloc the same blocks,
         * otherwise maybe leave some free blocks unavailable, no need to BUG.*/
-       if ((free > pa->pa_free && !pa->pa_error) || (free < pa->pa_free)) {
+       if (((free > pa->pa_free && !pa->pa_error) || (free < pa->pa_free)) &&
+           atomic_read(&sb->s_active) > 0) {
 -              ext4_error(sb, "pa free mismatch: [pa %p] "
 -                              "[phy %lu] [logic %lu] [len %u] [free %u] "
 -                              "[error %u] [inode %lu] [freed %u]", pa,