]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: wrap inode creation dqalloc calls
authorDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:22:39 +0000 (11:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 2 Jul 2024 18:36:57 +0000 (11:36 -0700)
commitc0223b8d66d2b3e8fed86fd80699ef2fef3e53af
treee31938ee05e5a598cc51d6bc8eb311e40f1dbfec
parentdfaf884233ba726bf389cbf6f629b3a3a7a93923
xfs: wrap inode creation dqalloc calls

Create a helper that calls dqalloc to allocate and grab a reference to
dquots for the user, group, and project ids listed in an icreate
structure.  This simplifies the creat-related dqalloc callsites
scattered around the code base.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/tempfile.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_symlink.c