OSDN Git Service

27019d86b53937a0e9df8803228b735845301b05
[tomoyo/tomoyo-test1.git] / fs / btrfs / scrub.h
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 /*
17  * The following functions are temporary exports to avoid warning on unused
18  * static functions.
19  */
20 struct scrub_stripe;
21 int init_scrub_stripe(struct btrfs_fs_info *fs_info, struct scrub_stripe *stripe);
22 void wait_scrub_stripe_io(struct scrub_stripe *stripe);
23 int scrub_find_fill_first_stripe(struct btrfs_block_group *bg,
24                                  struct btrfs_device *dev, u64 physical,
25                                  int mirror_num, u64 logical_start,
26                                  u32 logical_len, struct scrub_stripe *stripe);
27
28 #endif