diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-11-05 11:33:06 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 17:15:41 -0500 |
commit | e93c89c1aaaaaec3487c4c18dd02360371790722 (patch) | |
tree | 359c310c736d0db5cfd724c628fdb9f2f680a3d3 /fs/btrfs/dev-replace.h | |
parent | ff023aac31198e88507d626825379b28ea481d4d (diff) |
Btrfs: add new sources for device replace code
This adds a new file to the sources together with the header file
and the changes to ioctl.h and ctree.h that are required by the
new C source file. Additionally, 4 new functions are added to
volume.c that deal with device creation and destruction.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
-rw-r--r-- | fs/btrfs/dev-replace.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/btrfs/dev-replace.h b/fs/btrfs/dev-replace.h index 1fb5c89037ee..20035cbbf021 100644 --- a/fs/btrfs/dev-replace.h +++ b/fs/btrfs/dev-replace.h | |||
@@ -19,6 +19,24 @@ | |||
19 | #if !defined(__BTRFS_DEV_REPLACE__) | 19 | #if !defined(__BTRFS_DEV_REPLACE__) |
20 | #define __BTRFS_DEV_REPLACE__ | 20 | #define __BTRFS_DEV_REPLACE__ |
21 | 21 | ||
22 | struct btrfs_ioctl_dev_replace_args; | ||
23 | |||
24 | int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info); | ||
25 | int btrfs_run_dev_replace(struct btrfs_trans_handle *trans, | ||
26 | struct btrfs_fs_info *fs_info); | ||
27 | void btrfs_after_dev_replace_commit(struct btrfs_fs_info *fs_info); | ||
28 | int btrfs_dev_replace_start(struct btrfs_root *root, | ||
29 | struct btrfs_ioctl_dev_replace_args *args); | ||
30 | void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info, | ||
31 | struct btrfs_ioctl_dev_replace_args *args); | ||
32 | int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info, | ||
33 | struct btrfs_ioctl_dev_replace_args *args); | ||
34 | void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info); | ||
35 | int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info); | ||
36 | int btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace); | ||
37 | void btrfs_dev_replace_lock(struct btrfs_dev_replace *dev_replace); | ||
38 | void btrfs_dev_replace_unlock(struct btrfs_dev_replace *dev_replace); | ||
39 | |||
22 | static inline void btrfs_dev_replace_stats_inc(atomic64_t *stat_value) | 40 | static inline void btrfs_dev_replace_stats_inc(atomic64_t *stat_value) |
23 | { | 41 | { |
24 | atomic64_inc(stat_value); | 42 | atomic64_inc(stat_value); |