summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode-map.h
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-11-26 15:10:39 +0200
committerDavid Sterba <dsterba@suse.com>2020-12-09 19:16:05 +0100
commit5297199a8bca12b8b96afcbf2341605efb6005de (patch)
tree0ed53552eb19eddb8b3a7ded884ab7b135b8ed09 /fs/btrfs/inode-map.h
parentabadc1fcd72e887a8f875dabe4a07aa8c28ac8af (diff)
downloadlwn-5297199a8bca12b8b96afcbf2341605efb6005de.tar.gz
lwn-5297199a8bca12b8b96afcbf2341605efb6005de.zip
btrfs: remove inode number cache feature
It's been deprecated since commit b547a88ea577 ("btrfs: start deprecation of mount option inode_cache") which enumerates the reasons. A filesystem that uses the feature (mount -o inode_cache) tracks the inode numbers in bitmaps, that data stay on the filesystem after this patch. The size is roughly 5MiB for 1M inodes [1], which is considered small enough to be left there. Removal of the change can be implemented in btrfs-progs if needed. [1] https://lore.kernel.org/linux-btrfs/20201127145836.GZ6430@twin.jikos.cz/ Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> [ update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode-map.h')
-rw-r--r--fs/btrfs/inode-map.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/btrfs/inode-map.h b/fs/btrfs/inode-map.h
deleted file mode 100644
index 629baf9aefb1..000000000000
--- a/fs/btrfs/inode-map.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-
-#ifndef BTRFS_INODE_MAP_H
-#define BTRFS_INODE_MAP_H
-
-void btrfs_init_free_ino_ctl(struct btrfs_root *root);
-void btrfs_unpin_free_ino(struct btrfs_root *root);
-void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
-int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
-int btrfs_save_ino_cache(struct btrfs_root *root,
- struct btrfs_trans_handle *trans);
-
-#endif