/fs/btrfs/ |
D | extent-tree.c | 79 u64 num_bytes, int alloc); 107 u64 num_bytes, int reserve, 110 u64 num_bytes); 112 u64 bytenr, u64 num_bytes, int reserved); 229 u64 start, u64 num_bytes) in add_excluded_extent() argument 231 u64 end = start + num_bytes - 1; in add_excluded_extent() 1535 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument 1557 key.offset = num_bytes; in lookup_inline_extent_backref() 1594 key.offset == num_bytes) in lookup_inline_extent_backref() 1600 key.offset = num_bytes; in lookup_inline_extent_backref() [all …]
|
D | qgroup.h | 32 u64 num_bytes; member 73 u64 bytenr, u64 num_bytes, 83 u64 ref_root, u64 num_bytes); 89 u64 ref_root, u64 num_bytes) in btrfs_qgroup_free_delayed_ref() argument 91 btrfs_qgroup_free_refroot(fs_info, ref_root, num_bytes); in btrfs_qgroup_free_delayed_ref() 92 trace_btrfs_qgroup_free_delayed_ref(ref_root, num_bytes); in btrfs_qgroup_free_delayed_ref() 106 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes); 108 void btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes);
|
D | delayed-ref.c | 379 head->node.num_bytes; in btrfs_select_ref_head() 481 existing->num_bytes = update->num_bytes; in update_existing_head_ref() 518 delayed_refs->pending_csums -= existing->num_bytes; in update_existing_head_ref() 520 delayed_refs->pending_csums += existing->num_bytes; in update_existing_head_ref() 535 u64 bytenr, u64 num_bytes, u64 ref_root, u64 reserved, in add_delayed_ref_head() argument 578 ref->num_bytes = num_bytes; in add_delayed_ref_head() 603 qrecord->num_bytes = num_bytes; in add_delayed_ref_head() 631 delayed_refs->pending_csums += num_bytes; in add_delayed_ref_head() 648 u64 num_bytes, u64 parent, u64 ref_root, int level, in add_delayed_tree_ref() argument 666 ref->num_bytes = num_bytes; in add_delayed_tree_ref() [all …]
|
D | qgroup.c | 1046 u64 num_bytes, int sign) in __qgroup_excl_accounting() argument 1058 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting() 1059 qgroup->rfer_cmpr += sign * num_bytes; in __qgroup_excl_accounting() 1061 WARN_ON(sign < 0 && qgroup->excl < num_bytes); in __qgroup_excl_accounting() 1062 qgroup->excl += sign * num_bytes; in __qgroup_excl_accounting() 1063 qgroup->excl_cmpr += sign * num_bytes; in __qgroup_excl_accounting() 1065 qgroup->reserved -= num_bytes; in __qgroup_excl_accounting() 1081 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting() 1082 qgroup->rfer_cmpr += sign * num_bytes; in __qgroup_excl_accounting() 1083 WARN_ON(sign < 0 && qgroup->excl < num_bytes); in __qgroup_excl_accounting() [all …]
|
D | delayed-ref.h | 50 u64 num_bytes; member 244 u64 bytenr, u64 num_bytes, u64 parent, 249 u64 bytenr, u64 num_bytes, 255 u64 ref_root, u64 bytenr, u64 num_bytes); 258 u64 bytenr, u64 num_bytes,
|
D | delayed-inode.c | 552 u64 num_bytes; in btrfs_delayed_item_reserve_metadata() local 561 num_bytes = btrfs_calc_trans_metadata_size(root, 1); in btrfs_delayed_item_reserve_metadata() 562 ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes); in btrfs_delayed_item_reserve_metadata() 566 num_bytes, 1); in btrfs_delayed_item_reserve_metadata() 567 item->bytes_reserved = num_bytes; in btrfs_delayed_item_reserve_metadata() 597 u64 num_bytes; in btrfs_delayed_inode_reserve_metadata() local 604 num_bytes = btrfs_calc_trans_metadata_size(root, 1); in btrfs_delayed_inode_reserve_metadata() 617 ret = btrfs_block_rsv_add(root, dst_rsv, num_bytes, in btrfs_delayed_inode_reserve_metadata() 628 node->bytes_reserved = num_bytes; in btrfs_delayed_inode_reserve_metadata() 632 num_bytes, 1); in btrfs_delayed_inode_reserve_metadata() [all …]
|
D | file.c | 495 u64 num_bytes; in btrfs_dirty_pages() local 502 num_bytes = ALIGN(write_bytes + pos - start_pos, root->sectorsize); in btrfs_dirty_pages() 504 end_of_last_block = start_pos + num_bytes - 1; in btrfs_dirty_pages() 706 u64 num_bytes = 0; in __btrfs_drop_extents() local 778 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in __btrfs_drop_extents() 855 disk_bytenr, num_bytes, 0, in __btrfs_drop_extents() 933 disk_bytenr, num_bytes, 0, in __btrfs_drop_extents() 1083 u64 num_bytes; in btrfs_mark_extent_written() local 1122 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_mark_extent_written() 1213 ret = btrfs_inc_extent_ref(trans, root, bytenr, num_bytes, 0, in btrfs_mark_extent_written() [all …]
|
D | props.c | 313 u64 num_bytes; in inherit_props() local 322 num_bytes = btrfs_calc_trans_metadata_size(root, 1); in inherit_props() 324 num_bytes, BTRFS_RESERVE_NO_FLUSH); in inherit_props() 329 btrfs_block_rsv_release(root, trans->block_rsv, num_bytes); in inherit_props()
|
D | inode.c | 407 u64 num_bytes; in compress_file_range() local 469 num_bytes = ALIGN(end - start + 1, blocksize); in compress_file_range() 470 num_bytes = max(blocksize, num_bytes); in compress_file_range() 582 num_bytes = total_in; in compress_file_range() 612 add_async_extent(async_cow, start, num_bytes, in compress_file_range() 616 if (start + num_bytes < end) { in compress_file_range() 617 start += num_bytes; in compress_file_range() 875 u64 num_bytes) in get_extent_allocation_hint() argument 882 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint() 927 u64 num_bytes; in cow_file_range() local [all …]
|
D | transaction.c | 456 u64 num_bytes = 0; in start_transaction() local 487 num_bytes = btrfs_calc_trans_metadata_size(root, num_items); in start_transaction() 492 num_bytes += root->nodesize; in start_transaction() 498 num_bytes, flush); in start_transaction() 560 if (num_bytes) { in start_transaction() 562 h->transid, num_bytes, 1); in start_transaction() 564 h->bytes_reserved = num_bytes; in start_transaction() 580 if (num_bytes) in start_transaction() 582 num_bytes); in start_transaction() 600 u64 num_bytes; in btrfs_start_transaction_fallback_global_rsv() local [all …]
|
D | relocation.c | 1586 u64 bytenr, u64 num_bytes) argument 1617 if (num_bytes != btrfs_file_extent_disk_num_bytes(leaf, fi)) { 1645 u64 num_bytes; local 1673 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); 1711 bytenr, num_bytes); 1725 num_bytes, parent, 1733 ret = btrfs_free_extent(trans, root, bytenr, num_bytes, 2280 u64 num_bytes = 0; local 2290 num_bytes = rc->merging_rsv_size; 2291 ret = btrfs_block_rsv_add(root, rc->block_rsv, num_bytes, [all …]
|
D | inode-map.c | 400 u64 num_bytes; in btrfs_save_ino_cache() local 426 num_bytes = trans->bytes_reserved; in btrfs_save_ino_cache() 513 trans->bytes_reserved = num_bytes; in btrfs_save_ino_cache()
|
D | ctree.h | 951 __le64 num_bytes; member 3188 struct btrfs_file_extent_item, num_bytes, 64); 3214 num_bytes, 64); 3434 u64 bytenr, u64 num_bytes); 3464 int btrfs_reserve_extent(struct btrfs_root *root, u64 num_bytes, 3473 u64 bytenr, u64 num_bytes, u64 flags, 3477 u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, 3490 u64 bytenr, u64 num_bytes, u64 parent, 3550 int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes); 3551 void btrfs_delalloc_release_metadata(struct inode *inode, u64 num_bytes); [all …]
|
D | volumes.h | 482 struct btrfs_device *device, u64 num_bytes, 485 struct btrfs_device *device, u64 num_bytes,
|
D | check-integrity.c | 1421 u64 num_bytes; in btrfsic_handle_extent_data() local 1463 num_bytes = btrfs_stack_file_extent_num_bytes(&file_extent_item); in btrfsic_handle_extent_data() 1465 num_bytes = btrfs_stack_file_extent_disk_num_bytes(&file_extent_item); in btrfsic_handle_extent_data() 1475 num_bytes); in btrfsic_handle_extent_data() 1476 while (num_bytes > 0) { in btrfsic_handle_extent_data() 1481 if (num_bytes > state->datablock_size) in btrfsic_handle_extent_data() 1484 chunk_len = num_bytes; in btrfsic_handle_extent_data() 1562 num_bytes -= chunk_len; in btrfsic_handle_extent_data()
|
D | volumes.c | 1247 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent_start() argument 1357 if (hole_size >= num_bytes) { in find_free_dev_extent_start() 1394 if (max_hole_size < num_bytes) in find_free_dev_extent_start() 1408 struct btrfs_device *device, u64 num_bytes, in find_free_dev_extent() argument 1413 num_bytes, 0, start, len); in find_free_dev_extent() 1477 u64 chunk_offset, u64 start, u64 num_bytes) in btrfs_alloc_dev_extent() argument 1510 btrfs_set_dev_extent_length(leaf, extent, num_bytes); in btrfs_alloc_dev_extent() 4522 u64 num_bytes; in __btrfs_alloc_chunk() local 4725 num_bytes = stripe_size * data_stripes; in __btrfs_alloc_chunk() 4727 trace_btrfs_chunk_alloc(info->chunk_root, map, start, num_bytes); in __btrfs_alloc_chunk() [all …]
|
D | file-item.c | 44 u64 num_bytes, u64 offset, u64 ram_bytes, in btrfs_insert_file_extent() argument 72 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_file_extent()
|
D | send.c | 1288 u64 num_bytes; in find_extent_clone() local 1334 num_bytes = btrfs_file_extent_num_bytes(eb, fi); in find_extent_clone() 1370 backref_ctx->extent_len = num_bytes; in find_extent_clone() 1390 if (data_offset + num_bytes >= ino_size) in find_extent_clone() 1420 data_offset, ino, num_bytes, logical); in find_extent_clone()
|
D | disk-io.c | 4194 head->node.num_bytes, 1); in btrfs_destroy_delayed_refs()
|
/fs/ecryptfs/ |
D | read_write.c | 128 size_t num_bytes = (PAGE_CACHE_SIZE - start_offset_in_page); in ecryptfs_write() local 136 if (num_bytes > total_remaining_bytes) in ecryptfs_write() 137 num_bytes = total_remaining_bytes; in ecryptfs_write() 142 if (num_bytes > total_remaining_zeros) in ecryptfs_write() 143 num_bytes = total_remaining_zeros; in ecryptfs_write() 175 (data + data_offset), num_bytes); in ecryptfs_write() 176 data_offset += num_bytes; in ecryptfs_write() 195 pos += num_bytes; in ecryptfs_write()
|
/fs/btrfs/tests/ |
D | qgroup-tests.c | 35 u64 num_bytes, u64 parent, u64 root_objectid) in insert_normal_tree_ref() argument 51 ins.offset = num_bytes; in insert_normal_tree_ref() 87 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument 101 key.offset = num_bytes; in add_tree_ref() 140 u64 num_bytes) in remove_extent_item() argument 151 key.offset = num_bytes; in remove_extent_item() 172 u64 num_bytes, u64 parent, u64 root_objectid) in remove_extent_ref() argument 185 key.offset = num_bytes; in remove_extent_ref()
|
/fs/ocfs2/ |
D | alloc.c | 1582 unsigned int num_bytes; in ocfs2_shift_records_right() local 1588 num_bytes = sizeof(struct ocfs2_extent_rec) * next_free; in ocfs2_shift_records_right() 1590 memmove(&el->l_recs[1], &el->l_recs[0], num_bytes); in ocfs2_shift_records_right() 1596 int i, insert_index, next_free, has_empty, num_bytes; in ocfs2_rotate_leaf() local 1649 num_bytes = next_free - insert_index; in ocfs2_rotate_leaf() 1650 num_bytes *= sizeof(struct ocfs2_extent_rec); in ocfs2_rotate_leaf() 1653 num_bytes); in ocfs2_rotate_leaf()
|
/fs/fuse/ |
D | file.c | 651 size_t num_bytes, struct fuse_io_priv *io) in fuse_async_req_send() argument 655 io->size += num_bytes; in fuse_async_req_send() 665 return num_bytes; in fuse_async_req_send()
|