]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: return the dquot unlocked from xfs_qm_dqget
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Nov 2025 13:23:02 +0000 (14:23 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Nov 2025 10:45:58 +0000 (11:45 +0100)
commit55c1bc3eb9d0f39ea4c078b339a6228f5f62584b
treef56cd902f0f7ea86131ec1e8195d0f503f44063e
parentbf5066e169eed0b7b705e3261a05db80f1b8358e
xfs: return the dquot unlocked from xfs_qm_dqget

There is no reason to lock the dquot in xfs_qm_dqget, which just acquires
a reference.  Move the locking to the callers, or remove it in cases where
the caller instantly unlocks the dquot.

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/scrub/dqiterate.c
fs/xfs/scrub/quotacheck.c
fs/xfs/scrub/quotacheck_repair.c
fs/xfs/xfs_dquot.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm_bhv.c
fs/xfs/xfs_qm_syscalls.c