Whamcloud - gitweb
LU-10837 ldiskfs: skip bitmap check if block bitmap is uninitialized
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles12sp3 / ext4-mballoc-extra-checks.patch
index cde9058..2092afc 100644 (file)
@@ -164,7 +164,7 @@ Index: linux-3.10.0-123.el7.x86_64/fs/ext4/mballoc.c
 +      unsigned short i, first, free = 0;
 +      unsigned short free_in_gdp = ext4_free_group_clusters(sb, gdp);
 +
-+      if (free_in_gdp == 0 && gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))
++      if (gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT))
 +              return 0;
 +
 +      i = mb_find_next_zero_bit(bitmap, max, 0);