Commit c7a03b52 authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba
Browse files

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: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 7c8ede16
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -682,13 +682,6 @@ int btrfs_drop_subtree(struct btrfs_trans_handle *trans,
			struct extent_buffer *node,
			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 */
int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
			     struct btrfs_root *root, u64 offset);
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@
#include "extent-tree.h"
#include "root-tree.h"
#include "defrag.h"
#include "uuid-tree.h"

#define BTRFS_SUPER_FLAG_SUPP	(BTRFS_HEADER_FLAG_WRITTEN |\
				 BTRFS_HEADER_FLAG_RELOC |\
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@
#include "defrag.h"
#include "dir-item.h"
#include "file-item.h"
#include "uuid-tree.h"

struct btrfs_iget_args {
	u64 ino;
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@
#include "root-tree.h"
#include "defrag.h"
#include "dir-item.h"
#include "uuid-tree.h"

#ifdef CONFIG_64BIT
/* If we have a 32-bit userspace and 64-bit kernel, then the UAPI
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
#include "root-tree.h"
#include "defrag.h"
#include "dir-item.h"
#include "uuid-tree.h"

static struct kmem_cache *btrfs_trans_handle_cachep;

Loading