David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) STRATO AG 2011. All rights reserved. |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 6 | #ifndef BTRFS_CHECK_INTEGRITY_H |
| 7 | #define BTRFS_CHECK_INTEGRITY_H |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 8 | |
| 9 | #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY |
Mike Christie | 4e49ea4 | 2016-06-05 14:31:41 -0500 | [diff] [blame] | 10 | void btrfsic_submit_bio(struct bio *bio); |
| 11 | int btrfsic_submit_bio_wait(struct bio *bio); |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 12 | #else |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 13 | #define btrfsic_submit_bio submit_bio |
Kent Overstreet | c170bbb | 2013-11-24 16:32:22 -0700 | [diff] [blame] | 14 | #define btrfsic_submit_bio_wait submit_bio_wait |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 15 | #endif |
| 16 | |
Jeff Mahoney | 2ff7e61 | 2016-06-22 18:54:24 -0400 | [diff] [blame] | 17 | int btrfsic_mount(struct btrfs_fs_info *fs_info, |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 18 | struct btrfs_fs_devices *fs_devices, |
| 19 | int including_extent_data, u32 print_mask); |
Jeff Mahoney | 2ff7e61 | 2016-06-22 18:54:24 -0400 | [diff] [blame] | 20 | void btrfsic_unmount(struct btrfs_fs_devices *fs_devices); |
Stefan Behrens | 5db0276 | 2011-11-01 17:04:16 +0100 | [diff] [blame] | 21 | |
| 22 | #endif |