diff options
author | Tristan Ye <tristan.ye@oracle.com> | 2011-05-24 10:21:20 +0200 |
---|---|---|
committer | Tristan Ye <tristan.ye@oracle.com> | 2011-05-25 09:17:08 +0200 |
commit | 3e19a25e0591a6248f3ddd2c08566666607d827d (patch) | |
tree | cd01e54a18f4f91e1ae14fccdbc564ee7ce1b09b /fs/ocfs2/refcounttree.h | |
parent | Ocfs2: Add a new code 'OCFS2_INFO_FREEFRAG' for o2info ioctl. (diff) | |
download | linux-3e19a25e0591a6248f3ddd2c08566666607d827d.tar.xz linux-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.h | 11 |
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, |