diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-09-20 23:25:14 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 23:09:51 -0400 |
commit | bd50873dc725a9fa72592ecc986c58805e823051 (patch) | |
tree | 8d2d4d514f73b6425bf0bf5bd1806949b84a2489 /fs/ocfs2/refcounttree.h | |
parent | 64871b8d62570fabec3b0959d494f8e0b87f5c4b (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.h | 4 |
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); |
102 | int 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 */ |