Home
last modified time | relevance | path

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

/fs/btrfs/
A Dspace-info.c368 space_info->total_bytes += block_group->length; in btrfs_add_bg_to_space_info()
507 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
543 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
922 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size()
923 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()
936 thresh = mult_perc(space_info->total_bytes, 90); in need_preemptive_reclaim()
999 if (used < space_info->total_bytes) in need_preemptive_reclaim()
1000 thresh += space_info->total_bytes - used; in need_preemptive_reclaim()
1779 ((used + orig_bytes <= space_info->total_bytes) || in __reserve_bytes()
1792 if (used + orig_bytes <= space_info->total_bytes) { in __reserve_bytes()
[all …]
A Daccessors.h102 static_assert(sizeof(u64) == sizeof_field(struct btrfs_dev_item, total_bytes)); in btrfs_device_total_bytes()
103 return btrfs_get_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes)); in btrfs_device_total_bytes()
109 static_assert(sizeof(u64) == sizeof_field(struct btrfs_dev_item, total_bytes)); in btrfs_set_device_total_bytes()
111 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
128 total_bytes, 64);
766 total_bytes, 64);
837 total_bytes, 64);
A Dfile-item.c1056 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
1071 bytenr = sums->logical + total_bytes; in btrfs_csum_file_blocks()
1157 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1222 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1245 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1254 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
1256 if (total_bytes < sums->len) { in btrfs_csum_file_blocks()
A Dbackref.h241 struct btrfs_data_container *init_data_container(u32 total_bytes);
242 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
A Dextent-io-tree.c990 u64 total_bytes = 0; in btrfs_find_delalloc_range() local
1022 total_bytes += state->end - state->start + 1; in btrfs_find_delalloc_range()
1023 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
1673 u64 total_bytes = 0; in btrfs_count_range_bits() local
1723 total_bytes += min(search_end, state->end) + 1 - in btrfs_count_range_bits()
1725 if (total_bytes >= max_bytes) in btrfs_count_range_bits()
1747 return total_bytes; in btrfs_count_range_bits()
A Ddev-replace.c200 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()
201 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()
975 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
A Dspace-info.h115 u64 total_bytes; /* total bytes in the space, member
A Dvolumes.h142 u64 total_bytes; member
294 BTRFS_DEVICE_GETSET_FUNCS(total_bytes);
A Dvolumes.c1690 u64 search_end = device->total_bytes; in find_free_dev_extent()
2773 device->total_bytes = in btrfs_init_new_device()
2775 device->disk_total_bytes = device->total_bytes; in btrfs_init_new_device()
2776 device->commit_total_bytes = device->total_bytes; in btrfs_init_new_device()
2808 fs_devices->total_rw_bytes += device->total_bytes; in btrfs_init_new_device()
3002 if (new_size <= device->total_bytes || in btrfs_grow_device()
5266 if (device->total_bytes > device->bytes_used) in gather_device_info()
7131 device->total_bytes = device->disk_total_bytes; in fill_device_from_item()
7297 if (device->total_bytes > max_total_bytes) { in read_one_dev()
7300 max_total_bytes, device->total_bytes); in read_one_dev()
[all …]
A Dbackref.c2767 struct btrfs_data_container *init_data_container(u32 total_bytes) in init_data_container() argument
2772 alloc_bytes = max_t(size_t, total_bytes, sizeof(*data)); in init_data_container()
2777 if (total_bytes >= sizeof(*data)) in init_data_container()
2778 data->bytes_left = total_bytes - sizeof(*data); in init_data_container()
2780 data->bytes_missing = sizeof(*data) - total_bytes; in init_data_container()
2791 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, in init_ipath() argument
2797 fspath = init_data_container(total_bytes); in init_ipath()
A Dsysfs.c688 BTRFS_ATTR(raid, total_bytes, raid_bytes_show);
702 if (&attr->attr == BTRFS_ATTR_PTR(raid, total_bytes)) in raid_bytes_show()
717 BTRFS_ATTR_PTR(raid, total_bytes),
890 SPACE_INFO_ATTR(total_bytes);
1018 BTRFS_ATTR_PTR(space_info, total_bytes),
A Dblock-group.c1222 WARN_ON(block_group->space_info->total_bytes in btrfs_remove_block_group()
1231 block_group->space_info->total_bytes -= block_group->length; in btrfs_remove_block_group()
1397 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
1611 if ((space_info->total_bytes - block_group->length < used && in btrfs_delete_unused_bgs()
3902 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
3906 if (bytes_used + SZ_2M < mult_perc(sinfo->total_bytes, 80)) in should_alloc_chunk()
4305 left = info->total_bytes - btrfs_space_info_used(info, true); in reserve_chunk_space()
A Dblock-rsv.c395 if (block_rsv->size >= sinfo->total_bytes) in btrfs_update_global_block_rsv()
A Dioctl.c2843 di_args->total_bytes = btrfs_device_get_total_bytes(dev); in btrfs_ioctl_dev_info()
2943 space->total_bytes = 0; in get_block_group_info()
2948 space->total_bytes += block_group->length; in get_block_group_info()
3068 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
A Dextent-tree.c6433 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()
6451 if (start > device->total_bytes) { in btrfs_trim_free_extents()
6457 device->total_bytes); in btrfs_trim_free_extents()
6471 end = min(end, device->total_bytes - 1); in btrfs_trim_free_extents()
A Dsuper.c1660 avail_space = device->total_bytes - device->bytes_used; in btrfs_calc_avail_data_space()
A Dzoned.c2583 space_info->total_bytes -= bg->length; in btrfs_zoned_reserve_data_reloc_bg()
/fs/notify/fanotify/
A Dfanotify_user.c602 int ret, total_bytes = 0, info_type = 0; in copy_info_records_to_user() local
630 total_bytes += ret; in copy_info_records_to_user()
646 total_bytes += ret; in copy_info_records_to_user()
696 total_bytes += ret; in copy_info_records_to_user()
706 total_bytes += ret; in copy_info_records_to_user()
715 total_bytes += ret; in copy_info_records_to_user()
724 total_bytes += ret; in copy_info_records_to_user()
733 total_bytes += ret; in copy_info_records_to_user()
736 return total_bytes; in copy_info_records_to_user()

Completed in 109 milliseconds