aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/refcounttree.h
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2009-09-20 23:25:14 -0400
committerJoel Becker <joel.becker@oracle.com>2009-09-22 23:09:51 -0400
commitbd50873dc725a9fa72592ecc986c58805e823051 (patch)
tree8d2d4d514f73b6425bf0bf5bd1806949b84a2489 /fs/ocfs2/refcounttree.h
parent64871b8d62570fabec3b0959d494f8e0b87f5c4b (diff)
ocfs2: Add ioctl for reflink.
The ioctl will take 3 parameters: old_path, new_path and preserve and call vfs_reflink. It is useful when we backport reflink features to old kernels. Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/refcounttree.h')
-rw-r--r--fs/ocfs2/refcounttree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/refcounttree.h b/fs/ocfs2/refcounttree.h
index 2c238e682570..c1d19b1d3ecc 100644
--- a/fs/ocfs2/refcounttree.h
+++ b/fs/ocfs2/refcounttree.h
@@ -99,4 +99,8 @@ int ocfs2_increase_refcount(handle_t *handle,
99 u64 cpos, u32 len, 99 u64 cpos, u32 len,
100 struct ocfs2_alloc_context *meta_ac, 100 struct ocfs2_alloc_context *meta_ac,
101 struct ocfs2_cached_dealloc_ctxt *dealloc); 101 struct ocfs2_cached_dealloc_ctxt *dealloc);
102int ocfs2_reflink_ioctl(struct inode *inode,
103 const char __user *oldname,
104 const char __user *newname,
105 bool preserve);
102#endif /* OCFS2_REFCOUNTTREE_H */ 106#endif /* OCFS2_REFCOUNTTREE_H */