Home
last modified time | relevance | path

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

/fs/btrfs/
Dfile-item.c658 unsigned long total_bytes = 0; in btrfs_csum_one_bio() local
714 bytes_left = bio->bi_iter.bi_size - total_bytes; in btrfs_csum_one_bio()
728 + total_bytes; in btrfs_csum_one_bio()
741 total_bytes += fs_info->sectorsize; in btrfs_csum_one_bio()
999 u64 total_bytes = 0; in btrfs_csum_file_blocks() local
1014 bytenr = sums->bytenr + total_bytes; in btrfs_csum_file_blocks()
1100 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1165 tmp = sums->len - total_bytes; in btrfs_csum_file_blocks()
1190 ins_size = (u32)(sums->len - total_bytes) >> fs_info->sectorsize_bits; in btrfs_csum_file_blocks()
1199 total_bytes += ins_size * fs_info->sectorsize; in btrfs_csum_file_blocks()
[all …]
Dextent-io-tree.c897 u64 total_bytes = 0; in btrfs_find_delalloc_range() local
929 total_bytes += state->end - state->start + 1; in btrfs_find_delalloc_range()
930 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
1506 u64 total_bytes = 0; in count_range_bits() local
1526 total_bytes += min(search_end, state->end) + 1 - in count_range_bits()
1528 if (total_bytes >= max_bytes) in count_range_bits()
1541 return total_bytes; in count_range_bits()
Dbackref.h71 struct btrfs_data_container *init_data_container(u32 total_bytes);
72 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
Dspace-info.h11 u64 total_bytes; /* total bytes in the space, member
Ddev-replace.c205 dev_replace->tgtdev->total_bytes = in btrfs_init_dev_replace()
206 dev_replace->srcdev->total_bytes; in btrfs_init_dev_replace()
315 device->total_bytes = btrfs_device_get_total_bytes(srcdev); in btrfs_init_dev_replace_tgtdev()
966 btrfs_device_set_total_bytes(tgt_device, src_device->total_bytes); in btrfs_dev_replace_finishing()
Dspace-info.c307 found->total_bytes += block_group->length; in btrfs_add_bg_to_space_info()
390 return space_info->total_bytes; in writable_total_bytes()
510 (s64)(info->total_bytes - btrfs_space_info_used(info, true)), in __btrfs_dump_space_info()
514 info->total_bytes, info->bytes_used, info->bytes_pinned, in __btrfs_dump_space_info()
Dvolumes.h125 u64 total_bytes; member
271 BTRFS_DEVICE_GETSET_FUNCS(total_bytes);
Dvolumes.c1610 u64 search_end = device->total_bytes; in find_free_dev_extent_start()
2716 device->total_bytes = in btrfs_init_new_device()
2718 device->disk_total_bytes = device->total_bytes; in btrfs_init_new_device()
2719 device->commit_total_bytes = device->total_bytes; in btrfs_init_new_device()
2754 fs_devices->total_rw_bytes += device->total_bytes; in btrfs_init_new_device()
2756 atomic64_add(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2763 round_down(orig_super_total_bytes + device->total_bytes, in btrfs_init_new_device()
2862 fs_info->fs_devices->total_rw_bytes -= device->total_bytes; in btrfs_init_new_device()
2863 atomic64_sub(device->total_bytes, &fs_info->free_chunk_space); in btrfs_init_new_device()
2950 diff = round_down(new_size - device->total_bytes, fs_info->sectorsize); in btrfs_grow_device()
[all …]
Dbackref.c2472 struct btrfs_data_container *init_data_container(u32 total_bytes) in init_data_container() argument
2477 alloc_bytes = max_t(size_t, total_bytes, sizeof(*data)); in init_data_container()
2482 if (total_bytes >= sizeof(*data)) { in init_data_container()
2483 data->bytes_left = total_bytes - sizeof(*data); in init_data_container()
2486 data->bytes_missing = sizeof(*data) - total_bytes; in init_data_container()
2502 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, in init_ipath() argument
2508 fspath = init_data_container(total_bytes); in init_ipath()
Dctree.h210 __le64 total_bytes; member
261 __le64 total_bytes; member
1847 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_device_total_bytes()
1849 total_bytes)); in btrfs_device_total_bytes()
1856 sizeof(((struct btrfs_dev_item *)0))->total_bytes); in btrfs_set_device_total_bytes()
1858 btrfs_set_64(eb, s, offsetof(struct btrfs_dev_item, total_bytes), val); in btrfs_set_device_total_bytes()
1877 total_bytes, 64);
2510 total_bytes, 64);
2622 total_bytes, 64);
Dsysfs.c663 BTRFS_ATTR(raid, total_bytes, raid_bytes_show);
677 if (&attr->attr == BTRFS_ATTR_PTR(raid, total_bytes)) in raid_bytes_show()
692 BTRFS_ATTR_PTR(raid, total_bytes),
826 SPACE_INFO_ATTR(total_bytes);
877 BTRFS_ATTR_PTR(space_info, total_bytes),
Dblock-group.c1050 WARN_ON(block_group->space_info->total_bytes in btrfs_remove_block_group()
1063 block_group->space_info->total_bytes -= block_group->length; in btrfs_remove_block_group()
1234 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
1416 if (space_info->total_bytes - block_group->length < used) { in btrfs_delete_unused_bgs()
3585 if (sinfo->total_bytes - bytes_used < thresh) in should_alloc_chunk()
3589 if (bytes_used + SZ_2M < div_factor(sinfo->total_bytes, 8)) in should_alloc_chunk()
3972 left = info->total_bytes - btrfs_space_info_used(info, true); in reserve_chunk_space()
Dblock-rsv.c419 if (block_rsv->size >= sinfo->total_bytes) in btrfs_update_global_block_rsv()
Dioctl.c3775 di_args->total_bytes = btrfs_device_get_total_bytes(dev); in btrfs_ioctl_dev_info()
3875 space->total_bytes = 0; in get_block_group_info()
3880 space->total_bytes += block_group->length; in get_block_group_info()
4000 space.total_bytes = block_rsv->size; in btrfs_ioctl_space_info()
Dextent-tree.c6091 if (device->total_bytes <= device->bytes_used) in btrfs_trim_free_extents()
6109 if (start > device->total_bytes) { in btrfs_trim_free_extents()
6115 device->total_bytes); in btrfs_trim_free_extents()
6129 end = min(end, device->total_bytes - 1); in btrfs_trim_free_extents()
Dzoned.c2322 if (space_info->active_total_bytes == space_info->total_bytes) in btrfs_zoned_activate_one_bg()
Dsuper.c2278 avail_space = device->total_bytes - device->bytes_used; in btrfs_calc_avail_data_space()
/fs/notify/fanotify/
Dfanotify_user.c498 int ret, total_bytes = 0, info_type = 0; in copy_info_records_to_user() local
526 total_bytes += ret; in copy_info_records_to_user()
542 total_bytes += ret; in copy_info_records_to_user()
592 total_bytes += ret; in copy_info_records_to_user()
602 total_bytes += ret; in copy_info_records_to_user()
611 total_bytes += ret; in copy_info_records_to_user()
614 return total_bytes; in copy_info_records_to_user()