Lines Matching refs:diff
2817 u64 diff; in btrfs_grow_device() local
2826 diff = round_down(new_size - device->total_bytes, fs_info->sectorsize); in btrfs_grow_device()
2835 round_down(old_total + diff, fs_info->sectorsize)); in btrfs_grow_device()
2836 device->fs_devices->total_rw_bytes += diff; in btrfs_grow_device()
4688 u64 diff; in btrfs_shrink_device() local
4693 diff = round_down(old_size - new_size, fs_info->sectorsize); in btrfs_shrink_device()
4714 device->fs_devices->total_rw_bytes -= diff; in btrfs_shrink_device()
4715 atomic64_sub(diff, &fs_info->free_chunk_space); in btrfs_shrink_device()
4723 if (contains_pending_extent(device, &start, diff)) { in btrfs_shrink_device()
4827 WARN_ON(diff > old_total); in btrfs_shrink_device()
4829 round_down(old_total - diff, fs_info->sectorsize)); in btrfs_shrink_device()
4846 device->fs_devices->total_rw_bytes += diff; in btrfs_shrink_device()
4847 atomic64_add(diff, &fs_info->free_chunk_space); in btrfs_shrink_device()