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)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Feb 2024 04:44:50 +0000 (23:44 -0500)
commit8208c41c43ad5e9b63dce6c45a73e326109ca658
tree28dc6d7f2a9476c8673ae382a7810d111a340404
parent4fbf8bc733d14bceb16dda46a3f5e19c6a9621c5
ext4: fold quota accounting into ext4_xattr_inode_lookup_create()

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>
fs/ext4/xattr.c