mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
btrfs: add forward declarations and headers, part 3
Do a cleanup in the rest of the headers: - add forward declarations for types referenced by pointers - add includes when types need them This fixes potential compilation problems if the headers are reordered or the missing includes are not provided indirectly. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -6,11 +6,23 @@
|
||||
#ifndef BTRFS_BACKREF_H
|
||||
#define BTRFS_BACKREF_H
|
||||
|
||||
#include <linux/btrfs.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/slab.h>
|
||||
#include <uapi/linux/btrfs.h>
|
||||
#include <uapi/linux/btrfs_tree.h>
|
||||
#include "messages.h"
|
||||
#include "ulist.h"
|
||||
#include "locking.h"
|
||||
#include "disk-io.h"
|
||||
#include "extent_io.h"
|
||||
#include "ctree.h"
|
||||
|
||||
struct extent_inode_elem;
|
||||
struct ulist;
|
||||
struct btrfs_extent_item;
|
||||
struct btrfs_trans_handle;
|
||||
struct btrfs_fs_info;
|
||||
|
||||
/*
|
||||
* Used by implementations of iterate_extent_inodes_t (see definition below) to
|
||||
|
||||
Reference in New Issue
Block a user