diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 09:11:48 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-05 16:26:29 -0700 |
commit | 3f165b334e51477d2b33ac1c81b39927514daab7 (patch) | |
tree | d41f7847f6a185673853d50fd0ceeaecca0fc7ea /fs/xfs/xfs_rmap_item.c | |
parent | ceeb9c832eeca5c1c2efc54a38f67283ccb60288 (diff) | |
download | blackbird-obmc-linux-3f165b334e51477d2b33ac1c81b39927514daab7.tar.gz blackbird-obmc-linux-3f165b334e51477d2b33ac1c81b39927514daab7.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_rmap_item.c')
-rw-r--r-- | fs/xfs/xfs_rmap_item.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_rmap_item.c b/fs/xfs/xfs_rmap_item.c index 3b8742e48815..73c827831551 100644 --- a/fs/xfs/xfs_rmap_item.c +++ b/fs/xfs/xfs_rmap_item.c @@ -496,6 +496,9 @@ xfs_rui_recover( case XFS_RMAP_EXTENT_CONVERT: type = XFS_RMAP_CONVERT; break; + case XFS_RMAP_EXTENT_CONVERT_SHARED: + type = XFS_RMAP_CONVERT_SHARED; + break; case XFS_RMAP_EXTENT_ALLOC: type = XFS_RMAP_ALLOC; break; |