@@ -3801,9 +3801,6 @@ struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info,
int btrfs_should_ignore_reloc_root(struct btrfs_root *root);
/* scrub.c */
-int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
- u64 end, struct btrfs_scrub_progress *progress,
- int readonly, int is_dev_replace);
void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
int btrfs_scrub_cancel(struct btrfs_fs_info *info);
@@ -23,6 +23,7 @@
#include "sysfs.h"
#include "zoned.h"
#include "block-group.h"
+#include "scrub.h"
/*
* Device replace overview
@@ -50,6 +50,7 @@
#include "block-group.h"
#include "subpage.h"
#include "zoned.h"
+#include "scrub.h"
#ifdef CONFIG_64BIT
/* If we have a 32-bit userspace and 64-bit kernel, then the UAPI
@@ -50,4 +50,7 @@ struct scrub_ctx {
void btrfs_scrub_submit(struct scrub_ctx *sctx);
void btrfs_scrub_wr_submit(struct scrub_ctx *sctx);
+int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
+ u64 end, struct btrfs_scrub_progress *progress,
+ int readonly, int is_dev_replace);
#endif /* BTRFS_SCRUB_H */
Now that we have a scrub.h move btrfs_scrub_dev()'s definition there. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> --- fs/btrfs/ctree.h | 3 --- fs/btrfs/dev-replace.c | 1 + fs/btrfs/ioctl.c | 1 + fs/btrfs/scrub.h | 3 +++ 4 files changed, 5 insertions(+), 3 deletions(-)