Whamcloud - gitweb
LU-12652 ldiskfs: disable credits check in 4.18
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel8 / ext4-xattr-disable-credits-check.patch
diff --git a/ldiskfs/kernel_patches/patches/rhel8/ext4-xattr-disable-credits-check.patch b/ldiskfs/kernel_patches/patches/rhel8/ext4-xattr-disable-credits-check.patch
new file mode 100644 (file)
index 0000000..86fee40
--- /dev/null
@@ -0,0 +1,15 @@
+Index: linux-4.18.0-32.el8.x86_64/fs/ext4/xattr.c
+===================================================================
+--- linux-4.18.0-32.el8.x86_64.orig/fs/ext4/xattr.c
++++ linux-4.18.0-32.el8.x86_64/fs/ext4/xattr.c
+@@ -655,10 +655,6 @@ enum {
+                                                  flags & XATTR_CREATE);
+               brelse(bh);
+
+-              if (!ext4_handle_has_enough_credits(handle, credits)) {
+-                      error = -ENOSPC;
+-                      goto cleanup;
+-              }
+       }
+
+       error = ext4_reserve_inode_write(handle, inode, &is.iloc);