Whamcloud - gitweb
LU-10837 ldiskfs: skip bitmap check if block bitmap is uninitialized
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles11sp2 / ext4-mballoc-extra-checks.patch
index 69af7c4..06029db 100644 (file)
 +      unsigned short i, first, free = 0;
 +      unsigned short free_in_gdp = ext4_free_blks_count(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);