summaryrefslogtreecommitdiff
path: root/fs/btrfs/check-integrity.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-04-04 06:45:18 +0200
committerDavid Sterba <dsterba@suse.com>2022-05-16 17:03:12 +0200
commit58ff51f148ec498758d66c226cb2f7a065b36478 (patch)
treef6f5fca79c1b748fcc93d38a5ff1a80400e57a12 /fs/btrfs/check-integrity.h
parent57906d58e2b5a109d30be8e27c88c2648caea2a9 (diff)
btrfs: check-integrity: split submit_bio from btrfsic checking
Require a separate call to the integrity checking helpers from the actual bio submission. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/check-integrity.h')
-rw-r--r--fs/btrfs/check-integrity.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/check-integrity.h b/fs/btrfs/check-integrity.h
index bcc730a06cb5..e4c8aed7996f 100644
--- a/fs/btrfs/check-integrity.h
+++ b/fs/btrfs/check-integrity.h
@@ -7,11 +7,9 @@
#define BTRFS_CHECK_INTEGRITY_H
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
-void btrfsic_submit_bio(struct bio *bio);
-int btrfsic_submit_bio_wait(struct bio *bio);
+void btrfsic_check_bio(struct bio *bio);
#else
-#define btrfsic_submit_bio submit_bio
-#define btrfsic_submit_bio_wait submit_bio_wait
+static inline void btrfsic_check_bio(struct bio *bio) { }
#endif
int btrfsic_mount(struct btrfs_fs_info *fs_info,