]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita30eb52fe991f58601eaa971f92bc5894ad6f9bc
tree7c38348d074640afca1c147cd4144bc765abaaf9
parent67c82494b3623289ed2ccd03a6af2dd248a2c671
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