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

btrfs: move super_block specific helpers into super.h



This will make syncing fs.h to user space a little easier if we can pull
the super block specific helpers out of fs.h and put them in super.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 c03b2207
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
#include "subpage.h"
#include "zoned.h"
#include "file-item.h"
#include "super.h"

static const char* const btrfs_compress_types[] = { "", "zlib", "lzo", "zstd" };

+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
#include "subpage.h"
#include "defrag.h"
#include "file-item.h"
#include "super.h"

static struct kmem_cache *btrfs_inode_defrag_cachep;

+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include "print-tree.h"
#include "export.h"
#include "accessors.h"
#include "super.h"

#define BTRFS_FID_SIZE_NON_CONNECTABLE (offsetof(struct btrfs_fid, \
						 parent_objectid) / 4)
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
#include "file-item.h"
#include "file.h"
#include "dev-replace.h"
#include "super.h"

static struct kmem_cache *extent_buffer_cache;

+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
#include "fs.h"
#include "accessors.h"
#include "file-item.h"
#include "super.h"

#define __MAX_CSUM_ITEMS(r, size) ((unsigned long)(((BTRFS_LEAF_DATA_SIZE(r) - \
				   sizeof(struct btrfs_item) * 2) / \
Loading