]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/super.c
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)
commit4f080f571192b0347f45b5709a291af473824484
tree2a10c9066c0a9e7d361133e568885d69c73aea2c
parentf262fa8de6a2510e13a59ad3ecdcb0f2d468bb98
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