@@ -3801,7 +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 */
-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);
int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
@@ -53,4 +53,5 @@ 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);
+void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
#endif /* BTRFS_SCRUB_H */
@@ -22,6 +22,7 @@
#include "block-group.h"
#include "space-info.h"
#include "zoned.h"
+#include "scrub.h"
#define BTRFS_ROOT_TRANS_TAG 0
@@ -33,6 +33,7 @@
#include "block-group.h"
#include "discard.h"
#include "zoned.h"
+#include "scrub.h"
const struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {
[BTRFS_RAID_RAID10] = {
Now that we have a scrub.h move btrfs_scrub_pause()'s definition there. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> --- fs/btrfs/ctree.h | 1 - fs/btrfs/scrub.h | 1 + fs/btrfs/transaction.c | 1 + fs/btrfs/volumes.c | 1 + 4 files changed, 3 insertions(+), 1 deletion(-)