]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ext4: fold quota accounting into ext4_xattr_inode_lookup_create()
authorJan Kara <jack@suse.cz>
Fri, 9 Feb 2024 11:20:59 +0000 (12:20 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:27 +0000 (16:27 +0200)
commitd00962f677fc98b29a5136f524ea0157bf229a1e
tree9acf1f0adc5cd054da3018fa7fda78ebf21283c5
parent4510efc4e2154877f53aa950930606c0e44b90e9
ext4: fold quota accounting into ext4_xattr_inode_lookup_create()

BugLink: https://bugs.launchpad.net/bugs/2075154
When allocating EA inode, quota accounting is done just before
ext4_xattr_inode_lookup_create(). Logically these two operations belong
together so just fold quota accounting into
ext4_xattr_inode_lookup_create(). We also make
ext4_xattr_inode_lookup_create() return the looked up / created inode to
convert the function to a more standard calling convention.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240209112107.10585-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 8208c41c43ad5e9b63dce6c45a73e326109ca658)
[diewald: prerequisite commit for 0a46ef234756 ext4: do not create EA
inode under buffer lock]
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/ext4/xattr.c