summaryrefslogtreecommitdiff
path: root/fs/ocfs2/refcounttree.h
diff options
context:
space:
mode:
authorTristan Ye <tristan.ye@oracle.com>2011-05-24 16:21:20 +0800
committerTristan Ye <tristan.ye@oracle.com>2011-05-25 15:17:08 +0800
commit3e19a25e0591a6248f3ddd2c08566666607d827d (patch)
treecd01e54a18f4f91e1ae14fccdbc564ee7ce1b09b /fs/ocfs2/refcounttree.h
parentd24a10b9f8ed548981696cd36e2b4f16e6f360b1 (diff)
downloadlwn-3e19a25e0591a6248f3ddd2c08566666607d827d.tar.gz
lwn-3e19a25e0591a6248f3ddd2c08566666607d827d.zip
Ocfs2/refcounttree: Publicize couple of funcs from refcounttree.c
The original goal of commonizing these funcs is to benefit defraging/extent_moving codes in the future, based on the fact that reflink and defragmentation having the same Copy-On-Wrtie mechanism. Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Diffstat (limited to 'fs/ocfs2/refcounttree.h')
-rw-r--r--fs/ocfs2/refcounttree.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/ocfs2/refcounttree.h b/fs/ocfs2/refcounttree.h
index c8ce46f7d8e3..7754608c83a4 100644
--- a/fs/ocfs2/refcounttree.h
+++ b/fs/ocfs2/refcounttree.h
@@ -84,6 +84,17 @@ int ocfs2_refcount_cow_xattr(struct inode *inode,
struct buffer_head *ref_root_bh,
u32 cpos, u32 write_len,
struct ocfs2_post_refcount *post);
+int ocfs2_duplicate_clusters_by_page(handle_t *handle,
+ struct file *file,
+ u32 cpos, u32 old_cluster,
+ u32 new_cluster, u32 new_len);
+int ocfs2_duplicate_clusters_by_jbd(handle_t *handle,
+ struct file *file,
+ u32 cpos, u32 old_cluster,
+ u32 new_cluster, u32 new_len);
+int ocfs2_cow_sync_writeback(struct super_block *sb,
+ struct inode *inode,
+ u32 cpos, u32 num_clusters);
int ocfs2_add_refcount_flag(struct inode *inode,
struct ocfs2_extent_tree *data_et,
struct ocfs2_caching_info *ref_ci,