From: Brian Foster Date: Fri, 5 Oct 2018 02:36:09 +0000 (-0500) Subject: xfs: replace no-op firstblock init with ->t_firstblock X-Git-Tag: v4.19.0-rc0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7994b95e5c144e892f944fd5441b90d3c94234f;p=thirdparty%2Fxfsprogs-dev.git xfs: replace no-op firstblock init with ->t_firstblock Source kernel commit: fb91f4b5d6187996796f4a9989decdf6ead12851 xfs_refcount_recover_cow_leftovers() has no need for a firstblock variable and so passes an unrelated xfs_fsblock_t to xfs_defer_init() to avoid declaring one. Replace this no-op initialization with ->t_firstblock. This will be optimized away by the removal of the xfs_defer_init() firstblock param. Signed-off-by: Brian Foster Reviewed-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_refcount.c b/libxfs/xfs_refcount.c index 7132ee1d1..2cacb95bc 100644 --- a/libxfs/xfs_refcount.c +++ b/libxfs/xfs_refcount.c @@ -1690,7 +1690,7 @@ xfs_refcount_recover_cow_leftovers( trace_xfs_refcount_recover_extent(mp, agno, &rr->rr_rrec); /* Free the orphan record */ - xfs_defer_init(tp, &dfops, &fsb); + xfs_defer_init(tp, &dfops, &tp->t_firstblock); agbno = rr->rr_rrec.rc_startblock - XFS_REFC_COW_START; fsb = XFS_AGB_TO_FSB(mp, agno, agbno); error = xfs_refcount_free_cow_extent(mp, tp->t_dfops, fsb,