aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig2017-11-03 10:34:38 -0700
committerDarrick J. Wong2017-11-06 11:53:38 -0800
commitbf99971c8200fcb3e16d880194f5d559aca09576 (patch)
treecc5eb85be258b934244cdca96ede8748151bca9f
parent1bfd7618cbf2de630c845f60f5370671c2cd1c5d (diff)
xfs: remove a duplicate assignment in xfs_bmap_add_extent_delay_real
Reported-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
-rw-r--r--fs/xfs/libxfs/xfs_bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index db369653eb50..e1d61face277 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);