]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: t_firstblock is tracking AGs not blocks
authorDave Chinner <dchinner@redhat.com>
Tue, 9 May 2023 09:29:40 +0000 (11:29 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 9 May 2023 18:15:44 +0000 (20:15 +0200)
commit9cdecd7e7ab388c811073946795a48ed329f2312
treee5383f3d562b052822d04c0219596aebdc1f4302
parent80375d24686d626e3404a685c35c1e3a3a3e9173
xfs: t_firstblock is tracking AGs not blocks

Source kernel commit: 692b6cddeb65a5170c1e63d25b1ffb7822e80f7d

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
include/xfs_trans.h
libxfs/trans.c
libxfs/xfs_alloc.c
libxfs/xfs_bmap.c
libxfs/xfs_bmap_btree.c
libxfs/xfs_btree.c