xfs: t_firstblock is tracking AGs not blocks
authorDave Chinner <dchinner@redhat.com>
Fri, 10 Feb 2023 17:11:06 +0000 (04:11 +1100)
committerDave Chinner <dchinner@redhat.com>
Fri, 10 Feb 2023 17:11:06 +0000 (04:11 +1100)
commit692b6cddeb65a5170c1e63d25b1ffb7822e80f7d
treef900390ee9a61274d1edd405cdf53f2c13e8b35b
parent36b6ad2d9cb81b0d52ae1598286ca5809cd39003
xfs: t_firstblock is tracking AGs not blocks

The tp->t_firstblock field is now raelly tracking the highest AG we
have locked, not the block number of the highest allocation we've
made. It's purpose is to prevent AGF locking deadlocks, so rename it
to "highest AG" and simplify the implementation to just track the
agno rather than a fsbno.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_trace.h
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h