Whamcloud - gitweb
LU-7922 ldiskfs: correction in ext4_kzalloc
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / sles11sp2 / ext4-introduce-ext4_kvmalloc-ext4_kzalloc-and-ext4_kvfree.patch
index 3da7dac..30cb1e7 100644 (file)
@@ -42,7 +42,7 @@ index cfe9f39..658f586 100644
 +{
 +      void *ret;
 +
-+      ret = kmalloc(size, flags);
++      ret = kmalloc(size, flags | __GFP_NOWARN);
 +      if (!ret)
 +              ret = __vmalloc(size, flags, PAGE_KERNEL);
 +      return ret;
@@ -52,7 +52,7 @@ index cfe9f39..658f586 100644
 +{
 +      void *ret;
 +
-+      ret = kmalloc(size, flags);
++      ret = kzalloc(size, flags | __GFP_NOWARN);
 +      if (!ret)
 +              ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL);
 +      return ret;