]> git.baikalelectronics.ru Git - kernel.git/commitdiff
btrfs: send: simplify includes
authorDavid Sterba <dsterba@suse.com>
Thu, 2 Jun 2022 13:28:41 +0000 (15:28 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:37 +0000 (17:45 +0200)
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>
fs/btrfs/send.c
fs/btrfs/send.h

index 6d01dc26d4080b61b0e0174e34a19e91a9135f03..8f88df368c31d812f3ec2dc7fa8185185683a0a9 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/crc32c.h>
 
 #include "send.h"
+#include "ctree.h"
 #include "backref.h"
 #include "locking.h"
 #include "disk-io.h"
index 45562190b473e21dfdb1eff30eefe5821a9df7c1..7f615ddc8d9c5adb54f6fad852f27c35a110d4fd 100644 (file)
@@ -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,