diff options
author | 2023-02-11 04:11:06 +1100 | |
---|---|---|
committer | 2023-02-11 04:11:06 +1100 | |
commit | 692b6cddeb65a5170c1e63d25b1ffb7822e80f7d (patch) | |
tree | f900390ee9a61274d1edd405cdf53f2c13e8b35b /fs/xfs/xfs_bmap_util.c | |
parent | xfs: drop firstblock constraints from allocation setup (diff) | |
download | linux-692b6cddeb65a5170c1e63d25b1ffb7822e80f7d.tar.gz linux-692b6cddeb65a5170c1e63d25b1ffb7822e80f7d.tar.bz2 linux-692b6cddeb65a5170c1e63d25b1ffb7822e80f7d.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 867645b74d88..a09dd2606479 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c @@ -1410,7 +1410,7 @@ xfs_swap_extent_rmap( /* Unmap the old blocks in the source file. */ while (tirec.br_blockcount) { - ASSERT(tp->t_firstblock == NULLFSBLOCK); + ASSERT(tp->t_highest_agno == NULLAGNUMBER); trace_xfs_swap_extent_rmap_remap_piece(tip, &tirec); /* Read extent from the source file */ |