We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1485f72 commit 8994d11Copy full SHA for 8994d11
fs/ext4/inode.c
@@ -5945,6 +5945,14 @@ static int __ext4_expand_extra_isize(struct inode *inode,
5945
return 0;
5946
}
5947
5948
+ /*
5949
+ * We may need to allocate external xattr block so we need quotas
5950
+ * initialized. Here we can be called with various locks held so we
5951
+ * cannot affort to initialize quotas ourselves. So just bail.
5952
+ */
5953
+ if (dquot_initialize_needed(inode))
5954
+ return -EAGAIN;
5955
+
5956
/* try to expand with EAs present */
5957
error = ext4_expand_extra_isize_ea(inode, new_extra_isize,
5958
raw_inode, handle);
0 commit comments