Whamcloud - gitweb
LU-14776 ldiskfs: support Ubuntu 5.8.0-63
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ubuntu2004 / ext4-xattr-disable-credits-check.patch
1 diff -ur a/fs/ext4/xattr.c b/fs/ext4/xattr.c
2 --- a/fs/ext4/xattr.c   2021-12-04 15:34:36.356774600 -0700
3 +++ b/fs/ext4/xattr.c   2021-12-04 15:46:25.813868672 -0700
4 @@ -2325,10 +2325,6 @@
5                                                    flags & XATTR_CREATE);
6                 brelse(bh);
7  
8 -               if (jbd2_handle_buffer_credits(handle) < credits) {
9 -                       error = -ENOSPC;
10 -                       goto cleanup;
11 -               }
12                 WARN_ON_ONCE(!(current->flags & PF_MEMALLOC_NOFS));
13         }
14