Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: cleanup recursive include of the same header

We have several headers that are including themselves, triggering clangd
warnings.
Such includes are caused by commit 602035d7fecf ("btrfs: add forward
declarations and headers, part 2").

Just remove such unnecessary include.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Qu Wenruo and committed by
David Sterba
3b8dbf34 a56b7952

-5
-1
fs/btrfs/btrfs_inode.h
··· 19 19 #include <uapi/linux/btrfs_tree.h> 20 20 #include <trace/events/btrfs.h> 21 21 #include "block-rsv.h" 22 - #include "btrfs_inode.h" 23 22 #include "extent_map.h" 24 23 #include "extent_io.h" 25 24 #include "extent-io-tree.h"
-1
fs/btrfs/extent_map.h
··· 9 9 #include <linux/list.h> 10 10 #include <linux/refcount.h> 11 11 #include "misc.h" 12 - #include "extent_map.h" 13 12 #include "compression.h" 14 13 15 14 struct btrfs_inode;
-1
fs/btrfs/fs.h
··· 29 29 #include "extent-io-tree.h" 30 30 #include "async-thread.h" 31 31 #include "block-rsv.h" 32 - #include "fs.h" 33 32 34 33 struct inode; 35 34 struct super_block;
-1
fs/btrfs/locking.h
··· 11 11 #include <linux/lockdep.h> 12 12 #include <linux/percpu_counter.h> 13 13 #include "extent_io.h" 14 - #include "locking.h" 15 14 16 15 struct extent_buffer; 17 16 struct btrfs_path;
-1
fs/btrfs/lru_cache.h
··· 6 6 #include <linux/types.h> 7 7 #include <linux/maple_tree.h> 8 8 #include <linux/list.h> 9 - #include "lru_cache.h" 10 9 11 10 /* 12 11 * A cache entry. This is meant to be embedded in a structure of a user of