diff mbox series

[16/21] btrfs: move btrfs_scrub_dev() definition to scrub.h

Message ID 4344c424f8638151bc1faeae080644a7dd1f488a.1637745470.git.johannes.thumshirn@wdc.com (mailing list archive)
State New, archived
Headers show
Series btrfs: first batch of zoned cleanups | expand

Commit Message

Johannes Thumshirn Nov. 24, 2021, 9:30 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index f1dd2486dcb37..c050c47131760 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -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);
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c
index 1fcc5d57e96ef..bb325334333a7 100644
--- a/fs/btrfs/dev-replace.c
+++ b/fs/btrfs/dev-replace.c
@@ -23,6 +23,7 @@ 
 #include "sysfs.h"
 #include "zoned.h"
 #include "block-group.h"
+#include "scrub.h"
 
 /*
  * Device replace overview
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index d7f710e57890e..cc2e1297ca250 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -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
diff --git a/fs/btrfs/scrub.h b/fs/btrfs/scrub.h
index 8d17fac108556..9ff9d3e033b25 100644
--- a/fs/btrfs/scrub.h
+++ b/fs/btrfs/scrub.h
@@ -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 */