#include "subpage.h"
#include "zoned.h"
#include "file-item.h"
+#include "super.h"
static const char* const btrfs_compress_types[] = { "", "zlib", "lzo", "zstd" };
#include "subpage.h"
#include "defrag.h"
#include "file-item.h"
+#include "super.h"
static struct kmem_cache *btrfs_inode_defrag_cachep;
#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)
#include "file-item.h"
#include "file.h"
#include "dev-replace.h"
+#include "super.h"
static struct kmem_cache *extent_buffer_cache;
#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) / \
#include "file-item.h"
#include "ioctl.h"
#include "file.h"
+#include "super.h"
/* simple helper to fault in pages and copy. This should go away
* and be replaced with calls into generic code.
#include "accessors.h"
#include "file-item.h"
#include "file.h"
+#include "super.h"
#define BITS_PER_BITMAP (PAGE_SIZE * 8UL)
#define MAX_CACHE_BYTES_PER_GIG SZ_64K
return READ_ONCE(fs_info->last_root_drop_gen);
}
-static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb)
-{
- return sb->s_fs_info;
-}
-
/*
* Take the number of bytes to be checksummed and figure out how many leaves
* it would require to store the csums for that many bytes.
btrfs_fs_closing(fs_info);
}
-static inline void btrfs_set_sb_rdonly(struct super_block *sb)
-{
- sb->s_flags |= SB_RDONLY;
- set_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
-}
-
-static inline void btrfs_clear_sb_rdonly(struct super_block *sb)
-{
- sb->s_flags &= ~SB_RDONLY;
- clear_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
-}
-
static inline void btrfs_wake_unfinished_drop(struct btrfs_fs_info *fs_info)
{
clear_and_wake_up_bit(BTRFS_FS_UNFINISHED_DROPS, &fs_info->flags);
#include "acl.h"
#include "relocation.h"
#include "verity.h"
+#include "super.h"
struct btrfs_iget_args {
u64 ino;
#include "messages.h"
#include "compression.h"
#include "ctree.h"
+#include "super.h"
#define LZO_LEN 4
#include "discard.h"
#include "transaction.h"
#include "space-info.h"
+#include "super.h"
#ifdef CONFIG_PRINTK
#include "qgroup.h"
#include "subpage.h"
#include "file.h"
+#include "super.h"
static struct kmem_cache *btrfs_ordered_extent_cache;
#include "space-info.h"
#include "fs.h"
#include "accessors.h"
+#include "super.h"
#define BTRFS_PROP_HANDLERS_HT_BITS 8
static DEFINE_HASHTABLE(prop_handlers_ht, BTRFS_PROP_HANDLERS_HT_BITS);
#include "accessors.h"
#include "file-item.h"
#include "file.h"
+#include "super.h"
#define BTRFS_MAX_DEDUPE_LEN SZ_16M
#include "root-tree.h"
#include "file-item.h"
#include "relocation.h"
+#include "super.h"
/*
* Relocation overview
char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
u64 subvol_objectid);
+static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb)
+{
+ return sb->s_fs_info;
+}
+
+static inline void btrfs_set_sb_rdonly(struct super_block *sb)
+{
+ sb->s_flags |= SB_RDONLY;
+ set_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
+}
+
+static inline void btrfs_clear_sb_rdonly(struct super_block *sb)
+{
+ sb->s_flags &= ~SB_RDONLY;
+ clear_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state);
+}
+
#endif
#include "ioctl.h"
#include "relocation.h"
#include "scrub.h"
+#include "super.h"
static struct bio_set btrfs_bioset;