4.18 has a credits check in xattr_set path with different math
resulting in false ENOSPC and subsequent failure to update LMA.
as a result - many tests fail on 4.18, especially with DNE.
Signed-off-by: Alexey Zhuravlev <bzzz@whamcloud.com>
Change-Id: I82b19c0c24988aed66d74cf2323e93acffb14f31
Reviewed-on: https://review.whamcloud.com/35750
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
--- /dev/null
+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);
rhel8/ext4-simple-blockalloc.patch
rhel8/ext4-mballoc-skip-uninit-groups-cr0.patch
rhel8.1/ext4-mballoc-prefetch.patch
+rhel8/ext4-xattr-disable-credits-check.patch
rhel8/ext4-simple-blockalloc.patch
rhel8/ext4-mballoc-skip-uninit-groups-cr0.patch
rhel8/ext4-mballoc-prefetch.patch
+rhel8/ext4-xattr-disable-credits-check.patch