Home
last modified time | relevance | path

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

/fs/btrfs/
Dspace-info.c255 u64 total_bytes, u64 bytes_used, in btrfs_update_space_info() argument
267 found->total_bytes += total_bytes; in btrfs_update_space_info()
268 found->disk_total += total_bytes * factor; in btrfs_update_space_info()
273 if (total_bytes > 0) in btrfs_update_space_info()
345 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
381 if ((used + ticket->bytes <= space_info->total_bytes) || in btrfs_try_granting_tickets()
420 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
424 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
726 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size()
727 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()
[all …]
Dfile-item.c636 unsigned long total_bytes = 0; in btrfs_csum_one_bio() local
697 bytes_left = bio->bi_iter.bi_size - total_bytes; in btrfs_csum_one_bio()
711 + total_bytes; in btrfs_csum_one_bio()
724 total_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
982 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
997 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
1083 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1148 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1173 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1182 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
115 u64 total_bytes, u64 bytes_used,
Dbackref.h56 struct btrfs_data_container *init_data_container(u32 total_bytes);
57 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
Dvolumes.h86 u64 total_bytes; member
214 BTRFS_DEVICE_GETSET_FUNCS(total_bytes);
Ddev-replace.c205 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()
206 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()
312 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
1009 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
Dsysfs.c659 BTRFS_ATTR(raid, total_bytes, raid_bytes_show);
673 if (&attr->attr == BTRFS_ATTR_PTR(raid, total_bytes)) in raid_bytes_show()
688 BTRFS_ATTR_PTR(raid, total_bytes),
716 SPACE_INFO_ATTR(total_bytes);
733 BTRFS_ATTR_PTR(space_info, total_bytes),
Dvolumes.c1644 u64 search_end = device->total_bytes; in find_free_dev_extent_start()
2713 device->total_bytes = round_down(i_size_read(bdev->bd_inode), in btrfs_init_new_device()
2715 device->disk_total_bytes = device->total_bytes; in btrfs_init_new_device()
2716 device->commit_total_bytes = device->total_bytes; in btrfs_init_new_device()
2744 fs_devices->total_rw_bytes += device->total_bytes; in btrfs_init_new_device()
2746 atomic64_add(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2753 round_down(orig_super_total_bytes + device->total_bytes, in btrfs_init_new_device()
2852 fs_info->fs_devices->total_rw_bytes -= device->total_bytes; in btrfs_init_new_device()
2853 atomic64_sub(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2940 diff = round_down(new_size - device->total_bytes, fs_info->sectorsize); in btrfs_grow_device()
[all …]
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);
Dctree.h199 __le64 total_bytes; member
236 __le64 total_bytes; member
1677 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_device_total_bytes()
1679 total_bytes)); in btrfs_device_total_bytes()
1686 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_set_device_total_bytes()
1688 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
1707 total_bytes, 64);
2329 total_bytes, 64);
2443 total_bytes, 64);
Dblock-group.c1015 WARN_ON(block_group->space_info->total_bytes in btrfs_remove_block_group()
1024 block_group->space_info->total_bytes -= block_group->length; in btrfs_remove_block_group()
1192 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
3413 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
3417 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
3761 left = info->total_bytes - btrfs_space_info_used(info, true); in reserve_chunk_space()
Dblock-rsv.c410 if (block_rsv->size >= sinfo->total_bytes) in btrfs_update_global_block_rsv()
Dextent_io.c1769 u64 total_bytes = 0; in btrfs_find_delalloc_range() local
1803 total_bytes += state->end - state->start + 1; in btrfs_find_delalloc_range()
1804 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
2089 u64 total_bytes = 0; in count_range_bits() local
2098 total_bytes = tree->dirty_bytes; in count_range_bits()
2116 total_bytes += min(search_end, state->end) + 1 - in count_range_bits()
2118 if (total_bytes >= max_bytes) in count_range_bits()
2134 return total_bytes; in count_range_bits()
Dioctl.c3438 di_args->total_bytes = btrfs_device_get_total_bytes(dev); in btrfs_ioctl_dev_info()
3537 space->total_bytes = 0; in get_block_group_info()
3542 space->total_bytes += block_group->length; in get_block_group_info()
3662 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
Dextent-tree.c5970 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()
5988 if (start > device->total_bytes) { in btrfs_trim_free_extents()
5994 device->total_bytes); in btrfs_trim_free_extents()
6008 end = min(end, device->total_bytes - 1); in btrfs_trim_free_extents()
Dsuper.c2214 avail_space = device->total_bytes - device->bytes_used; in btrfs_calc_avail_data_space()
/fs/notify/fanotify/
Dfanotify_user.c440 int ret, total_bytes = 0, info_type = 0; in copy_info_records_to_user() local
460 total_bytes += ret; in copy_info_records_to_user()
510 total_bytes += ret; in copy_info_records_to_user()
520 total_bytes += ret; in copy_info_records_to_user()
523 return total_bytes; in copy_info_records_to_user()