Linux 6.13-rc7
[linux.git] / fs / btrfs / scrub.h
blobf0df597b75c7c747c320db01551c761431c6f2ae
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef BTRFS_SCRUB_H
4 #define BTRFS_SCRUB_H
6 #include <linux/types.h>
8 struct btrfs_fs_info;
9 struct btrfs_device;
10 struct btrfs_scrub_progress;
12 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
13 u64 end, struct btrfs_scrub_progress *progress,
14 int readonly, int is_dev_replace);
15 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
16 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
17 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
18 int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
19 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
20 struct btrfs_scrub_progress *progress);
22 #endif