summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-01-27 02:53:06 +0300
committerDavid Sterba <dsterba@suse.com>2024-03-04 18:24:49 +0300
commit22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d (patch)
tree2a9ebfae8d720613175db83b37f2372875ee223d /fs/btrfs/ioctl.h
parente84bfffc4bbff4f2cf292e270d6654fe43efd29f (diff)
downloadlinux-22b46bdc5f11c0d3502fbc180cd83a1b5ab3d23d.tar.xz
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/ioctl.h')
-rw-r--r--fs/btrfs/ioctl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h
index d51b9a2f2f6e..2c5dc25ec670 100644
--- a/fs/btrfs/ioctl.h
+++ b/fs/btrfs/ioctl.h
@@ -3,6 +3,15 @@
#ifndef BTRFS_IOCTL_H
#define BTRFS_IOCTL_H
+#include <linux/types.h>
+
+struct file;
+struct dentry;
+struct mnt_idmap;
+struct fileattr;
+struct btrfs_fs_info;
+struct btrfs_ioctl_balance_args;
+
long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
int btrfs_fileattr_get(struct dentry *dentry, struct fileattr *fa);