btrfs-progs: Refactor find_next_chunk to get rid of parameter root and objectid
authorQu Wenruo <quwenruo.btrfs@gmx.com>
Mon, 11 Sep 2017 06:36:06 +0000 (15:36 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Sep 2017 13:17:48 +0000 (15:17 +0200)
commit02b58051e60658abb0387bec7063e77d2941923b
treec9df3ed9895d12ca40b19dbf88bdbdd798fc08dc
parent3efd322db238abcee7f8dddd6d5af7f69fc3fac4
btrfs-progs: Refactor find_next_chunk to get rid of parameter root and objectid

Function find_next_chunk() is used to find next chunk start position,
which should only do search on chunk tree and objectid is set to
BTRFS_FIRST_CHUNK_TREE_OBJECTID.

So refactor the parameter list to get rid of @root, which should be
obtained from fs_info->chunk_root, and @objectid, which is set to
BTRFS_FIRST_CHUNK_TREE_OBJECTID.

Signed-off-by: Qu Wenruo <quwenruo.btrfs@gmx.com>
Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c