OSDN Git Service

btrfs: move btrfs_get_block_group helper out of disk-io.h
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 15:06:29 +0000 (11:06 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:36 +0000 (18:00 +0100)
commit51129b33d3911c7a36e643d47cf7c00fba3089fe
treeecd2b0b74cb01949e9fa0556893e0841bcc716c9
parent4300c58f809079951c87d84e5f11a2d265e3c9e7
btrfs: move btrfs_get_block_group helper out of disk-io.h

This inline helper calls btrfs_fs_compat_ro(), which is defined in
another header.  To avoid weird header dependency problems move this
helper into disk-io.c with the rest of the global root helpers.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h