summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-09-15 01:04:51 +0200
committerDavid Sterba <dsterba@suse.com>2022-09-26 12:28:07 +0200
commitd6921739449f229de73671d666d384dd2be44729 (patch)
treefa215a275e70b0c54d4e59974532a84f8efa66d3 /fs/btrfs/dev-replace.h
parentbtrfs: use a runtime flag to indicate an inode is a free space inode (diff)
downloadlinux-d6921739449f229de73671d666d384dd2be44729.tar.xz
linux-d6921739449f229de73671d666d384dd2be44729.zip
btrfs: add struct declarations in dev-replace.h
dev-replace.h just has function prototypes for device replace, however if you happen to include it in the wrong order you'll get compile errors because of different structures not being defined. Since these are just pointer args to functions we can declare them at the top in order to reduce the pain of using the header. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
-rw-r--r--fs/btrfs/dev-replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/dev-replace.h b/fs/btrfs/dev-replace.h
index 3911049a5f23..6084b313056a 100644
--- a/fs/btrfs/dev-replace.h
+++ b/fs/btrfs/dev-replace.h
@@ -7,6 +7,10 @@
#define BTRFS_DEV_REPLACE_H
struct btrfs_ioctl_dev_replace_args;
+struct btrfs_fs_info;
+struct btrfs_trans_handle;
+struct btrfs_dev_replace;
+struct btrfs_block_group;
int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
int btrfs_run_dev_replace(struct btrfs_trans_handle *trans);