btrfs: read number of data stripes from map only once
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:45 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:58 +0000 (13:34 +0200)
commitcff8267228c14e56ded8407787d4328603423b3e
tree401220cd4851b01ecfb5d9694452413e710896ef
parent72ad813157c58416c29fa554928e21b9bdae2582
btrfs: read number of data stripes from map only once

There are several places that call nr_data_stripes, but this value does
not change.

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