xfs: consolidate q_qlock locking in xfs_qm_dqget and xfs_qm_dqget_inode

Move taking q_qlock from the cache lookup / insert helpers into the
main functions and do it just before returning to the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
Christoph Hellwig 2025-11-10 14:22:59 +01:00 • committed by Carlos Maiolino
commit 0494f04643