mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 08:30:52 +07:00
Btrfs: properly set blocksize when adding new device.
--- Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
6527cdbe68
commit
325cd4bafe
@ -1079,6 +1079,8 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
|
||||
if (ret)
|
||||
goto out_close_bdev;
|
||||
|
||||
set_blocksize(device->bdev, 4096);
|
||||
|
||||
total_bytes = btrfs_super_total_bytes(&root->fs_info->super_copy);
|
||||
btrfs_set_super_total_bytes(&root->fs_info->super_copy,
|
||||
total_bytes + device->total_bytes);
|
||||
|
Loading…
Reference in New Issue
Block a user