]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97f8606847c7dde7b3816309938764b4a6a7d174
treea238042f87da2169891449abc438bb9a3aec4de8
parent8dc50a41bd47aa5a66d57a2b265d63e4edf08a9b
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