Lines Matching refs:total_bytes
1690 u64 search_end = device->total_bytes; in find_free_dev_extent_start()
2748 device->total_bytes = round_down(i_size_read(bdev->bd_inode), in btrfs_init_new_device()
2750 device->disk_total_bytes = device->total_bytes; in btrfs_init_new_device()
2751 device->commit_total_bytes = device->total_bytes; in btrfs_init_new_device()
2779 fs_devices->total_rw_bytes += device->total_bytes; in btrfs_init_new_device()
2781 atomic64_add(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2788 round_down(orig_super_total_bytes + device->total_bytes, in btrfs_init_new_device()
2884 fs_info->fs_devices->total_rw_bytes -= device->total_bytes; in btrfs_init_new_device()
2885 atomic64_sub(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2969 diff = round_down(new_size - device->total_bytes, fs_info->sectorsize); in btrfs_grow_device()
2971 if (new_size <= device->total_bytes || in btrfs_grow_device()
5187 if (device->total_bytes > device->bytes_used) in __btrfs_alloc_chunk()
5188 total_avail = device->total_bytes - device->bytes_used; in __btrfs_alloc_chunk()
7028 device->total_bytes = device->disk_total_bytes; in fill_device_from_item()
7188 device->fs_devices->total_rw_bytes += device->total_bytes; in read_one_dev()
7189 atomic64_add(device->total_bytes - device->bytes_used, in read_one_dev()