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

btrfs: move accessor helpers into accessors.h



This is a large patch, but because they're all macros it's impossible to
split up.  Simply copy all of the item accessors in ctree.h and paste
them in accessors.h, and then update any files to include the header so
everything compiles.

Reviewed-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ reformat comments, style fixups ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent ad1ac501
Loading
Loading
Loading
Loading
+1068 −0

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
#include "misc.h"
#include "tree-mod-log.h"
#include "fs.h"
#include "accessors.h"

/* Just arbitrary numbers so we can be sure one of these happened. */
#define BACKREF_FOUND_SHARED     6
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include "raid56.h"
#include "zoned.h"
#include "fs.h"
#include "accessors.h"

#ifdef CONFIG_BTRFS_DEBUG
int btrfs_should_fragment_free_space(struct btrfs_block_group *block_group)
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include "block-group.h"
#include "disk-io.h"
#include "fs.h"
#include "accessors.h"

/*
 * HOW DO BLOCK RESERVES WORK
+1 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@
#include "check-integrity.h"
#include "rcu-string.h"
#include "compression.h"
#include "accessors.h"

#define BTRFSIC_BLOCK_HASHTABLE_SIZE 0x10000
#define BTRFSIC_BLOCK_LINK_HASHTABLE_SIZE 0x10000
Loading