diff options
author | Tristan Ye <tristan.ye@oracle.com> | 2011-05-25 14:23:43 +0800 |
---|---|---|
committer | Tristan Ye <tristan.ye@oracle.com> | 2011-05-25 15:17:12 +0800 |
commit | 53069d4e76954e2e63c1b3c501051c6fbcf7298c (patch) | |
tree | 6b906eb22fef78636c7d4db7120370d7715f5aef /fs/ocfs2/move_extents.h | |
parent | ee16cc037e255801892481a2d0b7c1fff2adf1aa (diff) |
Ocfs2/move_extents: move/defrag extents within a certain range.
the basic logic of moving extents for a file is pretty like punching-hole
sequence, walk the extents within the range as user specified, calculating
an appropriate len to defrag/move, then let ocfs2_defrag/move_extent() to
do the actual moving.
This func ends up setting 'OCFS2_MOVE_EXT_FL_COMPLETE' to userpace if operation
gets done successfully.
Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
Diffstat (limited to 'fs/ocfs2/move_extents.h')
-rw-r--r-- | fs/ocfs2/move_extents.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/move_extents.h b/fs/ocfs2/move_extents.h index 27570f7f6909..4e143e811441 100644 --- a/fs/ocfs2/move_extents.h +++ b/fs/ocfs2/move_extents.h @@ -17,4 +17,6 @@ #ifndef OCFS2_MOVE_EXTENTS_H #define OCFS2_MOVE_EXTENTS_H +int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp); + #endif /* OCFS2_MOVE_EXTENTS_H */ |