]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add struct declarations in dev-replace.h
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:51 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:07 +0000 (12:28 +0200)
commit2a2498467880cf6d32e210752f60c32729ff17f1
treefa215a275e70b0c54d4e59974532a84f8efa66d3
parent23e1cbb59cfc9e43f58bc3821afd21fe95f227a6
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>
fs/btrfs/dev-replace.h