xfs: add BMAPI_NORMAP flag to perform block remapping without updating rmapbt
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 May 2018 17:02:32 +0000 (10:02 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 May 2018 00:57:05 +0000 (17:57 -0700)
commit95eb308caa0ff7c4a0a86053422934737e6e6dc7
tree7c38348d074640afca1c147cd4144bc765abaaf9
parent08daa3ccf541b8cc59d198daaccefae17fe565ae
xfs: add BMAPI_NORMAP flag to perform block remapping without updating rmapbt

Add a new flag, XFS_BMAPI_NORMAP, which will perform file block
remapping without updating the rmapbt.  This will be used by the repair
code to reconstruct bmbts from the rmapbt, in which case we don't want
the rmapbt update.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h