提交 c7a03b52 编写于 作者: J Josef Bacik 提交者: David Sterba

btrfs: move uuid tree prototypes to uuid-tree.h

Move these out of ctree.h into uuid-tree.h to cut down on the code in
ctree.h.
Reviewed-by: NJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: NJosef Bacik <josef@toxicpanda.com>
Reviewed-by: NDavid Sterba <dsterba@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 7c8ede16
...@@ -682,13 +682,6 @@ int btrfs_drop_subtree(struct btrfs_trans_handle *trans, ...@@ -682,13 +682,6 @@ int btrfs_drop_subtree(struct btrfs_trans_handle *trans,
struct extent_buffer *node, struct extent_buffer *node,
struct extent_buffer *parent); struct extent_buffer *parent);
/* uuid-tree.c */
int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
u64 subid);
int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
u64 subid);
int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info);
/* orphan.c */ /* orphan.c */
int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 offset); struct btrfs_root *root, u64 offset);
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#include "extent-tree.h" #include "extent-tree.h"
#include "root-tree.h" #include "root-tree.h"
#include "defrag.h" #include "defrag.h"
#include "uuid-tree.h"
#define BTRFS_SUPER_FLAG_SUPP (BTRFS_HEADER_FLAG_WRITTEN |\ #define BTRFS_SUPER_FLAG_SUPP (BTRFS_HEADER_FLAG_WRITTEN |\
BTRFS_HEADER_FLAG_RELOC |\ BTRFS_HEADER_FLAG_RELOC |\
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
#include "defrag.h" #include "defrag.h"
#include "dir-item.h" #include "dir-item.h"
#include "file-item.h" #include "file-item.h"
#include "uuid-tree.h"
struct btrfs_iget_args { struct btrfs_iget_args {
u64 ino; u64 ino;
......
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
#include "root-tree.h" #include "root-tree.h"
#include "defrag.h" #include "defrag.h"
#include "dir-item.h" #include "dir-item.h"
#include "uuid-tree.h"
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
/* If we have a 32-bit userspace and 64-bit kernel, then the UAPI /* If we have a 32-bit userspace and 64-bit kernel, then the UAPI
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "root-tree.h" #include "root-tree.h"
#include "defrag.h" #include "defrag.h"
#include "dir-item.h" #include "dir-item.h"
#include "uuid-tree.h"
static struct kmem_cache *btrfs_trans_handle_cachep; static struct kmem_cache *btrfs_trans_handle_cachep;
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "print-tree.h" #include "print-tree.h"
#include "fs.h" #include "fs.h"
#include "accessors.h" #include "accessors.h"
#include "uuid-tree.h"
static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key)
{ {
......
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef BTRFS_UUID_TREE_H
#define BTRFS_UUID_TREE_H
int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
u64 subid);
int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
u64 subid);
int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info);
#endif
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "zoned.h" #include "zoned.h"
#include "fs.h" #include "fs.h"
#include "accessors.h" #include "accessors.h"
#include "uuid-tree.h"
static struct bio_set btrfs_bioset; static struct bio_set btrfs_bioset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册