summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rmap_item.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 16:11:48 (GMT)
committerDarrick J. Wong <darrick.wong@oracle.com>2016-10-05 23:26:29 (GMT)
commit3f165b334e51477d2b33ac1c81b39927514daab7 (patch)
treed41f7847f6a185673853d50fd0ceeaecca0fc7ea /fs/xfs/xfs_rmap_item.c
parentceeb9c832eeca5c1c2efc54a38f67283ccb60288 (diff)
downloadlinux-3f165b334e51477d2b33ac1c81b39927514daab7.tar.xz
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_rmap_item.c b/fs/xfs/xfs_rmap_item.c
index 3b8742e..73c8278 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;