]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: remove xfs_qm_dqput and optimize dropping dquot references
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Nov 2025 13:22:58 +0000 (14:22 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 11 Nov 2025 10:45:58 +0000 (11:45 +0100)
commit6b6e6e75211687c61c5660f65b4155cd0eb7e187
treec89987b864191490558d51ed7b2b0d0a42135d78
parent0c5e80bd579f7bec3704bad6c1f72b13b0d73b53
xfs: remove xfs_qm_dqput and optimize dropping dquot references

With the new lockref-based dquot reference counting, there is no need to
hold q_qlock for dropping the reference.  Make xfs_qm_dqrele the main
function to drop dquot references without taking q_qlock and convert all
callers of xfs_qm_dqput to unlock q_qlock and call xfs_qm_dqrele instead.

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