btrfs: factor out helper for counting data stripes
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:34 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:57 +0000 (13:34 +0200)
commit946c9256c6fabe8d3fe8e076df1c4290dcd778f2
treea238042f87da2169891449abc438bb9a3aec4de8
parent44b28adafd1f814fbde8b53a99eee83f3b31b2d9
btrfs: factor out helper for counting data stripes

Factor the sequence of ifs to a helper, the 'data stripes' here means
the number of stripes without redundancy and parity.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c