xref: /openbmc/linux/fs/btrfs/scrub.h (revision 55b37d9c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef BTRFS_SCRUB_H
4 #define BTRFS_SCRUB_H
5 
6 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
7 		    u64 end, struct btrfs_scrub_progress *progress,
8 		    int readonly, int is_dev_replace);
9 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
10 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
11 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
12 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
13 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
14 			 struct btrfs_scrub_progress *progress);
15 
16 #endif
17