]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use raid_attr to adjust minimal stripe size in btrfs_calc_avail_data_space
authorDavid Sterba <dsterba@suse.com>
Tue, 18 Jun 2019 18:00:11 +0000 (20:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 2 Jul 2019 10:30:51 +0000 (12:30 +0200)
commitae9ae149975403060d32747b912ae0bf33f00240
tree2a10c9066c0a9e7d361133e568885d69c73aea2c
parent921cda99fffab7ed40a4ad758431b9ac284b5fb4
btrfs: use raid_attr to adjust minimal stripe size in btrfs_calc_avail_data_space

Special case for DUP can be replaced by lookup to the attribute table,
where the dev_stripes is the right coefficient.

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