xfs: simplify the rmap code in xfs_bmse_merge
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 Aug 2017 23:06:36 +0000 (16:06 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Sep 2017 20:08:26 +0000 (13:08 -0700)
commit4cc1ee5e654114aa7fac6993488ad2cd0b3411bb
tree432eba2d842e0f29626032d76cfe2ccdad2349ea
parentf91fb956f243086c7a95c508f01152c74c35f6ce
xfs: simplify the rmap code in xfs_bmse_merge

In Christoph's patch to refactor xfs_bmse_merge, the updated rmap code
does more work than it needs to (because map-extent auto-merges
records).  Remove the unnecessary unmap and save ourselves a deferred
op.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_bmap.c