summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-01-27 03:19:56 +0100
committerDavid Sterba <dsterba@suse.com>2024-03-04 16:24:49 +0100
commit602035d7fecf4d00c75c2ca5b956fa44136c3b86 (patch)
tree4206fa20eb1021496765430edab2b207ec8d39df /fs/btrfs/tree-log.h
parent22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (diff)
downloadlinux-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.gz
linux-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.bz2
linux-602035d7fecf4d00c75c2ca5b956fa44136c3b86.zip
btrfs: add forward declarations and headers, part 2
Do a cleanup in more 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/tree-log.h')
-rw-r--r--fs/btrfs/tree-log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/tree-log.h b/fs/btrfs/tree-log.h
index af219e8840d2..254082a189c3 100644
--- a/fs/btrfs/tree-log.h
+++ b/fs/btrfs/tree-log.h
@@ -6,10 +6,18 @@
#ifndef BTRFS_TREE_LOG_H
#define BTRFS_TREE_LOG_H
+#include <linux/list.h>
+#include <linux/fs.h>
#include "messages.h"
#include "ctree.h"
#include "transaction.h"
+struct inode;
+struct dentry;
+struct btrfs_ordered_extent;
+struct btrfs_root;
+struct btrfs_trans_handle;
+
/* return value for btrfs_log_dentry_safe that means we don't need to log it at all */
#define BTRFS_NO_LOG_SYNC 256