Commit 2fc6822c authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba
Browse files

btrfs: move scrub prototypes into scrub.h



Move these out of ctree.h into scrub.h to cut down on code in ctree.h.

Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 67707479
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -732,17 +732,6 @@ static inline unsigned long get_eb_page_index(unsigned long offset)
#define EXPORT_FOR_TESTS
#endif

/* 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);
int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
			 struct btrfs_scrub_progress *progress);

/* dev-replace.c */
void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include "block-group.h"
#include "fs.h"
#include "accessors.h"
#include "scrub.h"

/*
 * Device replace overview
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@
#include "defrag.h"
#include "uuid-tree.h"
#include "relocation.h"
#include "scrub.h"

#define BTRFS_SUPER_FLAG_SUPP	(BTRFS_HEADER_FLAG_WRITTEN |\
				 BTRFS_HEADER_FLAG_RELOC |\
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@
#include "uuid-tree.h"
#include "ioctl.h"
#include "file.h"
#include "scrub.h"

#ifdef CONFIG_64BIT
/* If we have a 32-bit userspace and 64-bit kernel, then the UAPI
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include "fs.h"
#include "accessors.h"
#include "file-item.h"
#include "scrub.h"

/*
 * This is only the first step towards a full-features scrub. It reads all
Loading