Home
last modified time | relevance | path

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

/fs/btrfs/
Dspace-info.c115 u64 total_bytes, u64 bytes_used, in btrfs_update_space_info() argument
127 found->total_bytes += total_bytes; in btrfs_update_space_info()
128 found->disk_total += total_bytes * factor; in btrfs_update_space_info()
132 if (total_bytes > 0) in btrfs_update_space_info()
203 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
229 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
268 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
272 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
477 if (cur_free_bytes < space_info->total_bytes) in may_commit_transaction()
478 cur_free_bytes = space_info->total_bytes - cur_free_bytes; in may_commit_transaction()
[all …]
Dfile-item.c445 unsigned long total_bytes = 0; in btrfs_csum_one_bio() local
496 bytes_left = bio->bi_iter.bi_size - total_bytes; in btrfs_csum_one_bio()
510 + total_bytes; in btrfs_csum_one_bio()
524 total_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
752 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
768 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
862 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
887 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
914 ins_size = (u32)(sums->len - total_bytes) >> in btrfs_csum_file_blocks()
924 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
[all …]
Dbackref.h51 struct btrfs_data_container *init_data_container(u32 total_bytes);
52 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
Dspace-info.h9 u64 total_bytes; /* total bytes in the space, member
115 u64 total_bytes, u64 bytes_used,
Dsysfs.c367 BTRFS_ATTR(raid, total_bytes, raid_bytes_show);
381 if (&attr->attr == BTRFS_ATTR_PTR(raid, total_bytes)) in raid_bytes_show()
391 BTRFS_ATTR_PTR(raid, total_bytes),
428 SPACE_INFO_ATTR(total_bytes);
441 BTRFS_ATTR_PTR(space_info, total_bytes),
Ddelalloc-space.c35 if (used + bytes > data_sinfo->total_bytes) { in btrfs_alloc_data_chunk_ondemand()
85 used + bytes - data_sinfo->total_bytes, in btrfs_alloc_data_chunk_ondemand()
Ddev-replace.c166 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()
167 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()
268 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
755 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
Dbackref.c2288 struct btrfs_data_container *init_data_container(u32 total_bytes) argument
2293 alloc_bytes = max_t(size_t, total_bytes, sizeof(*data));
2298 if (total_bytes >= sizeof(*data)) {
2299 data->bytes_left = total_bytes - sizeof(*data);
2302 data->bytes_missing = sizeof(*data) - total_bytes;
2318 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, argument
2324 fspath = init_data_container(total_bytes);
Dvolumes.h95 u64 total_bytes; member
218 BTRFS_DEVICE_GETSET_FUNCS(total_bytes);
Dctree.h198 __le64 total_bytes; member
235 __le64 total_bytes; member
1405 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_device_total_bytes()
1407 total_bytes)); in btrfs_device_total_bytes()
1414 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_set_device_total_bytes()
1416 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
1435 total_bytes, 64);
2027 total_bytes, 64);
2141 total_bytes, 64);
Dvolumes.c1690 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()
[all …]
Dblock-group.c1060 WARN_ON(block_group->space_info->total_bytes in btrfs_remove_block_group()
1067 block_group->space_info->total_bytes -= block_group->key.offset; in btrfs_remove_block_group()
1237 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
2876 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
2880 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
3055 left = info->total_bytes - btrfs_space_info_used(info, true); in check_system_chunk()
Dblock-rsv.c318 if (block_rsv->size >= sinfo->total_bytes) in btrfs_update_global_block_rsv()
Dextent_io.c1689 u64 total_bytes = 0; in find_delalloc_range() local
1723 total_bytes += state->end - state->start + 1; in find_delalloc_range()
1724 if (total_bytes >= max_bytes) in find_delalloc_range()
1968 u64 total_bytes = 0; in count_range_bits() local
1977 total_bytes = tree->dirty_bytes; in count_range_bits()
1995 total_bytes += min(search_end, state->end) + 1 - in count_range_bits()
1997 if (total_bytes >= max_bytes) in count_range_bits()
2013 return total_bytes; in count_range_bits()
Dextent-tree.c5627 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()
5645 if (start > device->total_bytes) { in btrfs_trim_free_extents()
5651 device->total_bytes); in btrfs_trim_free_extents()
5665 end = min(end, device->total_bytes - 1); in btrfs_trim_free_extents()
Dioctl.c3304 di_args->total_bytes = btrfs_device_get_total_bytes(dev); in btrfs_ioctl_dev_info()
4136 space->total_bytes = 0; in get_block_group_info()
4141 space->total_bytes += block_group->key.offset; in get_block_group_info()
4268 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
Dsuper.c1981 avail_space = device->total_bytes - device->bytes_used; in btrfs_calc_avail_data_space()
/fs/nfs/
Dwrite.c487 unsigned int total_bytes; in nfs_lock_and_join_requests() local
520 total_bytes = head->wb_bytes; in nfs_lock_and_join_requests()
525 if (subreq->wb_offset == head->wb_offset + total_bytes) in nfs_lock_and_join_requests()
526 total_bytes += subreq->wb_bytes; in nfs_lock_and_join_requests()
549 if (subreq->wb_offset == (head->wb_offset + total_bytes)) { in nfs_lock_and_join_requests()
551 total_bytes += subreq->wb_bytes; in nfs_lock_and_join_requests()
554 (head->wb_offset + total_bytes)))) { in nfs_lock_and_join_requests()
579 head->wb_bytes = total_bytes; in nfs_lock_and_join_requests()