]> Gentwo Git Trees - linux/.git/commit
xfs: fold xfs_qm_dqattach_one into xfs_qm_dqget_inode
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Nov 2025 13:23:01 +0000 (14:23 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Nov 2025 10:45:58 +0000 (11:45 +0100)
commitbf5066e169eed0b7b705e3261a05db80f1b8358e
treee777ae4ca1178ec5248a78e6f8b3245326e10397
parentd0f93c0d7c9dc8f7fdbd1ce3f5d3bfd8e109da65
xfs: fold xfs_qm_dqattach_one into xfs_qm_dqget_inode

xfs_qm_dqattach_one is a thin wrapper around xfs_qm_dqget_inode.  Move
the extra asserts into xfs_qm_dqget_inode, drop the unneeded q_qlock
roundtrip and merge the two functions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_qm.c