|
|
@@ -6499,6 +6499,15 @@ xfs_bmap_finish_one(
|
|
|
xfs_fsblock_t firstfsb;
|
|
|
int error = 0;
|
|
|
|
|
|
+ /*
|
|
|
+ * firstfsb is tied to the transaction lifetime and is used to
|
|
|
+ * ensure correct AG locking order and schedule work item
|
|
|
+ * continuations. XFS_BUI_MAX_FAST_EXTENTS (== 1) restricts us
|
|
|
+ * to only making one bmap call per transaction, so it should
|
|
|
+ * be safe to have it as a local variable here.
|
|
|
+ */
|
|
|
+ firstfsb = NULLFSBLOCK;
|
|
|
+
|
|
|
trace_xfs_bmap_deferred(tp->t_mountp,
|
|
|
XFS_FSB_TO_AGNO(tp->t_mountp, startblock), type,
|
|
|
XFS_FSB_TO_AGBNO(tp->t_mountp, startblock),
|