.. | .. |
---|
1692 | 1692 | } else { |
---|
1693 | 1693 | snprintf(s->s_id, sizeof(s->s_id), "%pg", bdev); |
---|
1694 | 1694 | btrfs_sb(s)->bdev_holder = fs_type; |
---|
1695 | | - if (!strstr(crc32c_impl(), "generic")) |
---|
1696 | | - set_bit(BTRFS_FS_CSUM_IMPL_FAST, &fs_info->flags); |
---|
1697 | 1695 | error = btrfs_fill_super(s, fs_devices, data); |
---|
1698 | 1696 | } |
---|
1699 | 1697 | if (!error) |
---|
.. | .. |
---|
2269 | 2267 | * calculated f_bavail. |
---|
2270 | 2268 | */ |
---|
2271 | 2269 | if (!mixed && block_rsv->space_info->full && |
---|
2272 | | - total_free_meta - thresh < block_rsv->size) |
---|
| 2270 | + (total_free_meta < thresh || total_free_meta - thresh < block_rsv->size)) |
---|
2273 | 2271 | buf->f_bavail = 0; |
---|
2274 | 2272 | |
---|
2275 | 2273 | buf->f_type = BTRFS_SUPER_MAGIC; |
---|