Whamcloud - gitweb
LU-15083 ldiskfs: disable xattr credits check
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / linux-5.4 / ext4-xattr-disable-credits-check.patch
1 Index: focal/fs/ext4/xattr.c
2 ===================================================================
3 --- focal.orig/fs/ext4/xattr.c
4 +++ focal/fs/ext4/xattr.c
5 @@ -2341,10 +2341,6 @@ ext4_xattr_set_handle(handle_t *handle,
6                                                    flags & XATTR_CREATE);
7                 brelse(bh);
8  
9 -               if (!ext4_handle_has_enough_credits(handle, credits)) {
10 -                       error = -ENOSPC;
11 -                       goto cleanup;
12 -               }
13                 WARN_ON_ONCE(!(current->flags & PF_MEMALLOC_NOFS));
14         }
15