diff options
author | David Sterba <dsterba@suse.com> | 2024-01-27 00:53:06 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-03-04 16:24:49 +0100 |
commit | 22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (patch) | |
tree | 2a9ebfae8d720613175db83b37f2372875ee223d /fs/btrfs/file.h | |
parent | e84bfffc4bbff4f2cf292e270d6654fe43efd29f (diff) | |
download | linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.gz linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.bz2 linux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.zip |
btrfs: add forward declarations and headers, part 1
Do a cleanup in the short 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/file.h')
-rw-r--r-- | fs/btrfs/file.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/btrfs/file.h b/fs/btrfs/file.h index 82b34fbb295f..77aaca208c7b 100644 --- a/fs/btrfs/file.h +++ b/fs/btrfs/file.h @@ -3,6 +3,21 @@ #ifndef BTRFS_FILE_H #define BTRFS_FILE_H +#include <linux/types.h> + +struct file; +struct extent_state; +struct kiocb; +struct iov_iter; +struct page; +struct btrfs_ioctl_encoded_io_args; +struct btrfs_drop_extents_args; +struct btrfs_inode; +struct btrfs_root; +struct btrfs_path; +struct btrfs_replace_extent_info; +struct btrfs_trans_handle; + extern const struct file_operations btrfs_file_operations; int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync); |