Lines Matching refs:new_size
2607 struct btrfs_device *device, u64 new_size) in btrfs_grow_device() argument
2620 diff = new_size - device->total_bytes; in btrfs_grow_device()
2622 if (new_size <= device->total_bytes || in btrfs_grow_device()
2633 btrfs_device_set_total_bytes(device, new_size); in btrfs_grow_device()
2634 btrfs_device_set_disk_total_bytes(device, new_size); in btrfs_grow_device()
4245 int btrfs_shrink_device(struct btrfs_device *device, u64 new_size) in btrfs_shrink_device() argument
4263 u64 diff = old_size - new_size; in btrfs_shrink_device()
4276 btrfs_device_set_total_bytes(device, new_size); in btrfs_shrink_device()
4322 if (key.offset + length <= new_size) { in btrfs_shrink_device()
4370 u64 start = new_size; in btrfs_shrink_device()
4371 u64 len = old_size - new_size; in btrfs_shrink_device()
4386 btrfs_device_set_disk_total_bytes(device, new_size); in btrfs_shrink_device()