]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: update include and forward declarations in headers
authorDavid Sterba <dsterba@suse.com>
Wed, 12 Feb 2025 20:22:16 +0000 (21:22 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:43 +0000 (20:35 +0100)
Pass over all header files and add missing forward declarations,
includes or fix include types.

Signed-off-by: David Sterba <dsterba@suse.com>
24 files changed:
fs/btrfs/accessors.h
fs/btrfs/acl.h
fs/btrfs/ctree.h
fs/btrfs/delayed-ref.h
fs/btrfs/dir-item.h
fs/btrfs/direct-io.h
fs/btrfs/discard.h
fs/btrfs/extent-tree.h
fs/btrfs/file-item.h
fs/btrfs/file.h
fs/btrfs/fs.c
fs/btrfs/ioctl.h
fs/btrfs/locking.c
fs/btrfs/ordered-data.h
fs/btrfs/print-tree.h
fs/btrfs/props.h
fs/btrfs/qgroup.h
fs/btrfs/raid-stripe-tree.h
fs/btrfs/send.c
fs/btrfs/space-info.c
fs/btrfs/subpage.c
fs/btrfs/sysfs.h
fs/btrfs/volumes.h
fs/btrfs/xattr.h

index 7a7e0ef69973a86cf05108d875ed1b97f3f99be8..15ea6348800b08a357c27ce4ca0f6bc9d007f823 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/string.h>
 #include <linux/mm.h>
 #include <uapi/linux/btrfs_tree.h>
+#include "extent_io.h"
 
 struct extent_buffer;
 
index 48b9ddae4a46a7d522055ffc95dfdd0c52a62472..0458cd51ed48926a64e4d8fd5a1c5681f904c5ce 100644 (file)
@@ -3,6 +3,8 @@
 #ifndef BTRFS_ACL_H
 #define BTRFS_ACL_H
 
+#include <linux/types.h>
+
 struct posix_acl;
 struct inode;
 struct btrfs_trans_handle;
index 1096a80a64e7ad9f34eee08ba175fa76c954dd71..075a06db43a1c6f635cdfded3b16a24c78c1a5fa 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef BTRFS_CTREE_H
 #define BTRFS_CTREE_H
 
-#include "linux/cleanup.h"
+#include <linux/cleanup.h>
 #include <linux/spinlock.h>
 #include <linux/rbtree.h>
 #include <linux/mutex.h>
index a35067cebb974b79a447022cf2445e4a281c6a4a..f5ae880308d389f18ce46b68fc9cc1e36b669dd3 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/spinlock.h>
 #include <linux/slab.h>
 #include <uapi/linux/btrfs_tree.h>
+#include "fs.h"
+#include "messages.h"
 
 struct btrfs_trans_handle;
 struct btrfs_fs_info;
index 28d69970bc709fd39c8854a3fce5008dbf5c13ad..8462579a95f404c6507f2b3bdb32a9fb94c86d42 100644 (file)
@@ -10,6 +10,7 @@ struct fscrypt_str;
 struct btrfs_fs_info;
 struct btrfs_key;
 struct btrfs_path;
+struct btrfs_inode;
 struct btrfs_root;
 struct btrfs_trans_handle;
 
index 3dc3ea926afe211af67dba1838b8be25a476625e..df5d45ee6de7ad5b4b99cd116c0d2c48a33710ed 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <linux/types.h>
 
+struct kiocb;
+
 int __init btrfs_init_dio(void);
 void __cold btrfs_destroy_dio(void);
 
index dddb0f9101ba9216c89e43fea14f7ad01b76ffc4..2c5e85394092f51f9fddca81bebf0484720dfcaa 100644 (file)
@@ -3,6 +3,7 @@
 #ifndef BTRFS_DISCARD_H
 #define BTRFS_DISCARD_H
 
+#include <linux/types.h>
 #include <linux/sizes.h>
 
 struct btrfs_fs_info;
index cfa52264f6782fd12cda75c5c2d5d77c4e102aee..0ed682d9ed7b48d70abfdc7566e0992fa63be359 100644 (file)
@@ -4,7 +4,6 @@
 #define BTRFS_EXTENT_TREE_H
 
 #include <linux/types.h>
-#include "misc.h"
 #include "block-group.h"
 #include "locking.h"
 
index 0e13661a71f3bdd8c104d6908d0461152170ac79..6181a70ec3efb4908594ea19575ab64300afef18 100644 (file)
@@ -3,8 +3,10 @@
 #ifndef BTRFS_FILE_ITEM_H
 #define BTRFS_FILE_ITEM_H
 
+#include <linux/blk_types.h>
 #include <linux/list.h>
 #include <uapi/linux/btrfs_tree.h>
+#include "ctree.h"
 #include "accessors.h"
 
 struct extent_map;
index de89e644be2965eb0ceff9c74eae75e7b5828217..d7df81388cbeef434703264da677d68f5b03a5ee 100644 (file)
@@ -9,6 +9,8 @@ struct file;
 struct extent_state;
 struct kiocb;
 struct iov_iter;
+struct inode;
+struct folio;
 struct page;
 struct btrfs_ioctl_encoded_io_args;
 struct btrfs_drop_extents_args;
index 09cfb43580cbf6f7233cff06f918b5872d0f64c9..b2bb86f8d7cf0c66dbb24a980ad55df960bac97c 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include "messages.h"
-#include "ctree.h"
 #include "fs.h"
 #include "accessors.h"
 #include "volumes.h"
index ce915fcda43b58ef58e442f727ab01f0fed7cc4d..18c45851e0b63132ae879439dfa572ce8a3bcf7b 100644 (file)
@@ -9,6 +9,8 @@ struct file;
 struct dentry;
 struct mnt_idmap;
 struct fileattr;
+struct inode;
+struct io_uring_cmd;
 struct btrfs_fs_info;
 struct btrfs_ioctl_balance_args;
 
index 9a7a7b7233054e1f70e7db9ea0d2da8d84cfe187..81e62b652e2104f5026164f859ac5c608dbf6ab8 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/page-flags.h>
 #include <asm/bug.h>
 #include <trace/events/btrfs.h>
-#include "misc.h"
 #include "ctree.h"
 #include "extent_io.h"
 #include "locking.h"
index 4e152736d06cbd58fe0ce571858d3064f141145d..be36083297a7b8cca3ec74f7dba87a06c67150b7 100644 (file)
@@ -17,6 +17,7 @@
 struct inode;
 struct page;
 struct extent_state;
+struct btrfs_block_group;
 struct btrfs_inode;
 struct btrfs_root;
 struct btrfs_fs_info;
index 8504bf1702c7a2a2107a358dcfab1aafcffc8de4..d0e620bf5f5a62d5d685b11ad5540cb74147db5d 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef BTRFS_PRINT_TREE_H
 #define BTRFS_PRINT_TREE_H
 
+#include <linux/types.h>
+
 /* Buffer size to contain tree name and possibly additional data (offset) */
 #define BTRFS_ROOT_NAME_BUF_LEN                                48
 
index 63546d0a9444f0b68198bbaac587fd7f6db8ae98..86849d4e7938c387eb595647a66b7f730dcaf4a5 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef BTRFS_PROPS_H
 #define BTRFS_PROPS_H
 
+#include <linux/types.h>
 #include <linux/compiler_types.h>
 
 struct inode;
index e233cc79af185a201c14e3fa1f5b9cb336a023cd..a979fd59a4da327435cc04d12c076b9fe580fc14 100644 (file)
@@ -22,6 +22,9 @@ struct btrfs_ioctl_quota_ctl_args;
 struct btrfs_trans_handle;
 struct btrfs_delayed_ref_root;
 struct btrfs_inode;
+struct btrfs_transaction;
+struct btrfs_block_group;
+struct btrfs_qgroup_swapped_blocks;
 
 /*
  * Btrfs qgroup overview
index 541836421778692f4acc8d862c15829d2eaec17a..69942ad431408c439c7fad69d803eeede23bac5d 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/types.h>
 #include <uapi/linux/btrfs_tree.h>
 #include "fs.h"
+#include "accessors.h"
 
 #define BTRFS_RST_SUPP_BLOCK_GROUP_MASK    (BTRFS_BLOCK_GROUP_DUP |            \
                                            BTRFS_BLOCK_GROUP_RAID1_MASK |      \
index f437138fefbc5bc20c2149a2c1a982b5bf52f2a4..d513f7fd5fe813a7358c51b0567dcaeccf8479e7 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/compat.h>
 #include <linux/crc32c.h>
 #include <linux/fsverity.h>
-
 #include "send.h"
 #include "ctree.h"
 #include "backref.h"
index a341d087567aa0a8dcdcaf585372ded667bfb63c..ff089e3e410324139e85434e6fd95cc3430b6bd1 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#include "linux/spinlock.h"
+#include <linux/spinlock.h>
 #include <linux/minmax.h>
 #include "misc.h"
 #include "ctree.h"
index a8a6e105e5f6c78848305af47be5ff42ed9b672d..c237d2721826d4817400c4b7b96fb174a978400d 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <linux/slab.h>
 #include "messages.h"
-#include "ctree.h"
 #include "subpage.h"
 #include "btrfs_inode.h"
 
index 3fc5c6f90dc42dd464290f2e7602b1acd0ffd3e5..0f94ae9232101b50ace44c9886feac97805dcfcf 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/compiler_types.h>
 #include <linux/kobject.h>
 
+struct block_device;
 struct btrfs_fs_info;
 struct btrfs_device;
 struct btrfs_fs_devices;
index 120f65e21eeb29660ccfb57605229f03a7a30f37..e247d551da672b982d4d34065f71f6ff3e5c8237 100644 (file)
@@ -7,6 +7,7 @@
 #define BTRFS_VOLUMES_H
 
 #include <linux/blk_types.h>
+#include <linux/blkdev.h>
 #include <linux/sizes.h>
 #include <linux/atomic.h>
 #include <linux/sort.h>
 #include <linux/completion.h>
 #include <linux/rbtree.h>
 #include <uapi/linux/btrfs.h>
+#include <uapi/linux/btrfs_tree.h>
 #include "messages.h"
 #include "rcu-string.h"
+#include "extent-io-tree.h"
 
 struct block_device;
 struct bdev_handle;
 struct btrfs_fs_info;
 struct btrfs_block_group;
 struct btrfs_trans_handle;
+struct btrfs_transaction;
 struct btrfs_zoned_device_info;
 
 #define BTRFS_MAX_DATA_CHUNK_SIZE      (10ULL * SZ_1G)
index 8dc4cf49f6f063c14f365737cc0c134c036cd972..0ce10e4ec836728a4f0ea181097ce5ff02df7809 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef BTRFS_XATTR_H
 #define BTRFS_XATTR_H
 
+#include <linux/types.h>
+
 struct dentry;
 struct inode;
 struct qstr;