Commit fb2a836d authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba

btrfs: check-integrity: remove btrfsic_unmount() function

The function btrfsic_mount() is part of the deprecated check-integrity
functionality.

Now let's remove the main entry point of check-integrity, and thankfully
most of the check-integrity code is self-contained inside
check-integrity.c, we can safely remove the function without huge
changes to btrfs code base.
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent af32d363
...@@ -36,7 +36,6 @@ btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ ...@@ -36,7 +36,6 @@ btrfs-y += super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
lru_cache.o lru_cache.o
btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o btrfs-$(CONFIG_BTRFS_FS_POSIX_ACL) += acl.o
btrfs-$(CONFIG_BTRFS_FS_CHECK_INTEGRITY) += check-integrity.o
btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o btrfs-$(CONFIG_BTRFS_FS_REF_VERIFY) += ref-verify.o
btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o btrfs-$(CONFIG_BLK_DEV_ZONED) += zoned.o
btrfs-$(CONFIG_FS_VERITY) += verity.o btrfs-$(CONFIG_FS_VERITY) += verity.o
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "volumes.h" #include "volumes.h"
#include "raid56.h" #include "raid56.h"
#include "async-thread.h" #include "async-thread.h"
#include "check-integrity.h"
#include "dev-replace.h" #include "dev-replace.h"
#include "rcu-string.h" #include "rcu-string.h"
#include "zoned.h" #include "zoned.h"
......
This diff is collapsed.
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) STRATO AG 2011. All rights reserved.
*/
#ifndef BTRFS_CHECK_INTEGRITY_H
#define BTRFS_CHECK_INTEGRITY_H
void btrfsic_unmount(struct btrfs_fs_devices *fs_devices);
#endif
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "print-tree.h" #include "print-tree.h"
#include "volumes.h" #include "volumes.h"
#include "async-thread.h" #include "async-thread.h"
#include "check-integrity.h"
#include "dev-replace.h" #include "dev-replace.h"
#include "sysfs.h" #include "sysfs.h"
#include "zoned.h" #include "zoned.h"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "tree-log.h" #include "tree-log.h"
#include "free-space-cache.h" #include "free-space-cache.h"
#include "free-space-tree.h" #include "free-space-tree.h"
#include "check-integrity.h"
#include "rcu-string.h" #include "rcu-string.h"
#include "dev-replace.h" #include "dev-replace.h"
#include "raid56.h" #include "raid56.h"
...@@ -4400,11 +4399,6 @@ void __cold close_ctree(struct btrfs_fs_info *fs_info) ...@@ -4400,11 +4399,6 @@ void __cold close_ctree(struct btrfs_fs_info *fs_info)
iput(fs_info->btree_inode); iput(fs_info->btree_inode);
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
if (btrfs_test_opt(fs_info, CHECK_INTEGRITY))
btrfsic_unmount(fs_info->fs_devices);
#endif
btrfs_mapping_tree_free(&fs_info->mapping_tree); btrfs_mapping_tree_free(&fs_info->mapping_tree);
btrfs_close_devices(fs_info->fs_devices); btrfs_close_devices(fs_info->fs_devices);
} }
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "ctree.h" #include "ctree.h"
#include "btrfs_inode.h" #include "btrfs_inode.h"
#include "bio.h" #include "bio.h"
#include "check-integrity.h"
#include "locking.h" #include "locking.h"
#include "rcu-string.h" #include "rcu-string.h"
#include "backref.h" #include "backref.h"
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include "backref.h" #include "backref.h"
#include "extent_io.h" #include "extent_io.h"
#include "dev-replace.h" #include "dev-replace.h"
#include "check-integrity.h"
#include "raid56.h" #include "raid56.h"
#include "block-group.h" #include "block-group.h"
#include "zoned.h" #include "zoned.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment