Home
last modified time | relevance | path

Searched refs:total_bytes (Results 1 – 16 of 16) sorted by relevance

/fs/btrfs/
Dspace-info.c259 u64 total_bytes, u64 bytes_used, in btrfs_update_space_info() argument
271 found->total_bytes += total_bytes; in btrfs_update_space_info()
272 found->disk_total += total_bytes * factor; in btrfs_update_space_info()
276 if (total_bytes > 0) in btrfs_update_space_info()
348 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
384 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
423 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
427 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
591 if (cur_free_bytes < space_info->total_bytes) in may_commit_transaction()
592 cur_free_bytes = space_info->total_bytes - cur_free_bytes; in may_commit_transaction()
[all …]
Dfile-item.c537 unsigned long total_bytes = 0; in btrfs_csum_one_bio() local
599 bytes_left = bio->bi_iter.bi_size - total_bytes; in btrfs_csum_one_bio()
613 + total_bytes; in btrfs_csum_one_bio()
626 total_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
854 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
870 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
971 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
996 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1023 ins_size = (u32)(sums->len - total_bytes) >> in btrfs_csum_file_blocks()
1033 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
[all …]
Dspace-info.h9 u64 total_bytes; /* total bytes in the space, member
121 u64 total_bytes, u64 bytes_used,
Dbackref.h55 struct btrfs_data_container *init_data_container(u32 total_bytes);
56 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
Ddev-replace.c202 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()
203 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()
302 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
812 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
Dvolumes.h82 u64 total_bytes; member
207 BTRFS_DEVICE_GETSET_FUNCS(total_bytes);
Dsysfs.c569 BTRFS_ATTR(raid, total_bytes, raid_bytes_show);
583 if (&attr->attr == BTRFS_ATTR_PTR(raid, total_bytes)) in raid_bytes_show()
593 BTRFS_ATTR_PTR(raid, total_bytes),
630 SPACE_INFO_ATTR(total_bytes);
643 BTRFS_ATTR_PTR(space_info, total_bytes),
Dctree.h208 __le64 total_bytes; member
245 __le64 total_bytes; member
1523 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_device_total_bytes()
1525 total_bytes)); in btrfs_device_total_bytes()
1532 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_set_device_total_bytes()
1534 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
1553 total_bytes, 64);
2167 total_bytes, 64);
2281 total_bytes, 64);
Dbackref.c2312 struct btrfs_data_container *init_data_container(u32 total_bytes) argument
2317 alloc_bytes = max_t(size_t, total_bytes, sizeof(*data));
2322 if (total_bytes >= sizeof(*data)) {
2323 data->bytes_left = total_bytes - sizeof(*data);
2326 data->bytes_missing = sizeof(*data) - total_bytes;
2342 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, argument
2348 fspath = init_data_container(total_bytes);
Dvolumes.c1575 u64 search_end = device->total_bytes; in find_free_dev_extent_start()
2647 device->total_bytes = round_down(i_size_read(bdev->bd_inode), in btrfs_init_new_device()
2649 device->disk_total_bytes = device->total_bytes; in btrfs_init_new_device()
2650 device->commit_total_bytes = device->total_bytes; in btrfs_init_new_device()
2678 fs_devices->total_rw_bytes += device->total_bytes; in btrfs_init_new_device()
2680 atomic64_add(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2687 round_down(orig_super_total_bytes + device->total_bytes, in btrfs_init_new_device()
2786 fs_info->fs_devices->total_rw_bytes -= device->total_bytes; in btrfs_init_new_device()
2787 atomic64_sub(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2871 diff = round_down(new_size - device->total_bytes, fs_info->sectorsize); in btrfs_grow_device()
[all …]
Dblock-group.c1094 WARN_ON(block_group->space_info->total_bytes in btrfs_remove_block_group()
1101 block_group->space_info->total_bytes -= block_group->length; in btrfs_remove_block_group()
1266 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
3081 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
3085 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
3258 left = info->total_bytes - btrfs_space_info_used(info, true); in check_system_chunk()
Dextent_io.c1765 u64 total_bytes = 0; in btrfs_find_delalloc_range() local
1799 total_bytes += state->end - state->start + 1; in btrfs_find_delalloc_range()
1800 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
2043 u64 total_bytes = 0; in count_range_bits() local
2052 total_bytes = tree->dirty_bytes; in count_range_bits()
2070 total_bytes += min(search_end, state->end) + 1 - in count_range_bits()
2072 if (total_bytes >= max_bytes) in count_range_bits()
2088 return total_bytes; in count_range_bits()
Dblock-rsv.c410 if (block_rsv->size >= sinfo->total_bytes) in btrfs_update_global_block_rsv()
Dioctl.c3424 di_args->total_bytes = btrfs_device_get_total_bytes(dev); in btrfs_ioctl_dev_info()
3524 space->total_bytes = 0; in get_block_group_info()
3529 space->total_bytes += block_group->length; in get_block_group_info()
3649 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
Dextent-tree.c5745 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()
5763 if (start > device->total_bytes) { in btrfs_trim_free_extents()
5769 device->total_bytes); in btrfs_trim_free_extents()
5783 end = min(end, device->total_bytes - 1); in btrfs_trim_free_extents()
Dsuper.c2117 avail_space = device->total_bytes - device->bytes_used; in btrfs_calc_avail_data_space()