Btrfs: create a helper for getting chunk map
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 14 Mar 2017 20:33:55 +0000 (13:33 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:24 +0000 (14:07 +0200)
commit592d92eeab3770b2525d2fc5589b205c9f8c33e3
tree237948e8e203d61d956f683405842093db60ec4e
parent09ed2f165cb3449237dec842b3564044e12d22cb
Btrfs: create a helper for getting chunk map

We have similar code here and there, this merges them into a helper.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h