btrfs-progs: Introduce function to get correct stripe length
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 31 May 2017 05:56:08 +0000 (13:56 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jul 2017 11:35:11 +0000 (13:35 +0200)
commit6e7b1bbdecfa89d4bd3b51e56d01b29274fe3902
tree693e9bdce25ac9e9fd9930bb91cd5f7ef3a8c0db
parentd07f45bc25872acd9e88de9f6e3b2feeb8ad0423
btrfs-progs: Introduce function to get correct stripe length

Introduce a new function, btrfs_get_chunk_stripe_len() to get correct
stripe length.
This is very handy for lowmem mode, which checks the mapping between
device extent and chunk item.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c
volumes.h