summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-06-02 15:28:41 +0200
committerDavid Sterba <dsterba@suse.com>2022-06-22 18:13:13 +0200
commit67995191d991d72e4cabca1952e9a9bbcb30cfd5 (patch)
tree7fe01dffea806c3ff4108021600b54d08625c497 /fs/btrfs
parentd83a3ea914304f72967ef66aba8ec2158fcf96a6 (diff)
downloadlinux-next-67995191d991d72e4cabca1952e9a9bbcb30cfd5.tar.gz
btrfs: send: simplify includes
We don't need the whole ctree.h in send.h, none of the data types defined there are used. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/send.c1
-rw-r--r--fs/btrfs/send.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 7de6aa5056cd..cb530507ead5 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -16,6 +16,7 @@
#include <linux/crc32c.h>
#include "send.h"
+#include "ctree.h"
#include "backref.h"
#include "locking.h"
#include "disk-io.h"
diff --git a/fs/btrfs/send.h b/fs/btrfs/send.h
index 45562190b473..7f615ddc8d9c 100644
--- a/fs/btrfs/send.h
+++ b/fs/btrfs/send.h
@@ -7,7 +7,7 @@
#ifndef BTRFS_SEND_H
#define BTRFS_SEND_H
-#include "ctree.h"
+#include <linux/types.h>
#define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
#define BTRFS_SEND_STREAM_VERSION 2
@@ -18,6 +18,9 @@
*/
#define BTRFS_SEND_BUF_SIZE_V1 SZ_64K
+struct inode;
+struct btrfs_ioctl_send_args;
+
enum btrfs_tlv_type {
BTRFS_TLV_U8,
BTRFS_TLV_U16,