diff options
author | Dave Chinner <dchinner@redhat.com> | 2023-02-10 20:11:06 +0300 |
---|---|---|
committer | Dave Chinner <dchinner@redhat.com> | 2023-02-10 20:11:06 +0300 |
commit | 692b6cddeb65a5170c1e63d25b1ffb7822e80f7d (patch) | |
tree | f900390ee9a61274d1edd405cdf53f2c13e8b35b /fs/xfs/xfs_reflink.c | |
parent | 36b6ad2d9cb81b0d52ae1598286ca5809cd39003 (diff) | |
download | linux-692b6cddeb65a5170c1e63d25b1ffb7822e80f7d.tar.xz |
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_reflink.c')
-rw-r--r-- | fs/xfs/xfs_reflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index 5535778a98f9..57bf59ff4854 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -610,7 +610,7 @@ xfs_reflink_cancel_cow_blocks( if (error) break; } else if (del.br_state == XFS_EXT_UNWRITTEN || cancel_real) { - ASSERT((*tpp)->t_firstblock == NULLFSBLOCK); + ASSERT((*tpp)->t_highest_agno == NULLAGNUMBER); /* Free the CoW orphan record. */ xfs_refcount_free_cow_extent(*tpp, del.br_startblock, |