From bc5dec54daf123bece173607b56f2772e8682144 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 16 Nov 2017 22:11:34 -0600 Subject: [PATCH] xfs: remove a duplicate assignment in xfs_bmap_add_extent_delay_real Source kernel commit: bf99971c8200fcb3e16d880194f5d559aca09576 Reported-by: Brian Foster Signed-off-by: Christoph Hellwig Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- libxfs/xfs_bmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index d91097ffa..84d5f21f8 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -1756,7 +1756,7 @@ xfs_bmap_add_extent_delay_real( LEFT.br_blockcount += new->br_blockcount; xfs_iext_update_extent(bma->ip, state, bma->idx - 1, &LEFT); - PREV.br_blockcount = temp = PREV.br_blockcount - new->br_blockcount; + PREV.br_blockcount = temp; PREV.br_startoff += new->br_blockcount; PREV.br_startblock = nullstartblock(da_new); xfs_iext_update_extent(bma->ip, state, bma->idx, &PREV); -- 2.47.2