summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delalloc-space.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-01-27 00:53:06 +0100
committerDavid Sterba <dsterba@suse.com>2024-03-04 16:24:49 +0100
commit22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (patch)
tree2a9ebfae8d720613175db83b37f2372875ee223d /fs/btrfs/delalloc-space.h
parente84bfffc4bbff4f2cf292e270d6654fe43efd29f (diff)
downloadlinux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.gz
linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.bz2
linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.zip
btrfs: add forward declarations and headers, part 1
Do a cleanup in the short 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>
Diffstat (limited to 'fs/btrfs/delalloc-space.h')
-rw-r--r--fs/btrfs/delalloc-space.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/delalloc-space.h b/fs/btrfs/delalloc-space.h
index c5d573f2366e..ce4f889e4f17 100644
--- a/fs/btrfs/delalloc-space.h
+++ b/fs/btrfs/delalloc-space.h
@@ -3,7 +3,11 @@
#ifndef BTRFS_DELALLOC_SPACE_H
#define BTRFS_DELALLOC_SPACE_H
+#include <linux/types.h>
+
struct extent_changeset;
+struct btrfs_inode;
+struct btrfs_fs_info;
int btrfs_alloc_data_chunk_ondemand(struct btrfs_inode *inode, u64 bytes);
int btrfs_check_data_free_space(struct btrfs_inode *inode,