summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_extent_busy.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_extent_busy.c')
-rw-r--r--fs/xfs/xfs_extent_busy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c
index 3d5a57d7ac5e..2806fc6ab480 100644
--- a/fs/xfs/xfs_extent_busy.c
+++ b/fs/xfs/xfs_extent_busy.c
@@ -667,12 +667,14 @@ xfs_extent_busy_ag_cmp(
/* Are there any busy extents in this AG? */
bool
xfs_extent_busy_list_empty(
- struct xfs_perag *pag)
+ struct xfs_perag *pag,
+ unsigned *busy_gen)
{
bool res;
spin_lock(&pag->pagb_lock);
res = RB_EMPTY_ROOT(&pag->pagb_tree);
+ *busy_gen = READ_ONCE(pag->pagb_gen);
spin_unlock(&pag->pagb_lock);
return res;
}