]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: refactor loading quota inodes in the regular case
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Aug 2024 22:37:17 +0000 (15:37 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:20 +0000 (08:58 -0700)
commit2c4162be6c10d3bc4884c211ae4787fc84c4fe3c
treef71cc479a13b9b4573c256fa5ff0ecbec83bc781
parent2ca7b9d7b80810b2b45b78b8a4b4fa78a1ddc2dd
xfs: refactor loading quota inodes in the regular case

Create a helper function to load quota inodes in the case where the
dqtype and the sb quota inode fields correspond.  This is true for
nearly all the iget callsites in the quota code, except for when we're
switching the group and project quota inodes.  We'll need this in
subsequent patches to make the metadir handling less convoluted.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm.h
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_quotaops.c