From: Christoph Hellwig Date: Fri, 3 Nov 2017 17:34:38 +0000 (-0700) Subject: xfs: remove a duplicate assignment in xfs_bmap_add_extent_delay_real X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bf99971c8200fcb3e16d880194f5d559aca09576;p=linux.git xfs: remove a duplicate assignment in xfs_bmap_add_extent_delay_real Reported-by: Brian Foster Signed-off-by: Christoph Hellwig Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index db369653eb505..e1d61face277a 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -1765,7 +1765,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);