xfs: Increase XFS_QM_TRANS_MAXDQS to 5
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 15 Apr 2024 21:55:12 +0000 (14:55 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:59:01 +0000 (14:59 -0700)
commitf103df763563ad6849307ed5985d1513acc586dd
tree6fca26e77c2133112950a495c62501afff291da0
parent7560c937b4b5a3c671053be86ff00156a6fdd399
xfs: Increase XFS_QM_TRANS_MAXDQS to 5

With parent pointers enabled, a rename operation can update up to 5
inodes: src_dp, target_dp, src_ip, target_ip and wip.  This causes
their dquots to a be attached to the transaction chain, so we need
to increase XFS_QM_TRANS_MAXDQS.  This patch also add a helper
function xfs_dqlockn to lock an arbitrary number of dquots.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_dquot.h
fs/xfs/xfs_qm.h
fs/xfs/xfs_trans_dquot.c