Skip to content
Commit 110a045a authored by Tao Ma's avatar Tao Ma Committed by Joel Becker
Browse files

ocfs2: Add normal functions for reflink a normal file's extents.



2 major functions are added in this patch.

ocfs2_attach_refcount_tree will create a new refcount tree to the
old file if it doesn't have one and insert all the extent records
to the tree if they are not refcounted.

ocfs2_create_reflink_node will:
1. set the refcount tree to the new file.
2. call ocfs2_duplicate_extent_list which will iterate all the
   extents for the old file, insert it to the new file and increase
   the corresponding referennce count.

Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
parent 37f8a2bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment