From: Chandan Babu R <redacted>
Source kernel commit: bcc561f21f115437a010307420fc43d91be91c66
Removing an initial range of source/donor file's extent and adding a new
extent (from donor/source file) in its place will cause extent count to
increase by 1.
Reviewed-by: Darrick J. Wong <redacted>
Reviewed-by: Allison Henderson <redacted>
Signed-off-by: Chandan Babu R <redacted>
Signed-off-by: Darrick J. Wong <redacted>
Signed-off-by: Allison Henderson <redacted>
---
libxfs/xfs_inode_fork.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libxfs/xfs_inode_fork.h b/libxfs/xfs_inode_fork.h
index c8f279e..9e2137c 100644
--- a/libxfs/xfs_inode_fork.h
+++ b/libxfs/xfs_inode_fork.h
@@ -89,6 +89,13 @@ struct xfs_ifork {
#define XFS_IEXT_REFLINK_END_COW_CNT (2)
/*
+ * Removing an initial range of source/donor file's extent and adding a new
+ * extent (from donor/source file) in its place will cause extent count to
+ * increase by 1.
+ */
+#define XFS_IEXT_SWAP_RMAP_CNT (1)
+
+/*
* Fork handling.
*/
--
2.7.4