xfs: convert unwritten status of reverse mappings for shared files
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:48 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Oct 2016 23:26:29 +0000 (16:26 -0700)
commit3f165b334e51477d2b33ac1c81b39927514daab7
treed41f7847f6a185673853d50fd0ceeaecca0fc7ea
parentceeb9c832eeca5c1c2efc54a38f67283ccb60288
xfs: convert unwritten status of reverse mappings for shared files

Provide a function to convert an unwritten extent to a real one and
vice versa when shared extents are possible.

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