diff options
author | David Sterba <dsterba@suse.com> | 2024-01-27 03:19:56 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-03-04 16:24:49 +0100 |
commit | 602035d7fecf4d00c75c2ca5b956fa44136c3b86 (patch) | |
tree | 4206fa20eb1021496765430edab2b207ec8d39df /fs/btrfs/lru_cache.h | |
parent | 22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (diff) | |
download | lwn-602035d7fecf4d00c75c2ca5b956fa44136c3b86.tar.gz lwn-602035d7fecf4d00c75c2ca5b956fa44136c3b86.zip |
btrfs: add forward declarations and headers, part 2
Do a cleanup in more headers:
- add forward declarations for types referenced by pointers
- add includes when types need them
This fixes potential compilation problems if the headers are reordered
or the missing includes are not provided indirectly.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lru_cache.h')
-rw-r--r-- | fs/btrfs/lru_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/lru_cache.h b/fs/btrfs/lru_cache.h index 00328c856be6..390a12b61fd2 100644 --- a/fs/btrfs/lru_cache.h +++ b/fs/btrfs/lru_cache.h @@ -3,8 +3,10 @@ #ifndef BTRFS_LRU_CACHE_H #define BTRFS_LRU_CACHE_H +#include <linux/types.h> #include <linux/maple_tree.h> #include <linux/list.h> +#include "lru_cache.h" /* * A cache entry. This is meant to be embedded in a structure of a user of |