blob: bcc730a06cb5847c4b052baf4deb6bd3a02970a8 [file] [log] [blame]
David Sterba9888c342018-04-03 19:16:55 +02001/* SPDX-License-Identifier: GPL-2.0 */
Stefan Behrens5db02762011-11-01 17:04:16 +01002/*
3 * Copyright (C) STRATO AG 2011. All rights reserved.
Stefan Behrens5db02762011-11-01 17:04:16 +01004 */
5
David Sterba9888c342018-04-03 19:16:55 +02006#ifndef BTRFS_CHECK_INTEGRITY_H
7#define BTRFS_CHECK_INTEGRITY_H
Stefan Behrens5db02762011-11-01 17:04:16 +01008
9#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
Mike Christie4e49ea42016-06-05 14:31:41 -050010void btrfsic_submit_bio(struct bio *bio);
11int btrfsic_submit_bio_wait(struct bio *bio);
Stefan Behrens5db02762011-11-01 17:04:16 +010012#else
Stefan Behrens5db02762011-11-01 17:04:16 +010013#define btrfsic_submit_bio submit_bio
Kent Overstreetc170bbb2013-11-24 16:32:22 -070014#define btrfsic_submit_bio_wait submit_bio_wait
Stefan Behrens5db02762011-11-01 17:04:16 +010015#endif
16
Jeff Mahoney2ff7e612016-06-22 18:54:24 -040017int btrfsic_mount(struct btrfs_fs_info *fs_info,
Stefan Behrens5db02762011-11-01 17:04:16 +010018 struct btrfs_fs_devices *fs_devices,
19 int including_extent_data, u32 print_mask);
Jeff Mahoney2ff7e612016-06-22 18:54:24 -040020void btrfsic_unmount(struct btrfs_fs_devices *fs_devices);
Stefan Behrens5db02762011-11-01 17:04:16 +010021
22#endif