From 8234d3f658b65584f1298960fc96a62f9e2a9f38 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 2 Jun 2022 15:28:41 +0200 Subject: [PATCH] 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 --- fs/btrfs/send.c | 1 + fs/btrfs/send.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 6d01dc26d4080..8f88df368c31d 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -17,6 +17,7 @@ #include #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 45562190b473e..7f615ddc8d9c5 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 #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, -- 2.30.2