]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove a duplicate assignment in xfs_bmap_add_extent_delay_real
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Nov 2017 04:11:34 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:34 +0000 (22:11 -0600)
Source kernel commit: bf99971c8200fcb3e16d880194f5d559aca09576

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c

index d91097ffab25a052f07f4a54fc27c7bc99d3e460..84d5f21f83416243e794eb56ac04fd4b42fe3283 100644 (file)
@@ -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);