leaf 8 arch/mips/kernel/cacheinfo.c #define populate_cache(cache, leaf, c_level, c_type) \ leaf 10 arch/mips/kernel/cacheinfo.c leaf->type = c_type; \ leaf 11 arch/mips/kernel/cacheinfo.c leaf->level = c_level; \ leaf 12 arch/mips/kernel/cacheinfo.c leaf->coherency_line_size = c->cache.linesz; \ leaf 13 arch/mips/kernel/cacheinfo.c leaf->number_of_sets = c->cache.sets; \ leaf 14 arch/mips/kernel/cacheinfo.c leaf->ways_of_associativity = c->cache.ways; \ leaf 15 arch/mips/kernel/cacheinfo.c leaf->size = c->cache.linesz * c->cache.sets * \ leaf 17 arch/mips/kernel/cacheinfo.c leaf++; \ leaf 517 arch/mips/kernel/process.c int leaf; leaf 575 arch/mips/kernel/process.c leaf = get_frame_info(&info); leaf 576 arch/mips/kernel/process.c if (leaf < 0) leaf 582 arch/mips/kernel/process.c if (leaf) leaf 1287 arch/powerpc/kvm/book3s_64_mmu_radix.c goto leaf; leaf 1299 arch/powerpc/kvm/book3s_64_mmu_radix.c goto leaf; leaf 1309 arch/powerpc/kvm/book3s_64_mmu_radix.c leaf: leaf 44 arch/x86/events/intel/pt.c [PT_CAP_ ## _n] = { .name = __stringify(_n), .leaf = _l, \ leaf 49 arch/x86/events/intel/pt.c u32 leaf; leaf 74 arch/x86/events/intel/pt.c u32 c = caps[cd->leaf * PT_CPUID_REGS_NUM + cd->reg]; leaf 230 arch/x86/kernel/cpu/cacheinfo.c amd_cpuid4(int leaf, union _cpuid4_leaf_eax *eax, leaf 248 arch/x86/kernel/cpu/cacheinfo.c switch (leaf) { leaf 286 arch/x86/kernel/cpu/cacheinfo.c eax->split.type = types[leaf]; leaf 287 arch/x86/kernel/cpu/cacheinfo.c eax->split.level = levels[leaf]; leaf 35 arch/x86/kernel/cpu/topology.c static int check_extended_topology_leaf(int leaf) leaf 39 arch/x86/kernel/cpu/topology.c cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); leaf 69 arch/x86/kernel/cpu/topology.c int leaf; leaf 71 arch/x86/kernel/cpu/topology.c leaf = detect_extended_topology_leaf(c); leaf 72 arch/x86/kernel/cpu/topology.c if (leaf < 0) leaf 77 arch/x86/kernel/cpu/topology.c cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); leaf 99 arch/x86/kernel/cpu/topology.c int leaf; leaf 101 arch/x86/kernel/cpu/topology.c leaf = detect_extended_topology_leaf(c); leaf 102 arch/x86/kernel/cpu/topology.c if (leaf < 0) leaf 108 arch/x86/kernel/cpu/topology.c cpuid_count(leaf, SMT_LEVEL, &eax, &ebx, &ecx, &edx); leaf 117 arch/x86/kernel/cpu/topology.c cpuid_count(leaf, sub_index, &eax, &ebx, &ecx, &edx); leaf 4047 arch/x86/kvm/mmu.c int root, leaf; leaf 4056 arch/x86/kvm/mmu.c leaf = root = iterator.level; leaf 4061 arch/x86/kvm/mmu.c sptes[leaf - 1] = spte; leaf 4062 arch/x86/kvm/mmu.c leaf--; leaf 4076 arch/x86/kvm/mmu.c while (root > leaf) { leaf 158 arch/x86/xen/p2m.c static void p2m_mid_mfn_init(unsigned long *mid, unsigned long *leaf) leaf 163 arch/x86/xen/p2m.c mid[i] = virt_to_mfn(leaf); leaf 274 drivers/base/arch_topology.c bool leaf = true; leaf 283 drivers/base/arch_topology.c leaf = false; leaf 302 drivers/base/arch_topology.c if (!leaf) { leaf 310 drivers/base/arch_topology.c } else if (leaf) { leaf 321 drivers/base/arch_topology.c bool leaf = true; leaf 338 drivers/base/arch_topology.c leaf = false; leaf 362 drivers/base/arch_topology.c if (leaf) { leaf 377 drivers/base/arch_topology.c if (leaf && !has_cores) leaf 380 drivers/base/arch_topology.c if (leaf) leaf 112 drivers/firewire/core-device.c const u32 *leaf = search_leaf(directory, key); leaf 113 drivers/firewire/core-device.c if (!leaf) leaf 116 drivers/firewire/core-device.c return textual_leaf_to_string(leaf, buf, size); leaf 997 drivers/firewire/sbp2.c const u32 *leaf) leaf 999 drivers/firewire/sbp2.c if ((leaf[0] & 0xffff0000) == 0x00020000) leaf 1000 drivers/firewire/sbp2.c tgt->guid = (u64)leaf[1] << 32 | leaf[2]; leaf 146 drivers/gpu/drm/i915/selftests/i915_syncmap.c static int check_seqno(struct i915_syncmap *leaf, unsigned int idx, u32 seqno) leaf 148 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (leaf->height) { leaf 150 drivers/gpu/drm/i915/selftests/i915_syncmap.c __func__, leaf->height); leaf 154 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (__sync_seqno(leaf)[idx] != seqno) { leaf 156 drivers/gpu/drm/i915/selftests/i915_syncmap.c __func__, idx, __sync_seqno(leaf)[idx], seqno); leaf 508 drivers/gpu/drm/i915/selftests/i915_syncmap.c struct i915_syncmap *leaf = __sync_child(sync)[idx]; leaf 510 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (leaf->height) { leaf 516 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (leaf->parent != sync) { leaf 523 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (!is_power_of_2(leaf->bitmap)) { leaf 525 drivers/gpu/drm/i915/selftests/i915_syncmap.c idx, leaf->bitmap, hweight32(leaf->bitmap)); leaf 530 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (leaf->bitmap != BIT(idx)) { leaf 532 drivers/gpu/drm/i915/selftests/i915_syncmap.c idx, ilog2(leaf->bitmap), idx); leaf 429 drivers/infiniband/hw/i40iw/i40iw_pble.c struct i40iw_pble_info *leaf = lvl2->leaf; leaf 433 drivers/infiniband/hw/i40iw/i40iw_pble.c for (i = 0; i < lvl2->leaf_cnt; i++, leaf++) { leaf 434 drivers/infiniband/hw/i40iw/i40iw_pble.c if (leaf->addr) leaf 435 drivers/infiniband/hw/i40iw/i40iw_pble.c gen_pool_free(pool, leaf->addr, (leaf->cnt << 3)); leaf 443 drivers/infiniband/hw/i40iw/i40iw_pble.c kfree(lvl2->leaf); leaf 444 drivers/infiniband/hw/i40iw/i40iw_pble.c lvl2->leaf = NULL; leaf 462 drivers/infiniband/hw/i40iw/i40iw_pble.c struct i40iw_pble_info *leaf; leaf 470 drivers/infiniband/hw/i40iw/i40iw_pble.c leaf = kzalloc((sizeof(*leaf) * total), GFP_ATOMIC); leaf 471 drivers/infiniband/hw/i40iw/i40iw_pble.c if (!leaf) leaf 473 drivers/infiniband/hw/i40iw/i40iw_pble.c lvl2->leaf = leaf; leaf 477 drivers/infiniband/hw/i40iw/i40iw_pble.c kfree(lvl2->leaf); leaf 478 drivers/infiniband/hw/i40iw/i40iw_pble.c lvl2->leaf = NULL; leaf 485 drivers/infiniband/hw/i40iw/i40iw_pble.c for (i = 0; i < total; i++, leaf++) { leaf 487 drivers/infiniband/hw/i40iw/i40iw_pble.c leaf->addr = gen_pool_alloc(pool, (pblcnt << 3)); leaf 488 drivers/infiniband/hw/i40iw/i40iw_pble.c if (!leaf->addr) leaf 490 drivers/infiniband/hw/i40iw/i40iw_pble.c leaf->idx = fpm_to_idx(pble_rsrc, (u64)gen_pool_virt_to_phys(pool, leaf->addr)); leaf 492 drivers/infiniband/hw/i40iw/i40iw_pble.c leaf->cnt = pblcnt; leaf 493 drivers/infiniband/hw/i40iw/i40iw_pble.c *addr = (u64)leaf->idx; leaf 63 drivers/infiniband/hw/i40iw/i40iw_pble.h struct i40iw_pble_info *leaf; leaf 1321 drivers/infiniband/hw/i40iw/i40iw_verbs.c pinfo = (level == I40IW_LEVEL_1) ? NULL : palloc->level2.leaf; leaf 1359 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_pble_info *leaf = lvl2->leaf; leaf 1371 drivers/infiniband/hw/i40iw/i40iw_verbs.c start_addr = (u64 *)leaf->addr; leaf 1373 drivers/infiniband/hw/i40iw/i40iw_verbs.c for (i = 0; i < lvl2->leaf_cnt; i++, leaf++) { leaf 1374 drivers/infiniband/hw/i40iw/i40iw_verbs.c arr = (u64 *)leaf->addr; leaf 1377 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = i40iw_check_mem_contiguous(arr, leaf->cnt, pg_size); leaf 1411 drivers/infiniband/hw/i40iw/i40iw_verbs.c pinfo = (level == I40IW_LEVEL_1) ? &palloc->level1 : palloc->level2.leaf; leaf 446 drivers/iommu/arm-smmu-v3.c bool leaf; leaf 460 drivers/iommu/arm-smmu-v3.c bool leaf; leaf 852 drivers/iommu/arm-smmu-v3.c cmd[1] |= FIELD_PREP(CMDQ_CFGI_1_LEAF, ent->cfgi.leaf); leaf 861 drivers/iommu/arm-smmu-v3.c cmd[1] |= FIELD_PREP(CMDQ_TLBI_1_LEAF, ent->tlbi.leaf); leaf 866 drivers/iommu/arm-smmu-v3.c cmd[1] |= FIELD_PREP(CMDQ_TLBI_1_LEAF, ent->tlbi.leaf); leaf 1511 drivers/iommu/arm-smmu-v3.c .leaf = true, leaf 1988 drivers/iommu/arm-smmu-v3.c size_t granule, bool leaf, leaf 1997 drivers/iommu/arm-smmu-v3.c .leaf = leaf, leaf 315 drivers/iommu/arm-smmu.c size_t granule, bool leaf, void *cookie) leaf 325 drivers/iommu/arm-smmu.c reg = leaf ? ARM_SMMU_CB_S1_TLBIVAL : ARM_SMMU_CB_S1_TLBIVA; leaf 345 drivers/iommu/arm-smmu.c size_t granule, bool leaf, void *cookie) leaf 354 drivers/iommu/arm-smmu.c reg = leaf ? ARM_SMMU_CB_S2_TLBIIPAS2L : ARM_SMMU_CB_S2_TLBIIPAS2; leaf 372 drivers/iommu/arm-smmu.c size_t granule, bool leaf, void *cookie) leaf 310 drivers/iommu/arm-smmu.h bool leaf, void *cookie); leaf 140 drivers/iommu/msm_iommu.c size_t granule, bool leaf, void *cookie) leaf 177 drivers/iommu/mtk_iommu.c size_t granule, bool leaf, leaf 148 drivers/iommu/qcom_iommu.c size_t granule, bool leaf, void *cookie) leaf 153 drivers/iommu/qcom_iommu.c reg = leaf ? ARM_SMMU_CB_S1_TLBIVAL : ARM_SMMU_CB_S1_TLBIVA; leaf 1506 drivers/md/dm-cache-metadata.c static int __dump_mapping(void *context, uint64_t cblock, void *leaf) leaf 1513 drivers/md/dm-cache-metadata.c memcpy(&value, leaf, sizeof(value)); leaf 851 drivers/md/persistent-data/dm-array.c int (*fn)(void *context, uint64_t key, void *leaf); leaf 855 drivers/md/persistent-data/dm-array.c static int walk_ablock(void *context, uint64_t *keys, void *leaf) leaf 866 drivers/md/persistent-data/dm-array.c memcpy(&block_le, leaf, sizeof(block_le)); leaf 886 drivers/md/persistent-data/dm-array.c int (*fn)(void *, uint64_t key, void *leaf), leaf 180 drivers/md/persistent-data/dm-array.h int (*fn)(void *context, uint64_t key, void *leaf), leaf 950 drivers/md/persistent-data/dm-btree.c int (*fn)(void *context, uint64_t *keys, void *leaf), leaf 985 drivers/md/persistent-data/dm-btree.c int (*fn)(void *context, uint64_t *keys, void *leaf), leaf 176 drivers/md/persistent-data/dm-btree.h int (*fn)(void *context, uint64_t *keys, void *leaf), leaf 71 drivers/net/can/usb/kvaser_usb/kvaser_usb.h } leaf; leaf 720 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c dev->card_data.leaf.family = KVASER_LEAF; leaf 723 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c dev->card_data.leaf.family = KVASER_USBCAN; leaf 182 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c } __packed leaf; leaf 305 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c } __packed leaf; leaf 335 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c } leaf; leaf 362 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c switch (dev->card_data.leaf.family) { leaf 364 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c cmd_tx_can_flags = &cmd->u.tx_can.leaf.flags; leaf 487 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c switch (dev->card_data.leaf.family) { leaf 489 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c dev->fw_version = le32_to_cpu(cmd.u.leaf.softinfo.fw_version); leaf 491 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c le16_to_cpu(cmd.u.leaf.softinfo.max_outstanding_tx); leaf 535 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c (dev->card_data.leaf.family == KVASER_USBCAN && leaf 671 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c switch (dev->card_data.leaf.family) { leaf 673 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor) { leaf 750 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c switch (dev->card_data.leaf.family) { leaf 752 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor) { leaf 755 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_ACKE) leaf 757 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_CRCE) leaf 759 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_FORME) leaf 761 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_STFE) leaf 763 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_BITE0) leaf 765 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_BITE1) leaf 767 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (es->leaf.error_factor & M16C_EF_TRE) leaf 876 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.channel = cmd->u.leaf.error_event.channel; leaf 877 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.status = cmd->u.leaf.error_event.status; leaf 878 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.txerr = cmd->u.leaf.error_event.tx_errors_count; leaf 879 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.rxerr = cmd->u.leaf.error_event.rx_errors_count; leaf 880 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.leaf.error_factor = cmd->u.leaf.error_event.error_factor; leaf 883 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.channel = cmd->u.leaf.log_message.channel; leaf 884 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.status = cmd->u.leaf.log_message.data[0]; leaf 885 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.txerr = cmd->u.leaf.log_message.data[2]; leaf 886 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.rxerr = cmd->u.leaf.log_message.data[3]; leaf 887 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.leaf.error_factor = cmd->u.leaf.log_message.data[1]; leaf 890 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.channel = cmd->u.leaf.chip_state_event.channel; leaf 891 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.status = cmd->u.leaf.chip_state_event.status; leaf 892 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.txerr = cmd->u.leaf.chip_state_event.tx_errors_count; leaf 893 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.rxerr = cmd->u.leaf.chip_state_event.rx_errors_count; leaf 894 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c es.leaf.error_factor = 0; leaf 942 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c (dev->card_data.leaf.family == KVASER_LEAF && leaf 958 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c switch (dev->card_data.leaf.family) { leaf 960 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c rx_data = cmd->u.leaf.rx_can.data; leaf 973 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (dev->card_data.leaf.family == KVASER_LEAF && cmd->id == leaf 975 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c cf->can_id = le32_to_cpu(cmd->u.leaf.log_message.id); leaf 981 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c cf->can_dlc = get_can_dlc(cmd->u.leaf.log_message.dlc); leaf 983 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (cmd->u.leaf.log_message.flags & MSG_FLAG_REMOTE_FRAME) leaf 986 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c memcpy(cf->data, &cmd->u.leaf.log_message.data, leaf 1070 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (dev->card_data.leaf.family != KVASER_LEAF) leaf 1077 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (dev->card_data.leaf.family == KVASER_LEAF) leaf 1089 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (dev->card_data.leaf.family != KVASER_USBCAN) leaf 1094 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c if (dev->card_data.leaf.family != KVASER_LEAF) leaf 242 drivers/net/ethernet/dec/tulip/eeprom.c struct medialeaf *leaf = &mtable->mleaf[i]; leaf 245 drivers/net/ethernet/dec/tulip/eeprom.c leaf->type = 0; leaf 246 drivers/net/ethernet/dec/tulip/eeprom.c leaf->media = p[0] & 0x3f; leaf 247 drivers/net/ethernet/dec/tulip/eeprom.c leaf->leafdata = p; leaf 252 drivers/net/ethernet/dec/tulip/eeprom.c leaf->type = p[1]; leaf 255 drivers/net/ethernet/dec/tulip/eeprom.c leaf->media = p[2] & 0x0f; leaf 261 drivers/net/ethernet/dec/tulip/eeprom.c leaf->leafdata = p + 2; leaf 268 drivers/net/ethernet/dec/tulip/eeprom.c leaf->media = 11; leaf 274 drivers/net/ethernet/dec/tulip/eeprom.c leaf->media = p[2] & MEDIA_MASK; leaf 276 drivers/net/ethernet/dec/tulip/eeprom.c if (tp->chip_id == DM910X && leaf->media == 1) leaf 277 drivers/net/ethernet/dec/tulip/eeprom.c leaf->media = 3; leaf 278 drivers/net/ethernet/dec/tulip/eeprom.c switch (leaf->media) { leaf 285 drivers/net/ethernet/dec/tulip/eeprom.c if (p[1] == 2 && leaf->media == 0) { leaf 298 drivers/net/ethernet/dec/tulip/eeprom.c leaf->leafdata = p + 2; leaf 301 drivers/net/ethernet/dec/tulip/eeprom.c if (tulip_debug > 1 && leaf->media == 11) { leaf 302 drivers/net/ethernet/dec/tulip/eeprom.c unsigned char *bp = leaf->leafdata; leaf 311 drivers/net/ethernet/dec/tulip/eeprom.c i, medianame[leaf->media & 15], leaf->media, leaf 312 drivers/net/ethernet/dec/tulip/eeprom.c leaf->type < ARRAY_SIZE(block_name) ? block_name[leaf->type] : "<unknown>", leaf 313 drivers/net/ethernet/dec/tulip/eeprom.c leaf->type); leaf 883 fs/btrfs/backref.c struct extent_buffer *leaf; leaf 895 fs/btrfs/backref.c leaf = path->nodes[0]; leaf 898 fs/btrfs/backref.c item_size = btrfs_item_size_nr(leaf, slot); leaf 901 fs/btrfs/backref.c ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); leaf 902 fs/btrfs/backref.c flags = btrfs_extent_flags(leaf, ei); leaf 903 fs/btrfs/backref.c *total_refs += btrfs_extent_refs(leaf, ei); leaf 904 fs/btrfs/backref.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 914 fs/btrfs/backref.c *info_level = btrfs_tree_block_level(leaf, info); leaf 929 fs/btrfs/backref.c type = btrfs_get_extent_inline_ref_type(leaf, iref, leaf 934 fs/btrfs/backref.c offset = btrfs_extent_inline_ref_offset(leaf, iref); leaf 947 fs/btrfs/backref.c count = btrfs_shared_data_ref_count(leaf, sdref); leaf 964 fs/btrfs/backref.c count = btrfs_extent_data_ref_count(leaf, dref); leaf 965 fs/btrfs/backref.c key.objectid = btrfs_extent_data_ref_objectid(leaf, leaf 968 fs/btrfs/backref.c key.offset = btrfs_extent_data_ref_offset(leaf, dref); leaf 975 fs/btrfs/backref.c root = btrfs_extent_data_ref_root(leaf, dref); leaf 1006 fs/btrfs/backref.c struct extent_buffer *leaf; leaf 1019 fs/btrfs/backref.c leaf = path->nodes[0]; leaf 1020 fs/btrfs/backref.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 1041 fs/btrfs/backref.c sdref = btrfs_item_ptr(leaf, slot, leaf 1043 fs/btrfs/backref.c count = btrfs_shared_data_ref_count(leaf, sdref); leaf 1061 fs/btrfs/backref.c dref = btrfs_item_ptr(leaf, slot, leaf 1063 fs/btrfs/backref.c count = btrfs_extent_data_ref_count(leaf, dref); leaf 1064 fs/btrfs/backref.c key.objectid = btrfs_extent_data_ref_objectid(leaf, leaf 1067 fs/btrfs/backref.c key.offset = btrfs_extent_data_ref_offset(leaf, dref); leaf 1074 fs/btrfs/backref.c root = btrfs_extent_data_ref_root(leaf, dref); leaf 1208 fs/btrfs/backref.c struct extent_buffer *leaf; leaf 1212 fs/btrfs/backref.c leaf = path->nodes[0]; leaf 1214 fs/btrfs/backref.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 1539 fs/btrfs/backref.c const struct extent_buffer *leaf; leaf 1551 fs/btrfs/backref.c leaf = path->nodes[0]; leaf 1553 fs/btrfs/backref.c if (slot >= btrfs_header_nritems(leaf)) { leaf 1572 fs/btrfs/backref.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 1587 fs/btrfs/backref.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 498 fs/btrfs/block-group.c struct extent_buffer *leaf; leaf 540 fs/btrfs/block-group.c leaf = path->nodes[0]; leaf 541 fs/btrfs/block-group.c nritems = btrfs_header_nritems(leaf); leaf 550 fs/btrfs/block-group.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 574 fs/btrfs/block-group.c leaf = path->nodes[0]; leaf 575 fs/btrfs/block-group.c nritems = btrfs_header_nritems(leaf); leaf 1436 fs/btrfs/block-group.c struct extent_buffer *leaf; leaf 1447 fs/btrfs/block-group.c leaf = path->nodes[0]; leaf 1448 fs/btrfs/block-group.c if (slot >= btrfs_header_nritems(leaf)) { leaf 1456 fs/btrfs/block-group.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 1481 fs/btrfs/block-group.c read_extent_buffer(leaf, &bg, leaf 1482 fs/btrfs/block-group.c btrfs_item_ptr_offset(leaf, slot), leaf 1701 fs/btrfs/block-group.c struct extent_buffer *leaf; leaf 1732 fs/btrfs/block-group.c leaf = path->nodes[0]; leaf 1733 fs/btrfs/block-group.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 1757 fs/btrfs/block-group.c read_extent_buffer(leaf, &cache->item, leaf 1758 fs/btrfs/block-group.c btrfs_item_ptr_offset(leaf, path->slots[0]), leaf 2128 fs/btrfs/block-group.c struct extent_buffer *leaf; leaf 2137 fs/btrfs/block-group.c leaf = path->nodes[0]; leaf 2138 fs/btrfs/block-group.c bi = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 2139 fs/btrfs/block-group.c write_extent_buffer(leaf, &cache->item, bi, sizeof(cache->item)); leaf 2140 fs/btrfs/block-group.c btrfs_mark_buffer_dirty(leaf); leaf 3097 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 3110 fs/btrfs/ctree.c leaf = p->nodes[0]; leaf 3113 fs/btrfs/ctree.c if (p->slots[0] >= btrfs_header_nritems(leaf)) { leaf 3134 fs/btrfs/ctree.c leaf = p->nodes[0]; leaf 3135 fs/btrfs/ctree.c if (p->slots[0] == btrfs_header_nritems(leaf)) leaf 3608 fs/btrfs/ctree.c noinline int btrfs_leaf_free_space(struct extent_buffer *leaf) leaf 3610 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 3611 fs/btrfs/ctree.c int nritems = btrfs_header_nritems(leaf); leaf 3614 fs/btrfs/ctree.c ret = BTRFS_LEAF_DATA_SIZE(fs_info) - leaf_space_used(leaf, 0, nritems); leaf 3620 fs/btrfs/ctree.c leaf_space_used(leaf, 0, nritems), nritems); leaf 4376 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4382 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4383 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 4388 fs/btrfs/ctree.c if (btrfs_leaf_free_space(leaf) >= ins_len) leaf 4391 fs/btrfs/ctree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 4393 fs/btrfs/ctree.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 4395 fs/btrfs/ctree.c extent_len = btrfs_file_extent_num_bytes(leaf, fi); leaf 4409 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4411 fs/btrfs/ctree.c if (item_size != btrfs_item_size_nr(leaf, path->slots[0])) leaf 4419 fs/btrfs/ctree.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 4421 fs/btrfs/ctree.c if (extent_len != btrfs_file_extent_num_bytes(leaf, fi)) leaf 4442 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4452 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4453 fs/btrfs/ctree.c BUG_ON(btrfs_leaf_free_space(leaf) < sizeof(struct btrfs_item)); leaf 4458 fs/btrfs/ctree.c orig_offset = btrfs_item_offset(leaf, item); leaf 4459 fs/btrfs/ctree.c item_size = btrfs_item_size(leaf, item); leaf 4465 fs/btrfs/ctree.c read_extent_buffer(leaf, buf, btrfs_item_ptr_offset(leaf, leaf 4469 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 4472 fs/btrfs/ctree.c memmove_extent_buffer(leaf, btrfs_item_nr_offset(slot + 1), leaf 4478 fs/btrfs/ctree.c btrfs_set_item_key(leaf, &disk_key, slot); leaf 4482 fs/btrfs/ctree.c btrfs_set_item_offset(leaf, new_item, orig_offset); leaf 4483 fs/btrfs/ctree.c btrfs_set_item_size(leaf, new_item, item_size - split_offset); leaf 4485 fs/btrfs/ctree.c btrfs_set_item_offset(leaf, item, leaf 4487 fs/btrfs/ctree.c btrfs_set_item_size(leaf, item, split_offset); leaf 4489 fs/btrfs/ctree.c btrfs_set_header_nritems(leaf, nritems + 1); leaf 4492 fs/btrfs/ctree.c write_extent_buffer(leaf, buf, leaf 4493 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, path->slots[0]), leaf 4497 fs/btrfs/ctree.c write_extent_buffer(leaf, buf + split_offset, leaf 4498 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, slot), leaf 4500 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 4502 fs/btrfs/ctree.c BUG_ON(btrfs_leaf_free_space(leaf) < 0); leaf 4551 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4555 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4556 fs/btrfs/ctree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 4566 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4567 fs/btrfs/ctree.c memcpy_extent_buffer(leaf, leaf 4568 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, path->slots[0]), leaf 4569 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, path->slots[0] - 1), leaf 4583 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4593 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4596 fs/btrfs/ctree.c old_size = btrfs_item_size_nr(leaf, slot); leaf 4600 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 4601 fs/btrfs/ctree.c data_end = leaf_data_end(leaf); leaf 4603 fs/btrfs/ctree.c old_data_start = btrfs_item_offset_nr(leaf, slot); leaf 4614 fs/btrfs/ctree.c btrfs_init_map_token(&token, leaf); leaf 4619 fs/btrfs/ctree.c ioff = btrfs_token_item_offset(leaf, item, &token); leaf 4620 fs/btrfs/ctree.c btrfs_set_token_item_offset(leaf, item, leaf 4626 fs/btrfs/ctree.c memmove_extent_buffer(leaf, BTRFS_LEAF_DATA_OFFSET + leaf 4633 fs/btrfs/ctree.c btrfs_item_key(leaf, &disk_key, slot); leaf 4639 fs/btrfs/ctree.c fi = btrfs_item_ptr(leaf, slot, leaf 4644 fs/btrfs/ctree.c if (btrfs_file_extent_type(leaf, fi) == leaf 4646 fs/btrfs/ctree.c ptr = btrfs_item_ptr_offset(leaf, slot); leaf 4647 fs/btrfs/ctree.c memmove_extent_buffer(leaf, ptr, leaf 4653 fs/btrfs/ctree.c memmove_extent_buffer(leaf, BTRFS_LEAF_DATA_OFFSET + leaf 4659 fs/btrfs/ctree.c btrfs_set_item_key(leaf, &disk_key, slot); leaf 4665 fs/btrfs/ctree.c btrfs_set_item_size(leaf, item, new_size); leaf 4666 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 4668 fs/btrfs/ctree.c if (btrfs_leaf_free_space(leaf) < 0) { leaf 4669 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4680 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4689 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4691 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 4692 fs/btrfs/ctree.c data_end = leaf_data_end(leaf); leaf 4694 fs/btrfs/ctree.c if (btrfs_leaf_free_space(leaf) < data_size) { leaf 4695 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4699 fs/btrfs/ctree.c old_data = btrfs_item_end_nr(leaf, slot); leaf 4703 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4704 fs/btrfs/ctree.c btrfs_crit(leaf->fs_info, "slot %d too large, nritems %d", leaf 4713 fs/btrfs/ctree.c btrfs_init_map_token(&token, leaf); leaf 4718 fs/btrfs/ctree.c ioff = btrfs_token_item_offset(leaf, item, &token); leaf 4719 fs/btrfs/ctree.c btrfs_set_token_item_offset(leaf, item, leaf 4724 fs/btrfs/ctree.c memmove_extent_buffer(leaf, BTRFS_LEAF_DATA_OFFSET + leaf 4729 fs/btrfs/ctree.c old_size = btrfs_item_size_nr(leaf, slot); leaf 4731 fs/btrfs/ctree.c btrfs_set_item_size(leaf, item, old_size + data_size); leaf 4732 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 4734 fs/btrfs/ctree.c if (btrfs_leaf_free_space(leaf) < 0) { leaf 4735 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4755 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4765 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4768 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 4769 fs/btrfs/ctree.c data_end = leaf_data_end(leaf); leaf 4771 fs/btrfs/ctree.c if (btrfs_leaf_free_space(leaf) < total_size) { leaf 4772 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4774 fs/btrfs/ctree.c total_size, btrfs_leaf_free_space(leaf)); leaf 4778 fs/btrfs/ctree.c btrfs_init_map_token(&token, leaf); leaf 4780 fs/btrfs/ctree.c unsigned int old_data = btrfs_item_end_nr(leaf, slot); leaf 4783 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4796 fs/btrfs/ctree.c ioff = btrfs_token_item_offset(leaf, item, &token); leaf 4797 fs/btrfs/ctree.c btrfs_set_token_item_offset(leaf, item, leaf 4801 fs/btrfs/ctree.c memmove_extent_buffer(leaf, btrfs_item_nr_offset(slot + nr), leaf 4806 fs/btrfs/ctree.c memmove_extent_buffer(leaf, BTRFS_LEAF_DATA_OFFSET + leaf 4815 fs/btrfs/ctree.c btrfs_set_item_key(leaf, &disk_key, slot + i); leaf 4817 fs/btrfs/ctree.c btrfs_set_token_item_offset(leaf, item, leaf 4820 fs/btrfs/ctree.c btrfs_set_token_item_size(leaf, item, data_size[i], &token); leaf 4823 fs/btrfs/ctree.c btrfs_set_header_nritems(leaf, nritems + nr); leaf 4824 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 4826 fs/btrfs/ctree.c if (btrfs_leaf_free_space(leaf) < 0) { leaf 4827 fs/btrfs/ctree.c btrfs_print_leaf(leaf); leaf 4876 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4884 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4885 fs/btrfs/ctree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 4886 fs/btrfs/ctree.c write_extent_buffer(leaf, data, ptr, data_size); leaf 4887 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 4952 fs/btrfs/ctree.c struct extent_buffer *leaf) leaf 4954 fs/btrfs/ctree.c WARN_ON(btrfs_header_generation(leaf) != trans->transid); leaf 4963 fs/btrfs/ctree.c root_sub_used(root, leaf->len); leaf 4965 fs/btrfs/ctree.c extent_buffer_get(leaf); leaf 4966 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, leaf, 0, 1); leaf 4967 fs/btrfs/ctree.c free_extent_buffer_stale(leaf); leaf 4977 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 4986 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 4987 fs/btrfs/ctree.c last_off = btrfs_item_offset_nr(leaf, slot + nr - 1); leaf 4990 fs/btrfs/ctree.c dsize += btrfs_item_size_nr(leaf, slot + i); leaf 4992 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 4995 fs/btrfs/ctree.c int data_end = leaf_data_end(leaf); leaf 4998 fs/btrfs/ctree.c memmove_extent_buffer(leaf, BTRFS_LEAF_DATA_OFFSET + leaf 5003 fs/btrfs/ctree.c btrfs_init_map_token(&token, leaf); leaf 5008 fs/btrfs/ctree.c ioff = btrfs_token_item_offset(leaf, item, &token); leaf 5009 fs/btrfs/ctree.c btrfs_set_token_item_offset(leaf, item, leaf 5013 fs/btrfs/ctree.c memmove_extent_buffer(leaf, btrfs_item_nr_offset(slot), leaf 5018 fs/btrfs/ctree.c btrfs_set_header_nritems(leaf, nritems - nr); leaf 5023 fs/btrfs/ctree.c if (leaf == root->node) { leaf 5024 fs/btrfs/ctree.c btrfs_set_header_level(leaf, 0); leaf 5027 fs/btrfs/ctree.c btrfs_clean_tree_block(leaf); leaf 5028 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); leaf 5031 fs/btrfs/ctree.c int used = leaf_space_used(leaf, 0, nritems); leaf 5035 fs/btrfs/ctree.c btrfs_item_key(leaf, &disk_key, 0); leaf 5046 fs/btrfs/ctree.c extent_buffer_get(leaf); leaf 5054 fs/btrfs/ctree.c if (path->nodes[0] == leaf && leaf 5055 fs/btrfs/ctree.c btrfs_header_nritems(leaf)) { leaf 5062 fs/btrfs/ctree.c if (btrfs_header_nritems(leaf) == 0) { leaf 5064 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); leaf 5065 fs/btrfs/ctree.c free_extent_buffer(leaf); leaf 5073 fs/btrfs/ctree.c if (path->nodes[0] == leaf) leaf 5074 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 5075 fs/btrfs/ctree.c free_extent_buffer(leaf); leaf 5078 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(leaf); leaf 5525 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 5538 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 5539 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 5545 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 5567 fs/btrfs/ctree.c struct extent_buffer *leaf; leaf 5580 fs/btrfs/ctree.c leaf = path->nodes[0]; leaf 5581 fs/btrfs/ctree.c nritems = btrfs_header_nritems(leaf); leaf 5587 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 2170 fs/btrfs/ctree.h static inline unsigned int leaf_data_end(const struct extent_buffer *leaf) leaf 2172 fs/btrfs/ctree.h u32 nr = btrfs_header_nritems(leaf); leaf 2175 fs/btrfs/ctree.h return BTRFS_LEAF_DATA_SIZE(leaf->fs_info); leaf 2176 fs/btrfs/ctree.h return btrfs_item_offset_nr(leaf, nr - 1); leaf 2323 fs/btrfs/ctree.h #define btrfs_item_ptr(leaf, slot, type) \ leaf 2325 fs/btrfs/ctree.h btrfs_item_offset_nr(leaf, slot))) leaf 2327 fs/btrfs/ctree.h #define btrfs_item_ptr_offset(leaf, slot) \ leaf 2329 fs/btrfs/ctree.h btrfs_item_offset_nr(leaf, slot))) leaf 2616 fs/btrfs/ctree.h int btrfs_leaf_free_space(struct extent_buffer *leaf); leaf 2777 fs/btrfs/ctree.h struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, leaf 2781 fs/btrfs/ctree.h struct extent_buffer *leaf, int slot, u64 ref_objectid, leaf 702 fs/btrfs/delayed-inode.c struct extent_buffer *leaf; leaf 714 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; leaf 715 fs/btrfs/delayed-inode.c free_space = btrfs_leaf_free_space(leaf); leaf 779 fs/btrfs/delayed-inode.c data_ptr = btrfs_item_ptr(leaf, slot, char); leaf 780 fs/btrfs/delayed-inode.c write_extent_buffer(leaf, &curr->data, leaf 807 fs/btrfs/delayed-inode.c struct extent_buffer *leaf; leaf 819 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; leaf 821 fs/btrfs/delayed-inode.c ptr = btrfs_item_ptr(leaf, path->slots[0], char); leaf 823 fs/btrfs/delayed-inode.c write_extent_buffer(leaf, delayed_item->data, (unsigned long)ptr, leaf 825 fs/btrfs/delayed-inode.c btrfs_mark_buffer_dirty(leaf); leaf 880 fs/btrfs/delayed-inode.c struct extent_buffer *leaf; leaf 888 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; leaf 891 fs/btrfs/delayed-inode.c last_item = btrfs_header_nritems(leaf) - 1; leaf 897 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, i); leaf 917 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, i); leaf 1020 fs/btrfs/delayed-inode.c struct extent_buffer *leaf; leaf 1044 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; leaf 1045 fs/btrfs/delayed-inode.c inode_item = btrfs_item_ptr(leaf, path->slots[0], leaf 1047 fs/btrfs/delayed-inode.c write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, leaf 1049 fs/btrfs/delayed-inode.c btrfs_mark_buffer_dirty(leaf); leaf 1055 fs/btrfs/delayed-inode.c if (path->slots[0] >= btrfs_header_nritems(leaf)) leaf 1058 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 1096 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; leaf 31 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 43 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 45 fs/btrfs/dir-item.c ptr = btrfs_item_ptr(leaf, path->slots[0], char); leaf 46 fs/btrfs/dir-item.c BUG_ON(data_size > btrfs_item_size(leaf, item)); leaf 47 fs/btrfs/dir-item.c ptr += btrfs_item_size(leaf, item) - data_size; leaf 66 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 83 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 85 fs/btrfs/dir-item.c btrfs_set_dir_item_key(leaf, dir_item, &disk_key); leaf 86 fs/btrfs/dir-item.c btrfs_set_dir_type(leaf, dir_item, BTRFS_FT_XATTR); leaf 87 fs/btrfs/dir-item.c btrfs_set_dir_name_len(leaf, dir_item, name_len); leaf 88 fs/btrfs/dir-item.c btrfs_set_dir_transid(leaf, dir_item, trans->transid); leaf 89 fs/btrfs/dir-item.c btrfs_set_dir_data_len(leaf, dir_item, data_len); leaf 93 fs/btrfs/dir-item.c write_extent_buffer(leaf, name, name_ptr, name_len); leaf 94 fs/btrfs/dir-item.c write_extent_buffer(leaf, data, data_ptr, data_len); leaf 117 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 144 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 145 fs/btrfs/dir-item.c btrfs_set_dir_item_key(leaf, dir_item, &disk_key); leaf 146 fs/btrfs/dir-item.c btrfs_set_dir_type(leaf, dir_item, type); leaf 147 fs/btrfs/dir-item.c btrfs_set_dir_data_len(leaf, dir_item, 0); leaf 148 fs/btrfs/dir-item.c btrfs_set_dir_name_len(leaf, dir_item, name_len); leaf 149 fs/btrfs/dir-item.c btrfs_set_dir_transid(leaf, dir_item, trans->transid); leaf 152 fs/btrfs/dir-item.c write_extent_buffer(leaf, name, name_ptr, name_len); leaf 153 fs/btrfs/dir-item.c btrfs_mark_buffer_dirty(leaf); leaf 211 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 249 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 251 fs/btrfs/dir-item.c if (data_size + btrfs_item_size_nr(leaf, slot) + leaf 300 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 314 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 315 fs/btrfs/dir-item.c nritems = btrfs_header_nritems(leaf); leaf 324 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 325 fs/btrfs/dir-item.c nritems = btrfs_header_nritems(leaf); leaf 329 fs/btrfs/dir-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 380 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 382 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 383 fs/btrfs/dir-item.c dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); leaf 385 fs/btrfs/dir-item.c total_len = btrfs_item_size_nr(leaf, path->slots[0]); leaf 388 fs/btrfs/dir-item.c btrfs_dir_name_len(leaf, dir_item) + leaf 389 fs/btrfs/dir-item.c btrfs_dir_data_len(leaf, dir_item); leaf 392 fs/btrfs/dir-item.c if (btrfs_dir_name_len(leaf, dir_item) == name_len && leaf 393 fs/btrfs/dir-item.c memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) leaf 413 fs/btrfs/dir-item.c struct extent_buffer *leaf; leaf 418 fs/btrfs/dir-item.c leaf = path->nodes[0]; leaf 419 fs/btrfs/dir-item.c sub_item_len = sizeof(*di) + btrfs_dir_name_len(leaf, di) + leaf 420 fs/btrfs/dir-item.c btrfs_dir_data_len(leaf, di); leaf 421 fs/btrfs/dir-item.c item_len = btrfs_item_size_nr(leaf, path->slots[0]); leaf 429 fs/btrfs/dir-item.c start = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 430 fs/btrfs/dir-item.c memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, leaf 1226 fs/btrfs/disk-io.c struct extent_buffer *leaf; leaf 1249 fs/btrfs/disk-io.c leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); leaf 1250 fs/btrfs/disk-io.c if (IS_ERR(leaf)) { leaf 1251 fs/btrfs/disk-io.c ret = PTR_ERR(leaf); leaf 1252 fs/btrfs/disk-io.c leaf = NULL; leaf 1256 fs/btrfs/disk-io.c root->node = leaf; leaf 1257 fs/btrfs/disk-io.c btrfs_mark_buffer_dirty(leaf); leaf 1264 fs/btrfs/disk-io.c btrfs_set_root_bytenr(&root->root_item, leaf->start); leaf 1268 fs/btrfs/disk-io.c btrfs_set_root_used(&root->root_item, leaf->len); leaf 1283 fs/btrfs/disk-io.c btrfs_tree_unlock(leaf); leaf 1288 fs/btrfs/disk-io.c if (leaf) { leaf 1289 fs/btrfs/disk-io.c btrfs_tree_unlock(leaf); leaf 1291 fs/btrfs/disk-io.c free_extent_buffer(leaf); leaf 1302 fs/btrfs/disk-io.c struct extent_buffer *leaf; leaf 1323 fs/btrfs/disk-io.c leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID, leaf 1325 fs/btrfs/disk-io.c if (IS_ERR(leaf)) { leaf 1327 fs/btrfs/disk-io.c return ERR_CAST(leaf); leaf 1330 fs/btrfs/disk-io.c root->node = leaf; leaf 161 fs/btrfs/export.c struct extent_buffer *leaf; leaf 193 fs/btrfs/export.c leaf = path->nodes[0]; leaf 195 fs/btrfs/export.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 202 fs/btrfs/export.c ref = btrfs_item_ptr(leaf, path->slots[0], leaf 204 fs/btrfs/export.c key.objectid = btrfs_root_ref_dirid(leaf, ref); leaf 233 fs/btrfs/export.c struct extent_buffer *leaf; leaf 273 fs/btrfs/export.c leaf = path->nodes[0]; leaf 276 fs/btrfs/export.c rref = btrfs_item_ptr(leaf, path->slots[0], leaf 279 fs/btrfs/export.c name_len = btrfs_root_ref_name_len(leaf, rref); leaf 281 fs/btrfs/export.c iref = btrfs_item_ptr(leaf, path->slots[0], leaf 284 fs/btrfs/export.c name_len = btrfs_inode_ref_name_len(leaf, iref); leaf 287 fs/btrfs/export.c read_extent_buffer(leaf, name, name_ptr, name_len); leaf 45 fs/btrfs/extent-tree.c struct extent_buffer *leaf, leaf 158 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 208 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 209 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 211 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], leaf 213 fs/btrfs/extent-tree.c num_refs = btrfs_extent_refs(leaf, ei); leaf 214 fs/btrfs/extent-tree.c extent_flags = btrfs_extent_flags(leaf, ei); leaf 457 fs/btrfs/extent-tree.c static u64 hash_extent_data_ref_item(struct extent_buffer *leaf, leaf 460 fs/btrfs/extent-tree.c return hash_extent_data_ref(btrfs_extent_data_ref_root(leaf, ref), leaf 461 fs/btrfs/extent-tree.c btrfs_extent_data_ref_objectid(leaf, ref), leaf 462 fs/btrfs/extent-tree.c btrfs_extent_data_ref_offset(leaf, ref)); leaf 465 fs/btrfs/extent-tree.c static int match_extent_data_ref(struct extent_buffer *leaf, leaf 469 fs/btrfs/extent-tree.c if (btrfs_extent_data_ref_root(leaf, ref) != root_objectid || leaf 470 fs/btrfs/extent-tree.c btrfs_extent_data_ref_objectid(leaf, ref) != owner || leaf 471 fs/btrfs/extent-tree.c btrfs_extent_data_ref_offset(leaf, ref) != offset) leaf 485 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 514 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 515 fs/btrfs/extent-tree.c nritems = btrfs_header_nritems(leaf); leaf 524 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 525 fs/btrfs/extent-tree.c nritems = btrfs_header_nritems(leaf); leaf 529 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 534 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], leaf 537 fs/btrfs/extent-tree.c if (match_extent_data_ref(leaf, ref, root_objectid, leaf 560 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 581 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 584 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], leaf 587 fs/btrfs/extent-tree.c btrfs_set_shared_data_ref_count(leaf, ref, refs_to_add); leaf 589 fs/btrfs/extent-tree.c num_refs = btrfs_shared_data_ref_count(leaf, ref); leaf 591 fs/btrfs/extent-tree.c btrfs_set_shared_data_ref_count(leaf, ref, num_refs); leaf 596 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], leaf 598 fs/btrfs/extent-tree.c if (match_extent_data_ref(leaf, ref, root_objectid, leaf 608 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 610 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], leaf 613 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_root(leaf, ref, leaf 615 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_objectid(leaf, ref, owner); leaf 616 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_offset(leaf, ref, offset); leaf 617 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_count(leaf, ref, refs_to_add); leaf 619 fs/btrfs/extent-tree.c num_refs = btrfs_extent_data_ref_count(leaf, ref); leaf 621 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_count(leaf, ref, num_refs); leaf 624 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 638 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 642 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 643 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 646 fs/btrfs/extent-tree.c ref1 = btrfs_item_ptr(leaf, path->slots[0], leaf 648 fs/btrfs/extent-tree.c num_refs = btrfs_extent_data_ref_count(leaf, ref1); leaf 650 fs/btrfs/extent-tree.c ref2 = btrfs_item_ptr(leaf, path->slots[0], leaf 652 fs/btrfs/extent-tree.c num_refs = btrfs_shared_data_ref_count(leaf, ref2); leaf 669 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_count(leaf, ref1, num_refs); leaf 671 fs/btrfs/extent-tree.c btrfs_set_shared_data_ref_count(leaf, ref2, num_refs); leaf 672 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 681 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 687 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 688 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 696 fs/btrfs/extent-tree.c type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA); leaf 700 fs/btrfs/extent-tree.c num_refs = btrfs_extent_data_ref_count(leaf, ref1); leaf 703 fs/btrfs/extent-tree.c num_refs = btrfs_shared_data_ref_count(leaf, ref2); leaf 706 fs/btrfs/extent-tree.c ref1 = btrfs_item_ptr(leaf, path->slots[0], leaf 708 fs/btrfs/extent-tree.c num_refs = btrfs_extent_data_ref_count(leaf, ref1); leaf 710 fs/btrfs/extent-tree.c ref2 = btrfs_item_ptr(leaf, path->slots[0], leaf 712 fs/btrfs/extent-tree.c num_refs = btrfs_shared_data_ref_count(leaf, ref2); leaf 828 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 902 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 903 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 911 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 912 fs/btrfs/extent-tree.c flags = btrfs_extent_flags(leaf, ei); leaf 934 fs/btrfs/extent-tree.c type = btrfs_get_extent_inline_ref_type(leaf, iref, needed); leaf 950 fs/btrfs/extent-tree.c if (match_extent_data_ref(leaf, dref, root_objectid, leaf 955 fs/btrfs/extent-tree.c if (hash_extent_data_ref_item(leaf, dref) < leaf 960 fs/btrfs/extent-tree.c ref_offset = btrfs_extent_inline_ref_offset(leaf, iref); leaf 1018 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 1027 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 1028 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 1036 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 1037 fs/btrfs/extent-tree.c refs = btrfs_extent_refs(leaf, ei); leaf 1039 fs/btrfs/extent-tree.c btrfs_set_extent_refs(leaf, ei, refs); leaf 1041 fs/btrfs/extent-tree.c __run_delayed_extent_op(extent_op, leaf, ei); leaf 1044 fs/btrfs/extent-tree.c end = (unsigned long)ei + btrfs_item_size_nr(leaf, path->slots[0]); leaf 1046 fs/btrfs/extent-tree.c memmove_extent_buffer(leaf, ptr + size, ptr, leaf 1050 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_type(leaf, iref, type); leaf 1054 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_root(leaf, dref, root_objectid); leaf 1055 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_objectid(leaf, dref, owner); leaf 1056 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_offset(leaf, dref, offset); leaf 1057 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_count(leaf, dref, refs_to_add); leaf 1061 fs/btrfs/extent-tree.c btrfs_set_shared_data_ref_count(leaf, sref, refs_to_add); leaf 1062 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, parent); leaf 1064 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, parent); leaf 1066 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, root_objectid); leaf 1068 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 1108 fs/btrfs/extent-tree.c struct extent_buffer *leaf = path->nodes[0]; leaf 1119 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 1120 fs/btrfs/extent-tree.c refs = btrfs_extent_refs(leaf, ei); leaf 1123 fs/btrfs/extent-tree.c btrfs_set_extent_refs(leaf, ei, refs); leaf 1125 fs/btrfs/extent-tree.c __run_delayed_extent_op(extent_op, leaf, ei); leaf 1131 fs/btrfs/extent-tree.c type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_ANY); leaf 1136 fs/btrfs/extent-tree.c refs = btrfs_extent_data_ref_count(leaf, dref); leaf 1139 fs/btrfs/extent-tree.c refs = btrfs_shared_data_ref_count(leaf, sref); leaf 1150 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_count(leaf, dref, refs); leaf 1152 fs/btrfs/extent-tree.c btrfs_set_shared_data_ref_count(leaf, sref, refs); leaf 1156 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 1160 fs/btrfs/extent-tree.c memmove_extent_buffer(leaf, ptr, ptr + size, leaf 1165 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 1438 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 1464 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 1465 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 1466 fs/btrfs/extent-tree.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 1467 fs/btrfs/extent-tree.c refs = btrfs_extent_refs(leaf, item); leaf 1468 fs/btrfs/extent-tree.c btrfs_set_extent_refs(leaf, item, refs + refs_to_add); leaf 1470 fs/btrfs/extent-tree.c __run_delayed_extent_op(extent_op, leaf, item); leaf 1472 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 1533 fs/btrfs/extent-tree.c struct extent_buffer *leaf, leaf 1536 fs/btrfs/extent-tree.c u64 flags = btrfs_extent_flags(leaf, ei); leaf 1539 fs/btrfs/extent-tree.c btrfs_set_extent_flags(leaf, ei, flags); leaf 1546 fs/btrfs/extent-tree.c btrfs_set_tree_block_key(leaf, bi, &extent_op->key); leaf 1558 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 1618 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 1619 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 1628 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 1629 fs/btrfs/extent-tree.c __run_delayed_extent_op(extent_op, leaf, ei); leaf 1631 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 2327 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 2350 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 2351 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 2357 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 2358 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 2366 fs/btrfs/extent-tree.c if (btrfs_extent_generation(leaf, ei) <= leaf 2373 fs/btrfs/extent-tree.c type = btrfs_get_extent_inline_ref_type(leaf, iref, BTRFS_REF_TYPE_DATA); leaf 2378 fs/btrfs/extent-tree.c if (btrfs_extent_refs(leaf, ei) != leaf 2379 fs/btrfs/extent-tree.c btrfs_extent_data_ref_count(leaf, ref) || leaf 2380 fs/btrfs/extent-tree.c btrfs_extent_data_ref_root(leaf, ref) != leaf 2382 fs/btrfs/extent-tree.c btrfs_extent_data_ref_objectid(leaf, ref) != objectid || leaf 2383 fs/btrfs/extent-tree.c btrfs_extent_data_ref_offset(leaf, ref) != offset) leaf 2958 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 3084 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 3085 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, extent_slot); leaf 3092 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, extent_slot, leaf 3099 fs/btrfs/extent-tree.c WARN_ON(owner_objectid != btrfs_tree_block_level(leaf, bi)); leaf 3102 fs/btrfs/extent-tree.c refs = btrfs_extent_refs(leaf, ei); leaf 3115 fs/btrfs/extent-tree.c __run_delayed_extent_op(extent_op, leaf, ei); leaf 3123 fs/btrfs/extent-tree.c btrfs_set_extent_refs(leaf, ei, refs); leaf 3124 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 4199 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 4222 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 4223 fs/btrfs/extent-tree.c extent_item = btrfs_item_ptr(leaf, path->slots[0], leaf 4225 fs/btrfs/extent-tree.c btrfs_set_extent_refs(leaf, extent_item, ref_mod); leaf 4226 fs/btrfs/extent-tree.c btrfs_set_extent_generation(leaf, extent_item, trans->transid); leaf 4227 fs/btrfs/extent-tree.c btrfs_set_extent_flags(leaf, extent_item, leaf 4231 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_type(leaf, iref, type); leaf 4235 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, parent); leaf 4236 fs/btrfs/extent-tree.c btrfs_set_shared_data_ref_count(leaf, ref, ref_mod); leaf 4240 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_root(leaf, ref, root_objectid); leaf 4241 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_objectid(leaf, ref, owner); leaf 4242 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_offset(leaf, ref, offset); leaf 4243 fs/btrfs/extent-tree.c btrfs_set_extent_data_ref_count(leaf, ref, ref_mod); leaf 4274 fs/btrfs/extent-tree.c struct extent_buffer *leaf; leaf 4307 fs/btrfs/extent-tree.c leaf = path->nodes[0]; leaf 4308 fs/btrfs/extent-tree.c extent_item = btrfs_item_ptr(leaf, path->slots[0], leaf 4310 fs/btrfs/extent-tree.c btrfs_set_extent_refs(leaf, extent_item, 1); leaf 4311 fs/btrfs/extent-tree.c btrfs_set_extent_generation(leaf, extent_item, trans->transid); leaf 4312 fs/btrfs/extent-tree.c btrfs_set_extent_flags(leaf, extent_item, leaf 4319 fs/btrfs/extent-tree.c btrfs_set_tree_block_key(leaf, block_info, &extent_op->key); leaf 4320 fs/btrfs/extent-tree.c btrfs_set_tree_block_level(leaf, block_info, ref->level); leaf 4326 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_type(leaf, iref, leaf 4328 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, ref->parent); leaf 4330 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_type(leaf, iref, leaf 4332 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, ref->root); leaf 4335 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(leaf); leaf 45 fs/btrfs/file-item.c struct extent_buffer *leaf; leaf 60 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 61 fs/btrfs/file-item.c item = btrfs_item_ptr(leaf, path->slots[0], leaf 63 fs/btrfs/file-item.c btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset); leaf 64 fs/btrfs/file-item.c btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes); leaf 65 fs/btrfs/file-item.c btrfs_set_file_extent_offset(leaf, item, offset); leaf 66 fs/btrfs/file-item.c btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); leaf 67 fs/btrfs/file-item.c btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes); leaf 68 fs/btrfs/file-item.c btrfs_set_file_extent_generation(leaf, item, trans->transid); leaf 69 fs/btrfs/file-item.c btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); leaf 70 fs/btrfs/file-item.c btrfs_set_file_extent_compression(leaf, item, compression); leaf 71 fs/btrfs/file-item.c btrfs_set_file_extent_encryption(leaf, item, encryption); leaf 72 fs/btrfs/file-item.c btrfs_set_file_extent_other_encoding(leaf, item, other_encoding); leaf 74 fs/btrfs/file-item.c btrfs_mark_buffer_dirty(leaf); leaf 91 fs/btrfs/file-item.c struct extent_buffer *leaf; leaf 102 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 108 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 114 fs/btrfs/file-item.c csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); leaf 124 fs/btrfs/file-item.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); leaf 309 fs/btrfs/file-item.c struct extent_buffer *leaf; leaf 340 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 341 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); leaf 347 fs/btrfs/file-item.c btrfs_item_size_nr(leaf, path->slots[0] - 1)) leaf 353 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 354 fs/btrfs/file-item.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 360 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 363 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 372 fs/btrfs/file-item.c size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 548 fs/btrfs/file-item.c struct extent_buffer *leaf; leaf 554 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 555 fs/btrfs/file-item.c csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; leaf 601 fs/btrfs/file-item.c struct extent_buffer *leaf; leaf 628 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 629 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 639 fs/btrfs/file-item.c csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; leaf 662 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &pk, slot); leaf 707 fs/btrfs/file-item.c item_offset = btrfs_item_ptr_offset(leaf, leaf 710 fs/btrfs/file-item.c memzero_extent_buffer(leaf, item_offset + offset, leaf 748 fs/btrfs/file-item.c struct extent_buffer *leaf = NULL; leaf 774 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 775 fs/btrfs/file-item.c item_end = btrfs_item_ptr(leaf, path->slots[0], leaf 778 fs/btrfs/file-item.c btrfs_item_size_nr(leaf, path->slots[0])); leaf 788 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 789 fs/btrfs/file-item.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 834 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 835 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 845 fs/btrfs/file-item.c if (csum_offset == btrfs_item_size_nr(leaf, path->slots[0]) / leaf 852 fs/btrfs/file-item.c if (btrfs_leaf_free_space(leaf) < leaf 856 fs/btrfs/file-item.c free_space = btrfs_leaf_free_space(leaf) - leaf 867 fs/btrfs/file-item.c diff = diff - btrfs_item_size_nr(leaf, path->slots[0]); leaf 902 fs/btrfs/file-item.c leaf = path->nodes[0]; leaf 904 fs/btrfs/file-item.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); leaf 906 fs/btrfs/file-item.c btrfs_item_size_nr(leaf, path->slots[0])); leaf 915 fs/btrfs/file-item.c write_extent_buffer(leaf, sums->sums + index, (unsigned long)item, leaf 944 fs/btrfs/file-item.c struct extent_buffer *leaf = path->nodes[0]; leaf 949 fs/btrfs/file-item.c u8 type = btrfs_file_extent_type(leaf, fi); leaf 950 fs/btrfs/file-item.c int compress_type = btrfs_file_extent_compression(leaf, fi); leaf 953 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 959 fs/btrfs/file-item.c btrfs_file_extent_num_bytes(leaf, fi); leaf 962 fs/btrfs/file-item.c size = btrfs_file_extent_ram_bytes(leaf, fi); leaf 967 fs/btrfs/file-item.c em->ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); leaf 973 fs/btrfs/file-item.c btrfs_file_extent_offset(leaf, fi); leaf 974 fs/btrfs/file-item.c em->orig_block_len = btrfs_file_extent_disk_num_bytes(leaf, fi); leaf 975 fs/btrfs/file-item.c bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 986 fs/btrfs/file-item.c bytenr += btrfs_file_extent_offset(leaf, fi); leaf 756 fs/btrfs/file.c struct extent_buffer *leaf; leaf 793 fs/btrfs/file.c leaf = path->nodes[0]; leaf 794 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); leaf 802 fs/btrfs/file.c leaf = path->nodes[0]; leaf 803 fs/btrfs/file.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 813 fs/btrfs/file.c leaf = path->nodes[0]; leaf 817 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 830 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 832 fs/btrfs/file.c extent_type = btrfs_file_extent_type(leaf, fi); leaf 836 fs/btrfs/file.c disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 837 fs/btrfs/file.c num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); leaf 838 fs/btrfs/file.c extent_offset = btrfs_file_extent_offset(leaf, fi); leaf 840 fs/btrfs/file.c btrfs_file_extent_num_bytes(leaf, fi); leaf 843 fs/btrfs/file.c btrfs_file_extent_ram_bytes(leaf, fi); leaf 898 fs/btrfs/file.c leaf = path->nodes[0]; leaf 899 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0] - 1, leaf 901 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 904 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 908 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, extent_offset); leaf 909 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 911 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 947 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, extent_offset); leaf 948 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 950 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 968 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 970 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 1017 fs/btrfs/file.c if (path->slots[0] + 1 < btrfs_header_nritems(leaf)) { leaf 1052 fs/btrfs/file.c leaf = path->nodes[0]; leaf 1061 fs/btrfs/file.c btrfs_leaf_free_space(leaf) >= leaf 1067 fs/btrfs/file.c if (!del_nr && path->slots[0] < btrfs_header_nritems(leaf)) { leaf 1070 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &slot_key, path->slots[0]); leaf 1105 fs/btrfs/file.c static int extent_mergeable(struct extent_buffer *leaf, int slot, leaf 1113 fs/btrfs/file.c if (slot < 0 || slot >= btrfs_header_nritems(leaf)) leaf 1116 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 1120 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 1121 fs/btrfs/file.c if (btrfs_file_extent_type(leaf, fi) != BTRFS_FILE_EXTENT_REG || leaf 1122 fs/btrfs/file.c btrfs_file_extent_disk_bytenr(leaf, fi) != bytenr || leaf 1123 fs/btrfs/file.c btrfs_file_extent_offset(leaf, fi) != key.offset - orig_offset || leaf 1124 fs/btrfs/file.c btrfs_file_extent_compression(leaf, fi) || leaf 1125 fs/btrfs/file.c btrfs_file_extent_encryption(leaf, fi) || leaf 1126 fs/btrfs/file.c btrfs_file_extent_other_encoding(leaf, fi)) leaf 1129 fs/btrfs/file.c extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, fi); leaf 1150 fs/btrfs/file.c struct extent_buffer *leaf; leaf 1185 fs/btrfs/file.c leaf = path->nodes[0]; leaf 1186 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 1193 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1195 fs/btrfs/file.c if (btrfs_file_extent_type(leaf, fi) != BTRFS_FILE_EXTENT_PREALLOC) { leaf 1200 fs/btrfs/file.c extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, fi); leaf 1207 fs/btrfs/file.c bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 1208 fs/btrfs/file.c num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); leaf 1209 fs/btrfs/file.c orig_offset = key.offset - btrfs_file_extent_offset(leaf, fi); leaf 1215 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] - 1, leaf 1220 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1222 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, leaf 1224 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1226 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, leaf 1228 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0] - 1, leaf 1230 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, leaf 1232 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1234 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 1242 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] + 1, leaf 1245 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1247 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1249 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, leaf 1255 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1257 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, leaf 1259 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1261 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, leaf 1263 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 1283 fs/btrfs/file.c leaf = path->nodes[0]; leaf 1284 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0] - 1, leaf 1286 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); leaf 1287 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1290 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1293 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); leaf 1294 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, split - orig_offset); leaf 1295 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1297 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 1328 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] + 1, leaf 1346 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] - 1, leaf 1363 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1365 fs/btrfs/file.c btrfs_set_file_extent_type(leaf, fi, leaf 1367 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); leaf 1368 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 1370 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, del_slot - 1, leaf 1372 fs/btrfs/file.c btrfs_set_file_extent_type(leaf, fi, leaf 1374 fs/btrfs/file.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); leaf 1375 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 1377 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 2260 fs/btrfs/file.c static int hole_mergeable(struct btrfs_inode *inode, struct extent_buffer *leaf, leaf 2266 fs/btrfs/file.c if (slot < 0 || slot >= btrfs_header_nritems(leaf)) leaf 2269 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 2274 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 2276 fs/btrfs/file.c if (btrfs_file_extent_type(leaf, fi) != BTRFS_FILE_EXTENT_REG) leaf 2279 fs/btrfs/file.c if (btrfs_file_extent_disk_bytenr(leaf, fi)) leaf 2284 fs/btrfs/file.c if (key.offset + btrfs_file_extent_num_bytes(leaf, fi) == start) leaf 2295 fs/btrfs/file.c struct extent_buffer *leaf; leaf 2320 fs/btrfs/file.c leaf = path->nodes[0]; leaf 2321 fs/btrfs/file.c if (hole_mergeable(inode, leaf, path->slots[0] - 1, offset, end)) { leaf 2325 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 2327 fs/btrfs/file.c num_bytes = btrfs_file_extent_num_bytes(leaf, fi) + leaf 2329 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); leaf 2330 fs/btrfs/file.c btrfs_set_file_extent_ram_bytes(leaf, fi, num_bytes); leaf 2331 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, 0); leaf 2332 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 2336 fs/btrfs/file.c if (hole_mergeable(inode, leaf, path->slots[0], offset, end)) { leaf 2341 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 2343 fs/btrfs/file.c num_bytes = btrfs_file_extent_num_bytes(leaf, fi) + end - leaf 2345 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); leaf 2346 fs/btrfs/file.c btrfs_set_file_extent_ram_bytes(leaf, fi, num_bytes); leaf 2347 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, fi, 0); leaf 2348 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 2472 fs/btrfs/file.c struct extent_buffer *leaf; leaf 2493 fs/btrfs/file.c leaf = path->nodes[0]; leaf 2495 fs/btrfs/file.c write_extent_buffer(leaf, clone_info->extent_buf, leaf 2496 fs/btrfs/file.c btrfs_item_ptr_offset(leaf, slot), leaf 2498 fs/btrfs/file.c extent = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 2499 fs/btrfs/file.c btrfs_set_file_extent_offset(leaf, extent, clone_info->data_offset); leaf 2500 fs/btrfs/file.c btrfs_set_file_extent_num_bytes(leaf, extent, clone_len); leaf 2501 fs/btrfs/file.c btrfs_mark_buffer_dirty(leaf); leaf 52 fs/btrfs/free-space-cache.c struct extent_buffer *leaf; leaf 69 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; leaf 70 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], leaf 72 fs/btrfs/free-space-cache.c btrfs_free_space_key(leaf, header, &disk_key); leaf 140 fs/btrfs/free-space-cache.c struct extent_buffer *leaf; leaf 152 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; leaf 153 fs/btrfs/free-space-cache.c inode_item = btrfs_item_ptr(leaf, path->slots[0], leaf 155 fs/btrfs/free-space-cache.c btrfs_item_key(leaf, &disk_key, path->slots[0]); leaf 156 fs/btrfs/free-space-cache.c memzero_extent_buffer(leaf, (unsigned long)inode_item, leaf 158 fs/btrfs/free-space-cache.c btrfs_set_inode_generation(leaf, inode_item, trans->transid); leaf 159 fs/btrfs/free-space-cache.c btrfs_set_inode_size(leaf, inode_item, 0); leaf 160 fs/btrfs/free-space-cache.c btrfs_set_inode_nbytes(leaf, inode_item, 0); leaf 161 fs/btrfs/free-space-cache.c btrfs_set_inode_uid(leaf, inode_item, 0); leaf 162 fs/btrfs/free-space-cache.c btrfs_set_inode_gid(leaf, inode_item, 0); leaf 163 fs/btrfs/free-space-cache.c btrfs_set_inode_mode(leaf, inode_item, S_IFREG | 0600); leaf 164 fs/btrfs/free-space-cache.c btrfs_set_inode_flags(leaf, inode_item, flags); leaf 165 fs/btrfs/free-space-cache.c btrfs_set_inode_nlink(leaf, inode_item, 1); leaf 166 fs/btrfs/free-space-cache.c btrfs_set_inode_transid(leaf, inode_item, trans->transid); leaf 167 fs/btrfs/free-space-cache.c btrfs_set_inode_block_group(leaf, inode_item, offset); leaf 168 fs/btrfs/free-space-cache.c btrfs_mark_buffer_dirty(leaf); leaf 181 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; leaf 182 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], leaf 184 fs/btrfs/free-space-cache.c memzero_extent_buffer(leaf, (unsigned long)header, sizeof(*header)); leaf 185 fs/btrfs/free-space-cache.c btrfs_set_free_space_key(leaf, header, &disk_key); leaf 186 fs/btrfs/free-space-cache.c btrfs_mark_buffer_dirty(leaf); leaf 672 fs/btrfs/free-space-cache.c struct extent_buffer *leaf; leaf 701 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; leaf 702 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], leaf 704 fs/btrfs/free-space-cache.c num_entries = btrfs_free_space_entries(leaf, header); leaf 705 fs/btrfs/free-space-cache.c num_bitmaps = btrfs_free_space_bitmaps(leaf, header); leaf 706 fs/btrfs/free-space-cache.c generation = btrfs_free_space_generation(leaf, header); leaf 1005 fs/btrfs/free-space-cache.c struct extent_buffer *leaf; leaf 1018 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; leaf 1023 fs/btrfs/free-space-cache.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 1035 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], leaf 1037 fs/btrfs/free-space-cache.c btrfs_set_free_space_entries(leaf, header, entries); leaf 1038 fs/btrfs/free-space-cache.c btrfs_set_free_space_bitmaps(leaf, header, bitmaps); leaf 1039 fs/btrfs/free-space-cache.c btrfs_set_free_space_generation(leaf, header, trans->transid); leaf 1040 fs/btrfs/free-space-cache.c btrfs_mark_buffer_dirty(leaf); leaf 54 fs/btrfs/free-space-tree.c struct extent_buffer *leaf; leaf 65 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 66 fs/btrfs/free-space-tree.c info = btrfs_item_ptr(leaf, path->slots[0], leaf 68 fs/btrfs/free-space-tree.c btrfs_set_free_space_extent_count(leaf, info, 0); leaf 69 fs/btrfs/free-space-tree.c btrfs_set_free_space_flags(leaf, info, 0); leaf 70 fs/btrfs/free-space-tree.c btrfs_mark_buffer_dirty(leaf); leaf 190 fs/btrfs/free-space-tree.c struct extent_buffer *leaf; leaf 220 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 224 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); leaf 263 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 264 fs/btrfs/free-space-tree.c flags = btrfs_free_space_flags(leaf, info); leaf 266 fs/btrfs/free-space-tree.c btrfs_set_free_space_flags(leaf, info, flags); leaf 267 fs/btrfs/free-space-tree.c expected_extent_count = btrfs_free_space_extent_count(leaf, info); leaf 268 fs/btrfs/free-space-tree.c btrfs_mark_buffer_dirty(leaf); leaf 302 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 303 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 304 fs/btrfs/free-space-tree.c write_extent_buffer(leaf, bitmap_cursor, ptr, leaf 306 fs/btrfs/free-space-tree.c btrfs_mark_buffer_dirty(leaf); leaf 330 fs/btrfs/free-space-tree.c struct extent_buffer *leaf; leaf 359 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 363 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); leaf 386 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0] - 1); leaf 387 fs/btrfs/free-space-tree.c read_extent_buffer(leaf, bitmap_cursor, ptr, leaf 408 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 409 fs/btrfs/free-space-tree.c flags = btrfs_free_space_flags(leaf, info); leaf 411 fs/btrfs/free-space-tree.c btrfs_set_free_space_flags(leaf, info, flags); leaf 412 fs/btrfs/free-space-tree.c expected_extent_count = btrfs_free_space_extent_count(leaf, info); leaf 413 fs/btrfs/free-space-tree.c btrfs_mark_buffer_dirty(leaf); leaf 497 fs/btrfs/free-space-tree.c struct extent_buffer *leaf; leaf 502 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 503 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 510 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 513 fs/btrfs/free-space-tree.c return !!extent_buffer_test_bit(leaf, ptr, i); leaf 521 fs/btrfs/free-space-tree.c struct extent_buffer *leaf; leaf 527 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 528 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 539 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 543 fs/btrfs/free-space-tree.c extent_buffer_bitmap_set(leaf, ptr, first, last - first); leaf 545 fs/btrfs/free-space-tree.c extent_buffer_bitmap_clear(leaf, ptr, first, last - first); leaf 546 fs/btrfs/free-space-tree.c btrfs_mark_buffer_dirty(leaf); leaf 1320 fs/btrfs/free-space-tree.c struct extent_buffer *leaf; leaf 1351 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; leaf 1355 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); leaf 11 fs/btrfs/inode-item.c struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, leaf 22 fs/btrfs/inode-item.c item_size = btrfs_item_size_nr(leaf, slot); leaf 23 fs/btrfs/inode-item.c ptr = btrfs_item_ptr_offset(leaf, slot); leaf 26 fs/btrfs/inode-item.c len = btrfs_inode_ref_name_len(leaf, ref); leaf 31 fs/btrfs/inode-item.c if (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) leaf 38 fs/btrfs/inode-item.c struct extent_buffer *leaf, int slot, u64 ref_objectid, leaf 48 fs/btrfs/inode-item.c item_size = btrfs_item_size_nr(leaf, slot); leaf 49 fs/btrfs/inode-item.c ptr = btrfs_item_ptr_offset(leaf, slot); leaf 60 fs/btrfs/inode-item.c ref_name_len = btrfs_inode_extref_name_len(leaf, extref); leaf 63 fs/btrfs/inode-item.c btrfs_inode_extref_parent(leaf, extref) == ref_objectid && leaf 64 fs/btrfs/inode-item.c (memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0)) leaf 107 fs/btrfs/inode-item.c struct extent_buffer *leaf; leaf 143 fs/btrfs/inode-item.c leaf = path->nodes[0]; leaf 144 fs/btrfs/inode-item.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 146 fs/btrfs/inode-item.c *index = btrfs_inode_extref_index(leaf, extref); leaf 158 fs/btrfs/inode-item.c item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 160 fs/btrfs/inode-item.c memmove_extent_buffer(leaf, ptr, ptr + del_len, leaf 179 fs/btrfs/inode-item.c struct extent_buffer *leaf; leaf 214 fs/btrfs/inode-item.c leaf = path->nodes[0]; leaf 215 fs/btrfs/inode-item.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 218 fs/btrfs/inode-item.c *index = btrfs_inode_ref_index(leaf, ref); leaf 226 fs/btrfs/inode-item.c item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 227 fs/btrfs/inode-item.c memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, leaf 262 fs/btrfs/inode-item.c struct extent_buffer *leaf; leaf 289 fs/btrfs/inode-item.c leaf = path->nodes[0]; leaf 291 fs/btrfs/inode-item.c ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); leaf 292 fs/btrfs/inode-item.c ptr += btrfs_item_size(leaf, item) - ins_len; leaf 411 fs/btrfs/inode-item.c struct extent_buffer *leaf; leaf 418 fs/btrfs/inode-item.c leaf = path->nodes[0]; leaf 419 fs/btrfs/inode-item.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 36 fs/btrfs/inode-map.c struct extent_buffer *leaf; leaf 70 fs/btrfs/inode-map.c leaf = path->nodes[0]; leaf 72 fs/btrfs/inode-map.c if (slot >= btrfs_header_nritems(leaf)) { leaf 81 fs/btrfs/inode-map.c leaf = path->nodes[0]; leaf 83 fs/btrfs/inode-map.c if (WARN_ON(btrfs_header_nritems(leaf) == 0)) leaf 90 fs/btrfs/inode-map.c btrfs_item_key_to_cpu(leaf, &key, 0); leaf 100 fs/btrfs/inode-map.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 173 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 205 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 206 fs/btrfs/inode.c ei = btrfs_item_ptr(leaf, path->slots[0], leaf 208 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, ei, trans->transid); leaf 209 fs/btrfs/inode.c btrfs_set_file_extent_type(leaf, ei, BTRFS_FILE_EXTENT_INLINE); leaf 210 fs/btrfs/inode.c btrfs_set_file_extent_encryption(leaf, ei, 0); leaf 211 fs/btrfs/inode.c btrfs_set_file_extent_other_encoding(leaf, ei, 0); leaf 212 fs/btrfs/inode.c btrfs_set_file_extent_ram_bytes(leaf, ei, size); leaf 224 fs/btrfs/inode.c write_extent_buffer(leaf, kaddr, ptr, cur_size); leaf 231 fs/btrfs/inode.c btrfs_set_file_extent_compression(leaf, ei, leaf 236 fs/btrfs/inode.c btrfs_set_file_extent_compression(leaf, ei, 0); leaf 239 fs/btrfs/inode.c write_extent_buffer(leaf, kaddr + offset, ptr, size); leaf 243 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 1365 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 1386 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 1387 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, leaf 1396 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 1397 fs/btrfs/inode.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 1406 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 1409 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 1443 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1445 fs/btrfs/inode.c extent_type = btrfs_file_extent_type(leaf, fi); leaf 1447 fs/btrfs/inode.c ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); leaf 1450 fs/btrfs/inode.c disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 1451 fs/btrfs/inode.c extent_offset = btrfs_file_extent_offset(leaf, fi); leaf 1453 fs/btrfs/inode.c btrfs_file_extent_num_bytes(leaf, fi); leaf 1455 fs/btrfs/inode.c btrfs_file_extent_disk_num_bytes(leaf, fi); leaf 1468 fs/btrfs/inode.c if (btrfs_file_extent_compression(leaf, fi) || leaf 1469 fs/btrfs/inode.c btrfs_file_extent_encryption(leaf, fi) || leaf 1470 fs/btrfs/inode.c btrfs_file_extent_other_encoding(leaf, fi)) leaf 1480 fs/btrfs/inode.c btrfs_file_extent_generation(leaf, fi) <= leaf 2369 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 2405 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 2406 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 2408 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, fi, trans->transid); leaf 2409 fs/btrfs/inode.c btrfs_set_file_extent_type(leaf, fi, extent_type); leaf 2410 fs/btrfs/inode.c btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); leaf 2411 fs/btrfs/inode.c btrfs_set_file_extent_disk_num_bytes(leaf, fi, disk_num_bytes); leaf 2412 fs/btrfs/inode.c btrfs_set_file_extent_offset(leaf, fi, 0); leaf 2413 fs/btrfs/inode.c btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); leaf 2414 fs/btrfs/inode.c btrfs_set_file_extent_ram_bytes(leaf, fi, ram_bytes); leaf 2415 fs/btrfs/inode.c btrfs_set_file_extent_compression(leaf, fi, compression); leaf 2416 fs/btrfs/inode.c btrfs_set_file_extent_encryption(leaf, fi, encryption); leaf 2417 fs/btrfs/inode.c btrfs_set_file_extent_other_encoding(leaf, fi, other_encoding); leaf 2419 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 2549 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 2590 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 2593 fs/btrfs/inode.c if (slot >= btrfs_header_nritems(leaf)) { leaf 2606 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 2614 fs/btrfs/inode.c extent = btrfs_item_ptr(leaf, slot, leaf 2617 fs/btrfs/inode.c if (btrfs_file_extent_disk_bytenr(leaf, extent) != old->bytenr) leaf 2628 fs/btrfs/inode.c extent_offset = btrfs_file_extent_offset(leaf, extent); leaf 2629 fs/btrfs/inode.c num_bytes = btrfs_file_extent_num_bytes(leaf, extent); leaf 2649 fs/btrfs/inode.c backref->generation = btrfs_file_extent_generation(leaf, extent); leaf 2689 fs/btrfs/inode.c static int relink_is_mergable(struct extent_buffer *leaf, leaf 2693 fs/btrfs/inode.c if (btrfs_file_extent_disk_bytenr(leaf, fi) != new->bytenr) leaf 2696 fs/btrfs/inode.c if (btrfs_file_extent_type(leaf, fi) != BTRFS_FILE_EXTENT_REG) leaf 2699 fs/btrfs/inode.c if (btrfs_file_extent_compression(leaf, fi) != new->compress_type) leaf 2702 fs/btrfs/inode.c if (btrfs_file_extent_encryption(leaf, fi) || leaf 2703 fs/btrfs/inode.c btrfs_file_extent_other_encoding(leaf, fi)) leaf 2723 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 2843 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 2844 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 2846 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 2848 fs/btrfs/inode.c extent_len = btrfs_file_extent_num_bytes(leaf, fi); leaf 2851 fs/btrfs/inode.c relink_is_mergable(leaf, fi, new)) { leaf 2852 fs/btrfs/inode.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 2854 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 2873 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 2874 fs/btrfs/inode.c item = btrfs_item_ptr(leaf, path->slots[0], leaf 2876 fs/btrfs/inode.c btrfs_set_file_extent_disk_bytenr(leaf, item, new->bytenr); leaf 2877 fs/btrfs/inode.c btrfs_set_file_extent_disk_num_bytes(leaf, item, new->disk_len); leaf 2878 fs/btrfs/inode.c btrfs_set_file_extent_offset(leaf, item, start - new->file_pos); leaf 2879 fs/btrfs/inode.c btrfs_set_file_extent_num_bytes(leaf, item, len); leaf 2880 fs/btrfs/inode.c btrfs_set_file_extent_ram_bytes(leaf, item, new->len); leaf 2881 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, item, trans->transid); leaf 2882 fs/btrfs/inode.c btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); leaf 2883 fs/btrfs/inode.c btrfs_set_file_extent_compression(leaf, item, new->compress_type); leaf 2884 fs/btrfs/inode.c btrfs_set_file_extent_encryption(leaf, item, 0); leaf 2885 fs/btrfs/inode.c btrfs_set_file_extent_other_encoding(leaf, item, 0); leaf 2887 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 3549 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 3588 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 3589 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 3726 fs/btrfs/inode.c static noinline int acls_after_inode_item(struct extent_buffer *leaf, leaf 3730 fs/btrfs/inode.c u32 nritems = btrfs_header_nritems(leaf); leaf 3746 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 3797 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 3827 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 3832 fs/btrfs/inode.c inode_item = btrfs_item_ptr(leaf, path->slots[0], leaf 3834 fs/btrfs/inode.c inode->i_mode = btrfs_inode_mode(leaf, inode_item); leaf 3835 fs/btrfs/inode.c set_nlink(inode, btrfs_inode_nlink(leaf, inode_item)); leaf 3836 fs/btrfs/inode.c i_uid_write(inode, btrfs_inode_uid(leaf, inode_item)); leaf 3837 fs/btrfs/inode.c i_gid_write(inode, btrfs_inode_gid(leaf, inode_item)); leaf 3838 fs/btrfs/inode.c btrfs_i_size_write(BTRFS_I(inode), btrfs_inode_size(leaf, inode_item)); leaf 3840 fs/btrfs/inode.c inode->i_atime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->atime); leaf 3841 fs/btrfs/inode.c inode->i_atime.tv_nsec = btrfs_timespec_nsec(leaf, &inode_item->atime); leaf 3843 fs/btrfs/inode.c inode->i_mtime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->mtime); leaf 3844 fs/btrfs/inode.c inode->i_mtime.tv_nsec = btrfs_timespec_nsec(leaf, &inode_item->mtime); leaf 3846 fs/btrfs/inode.c inode->i_ctime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->ctime); leaf 3847 fs/btrfs/inode.c inode->i_ctime.tv_nsec = btrfs_timespec_nsec(leaf, &inode_item->ctime); leaf 3850 fs/btrfs/inode.c btrfs_timespec_sec(leaf, &inode_item->otime); leaf 3852 fs/btrfs/inode.c btrfs_timespec_nsec(leaf, &inode_item->otime); leaf 3854 fs/btrfs/inode.c inode_set_bytes(inode, btrfs_inode_nbytes(leaf, inode_item)); leaf 3855 fs/btrfs/inode.c BTRFS_I(inode)->generation = btrfs_inode_generation(leaf, inode_item); leaf 3856 fs/btrfs/inode.c BTRFS_I(inode)->last_trans = btrfs_inode_transid(leaf, inode_item); leaf 3859 fs/btrfs/inode.c btrfs_inode_sequence(leaf, inode_item)); leaf 3862 fs/btrfs/inode.c rdev = btrfs_inode_rdev(leaf, inode_item); leaf 3865 fs/btrfs/inode.c BTRFS_I(inode)->flags = btrfs_inode_flags(leaf, inode_item); leaf 3912 fs/btrfs/inode.c path->slots[0] >= btrfs_header_nritems(leaf)) leaf 3915 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); leaf 3919 fs/btrfs/inode.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 3924 fs/btrfs/inode.c BTRFS_I(inode)->dir_index = btrfs_inode_ref_index(leaf, ref); leaf 3929 fs/btrfs/inode.c BTRFS_I(inode)->dir_index = btrfs_inode_extref_index(leaf, leaf 3937 fs/btrfs/inode.c maybe_acls = acls_after_inode_item(leaf, path->slots[0], leaf 3984 fs/btrfs/inode.c struct extent_buffer *leaf, leaf 3990 fs/btrfs/inode.c btrfs_init_map_token(&token, leaf); leaf 3992 fs/btrfs/inode.c btrfs_set_token_inode_uid(leaf, item, i_uid_read(inode), &token); leaf 3993 fs/btrfs/inode.c btrfs_set_token_inode_gid(leaf, item, i_gid_read(inode), &token); leaf 3994 fs/btrfs/inode.c btrfs_set_token_inode_size(leaf, item, BTRFS_I(inode)->disk_i_size, leaf 3996 fs/btrfs/inode.c btrfs_set_token_inode_mode(leaf, item, inode->i_mode, &token); leaf 3997 fs/btrfs/inode.c btrfs_set_token_inode_nlink(leaf, item, inode->i_nlink, &token); leaf 3999 fs/btrfs/inode.c btrfs_set_token_timespec_sec(leaf, &item->atime, leaf 4001 fs/btrfs/inode.c btrfs_set_token_timespec_nsec(leaf, &item->atime, leaf 4004 fs/btrfs/inode.c btrfs_set_token_timespec_sec(leaf, &item->mtime, leaf 4006 fs/btrfs/inode.c btrfs_set_token_timespec_nsec(leaf, &item->mtime, leaf 4009 fs/btrfs/inode.c btrfs_set_token_timespec_sec(leaf, &item->ctime, leaf 4011 fs/btrfs/inode.c btrfs_set_token_timespec_nsec(leaf, &item->ctime, leaf 4014 fs/btrfs/inode.c btrfs_set_token_timespec_sec(leaf, &item->otime, leaf 4016 fs/btrfs/inode.c btrfs_set_token_timespec_nsec(leaf, &item->otime, leaf 4019 fs/btrfs/inode.c btrfs_set_token_inode_nbytes(leaf, item, inode_get_bytes(inode), leaf 4021 fs/btrfs/inode.c btrfs_set_token_inode_generation(leaf, item, BTRFS_I(inode)->generation, leaf 4023 fs/btrfs/inode.c btrfs_set_token_inode_sequence(leaf, item, inode_peek_iversion(inode), leaf 4025 fs/btrfs/inode.c btrfs_set_token_inode_transid(leaf, item, trans->transid, &token); leaf 4026 fs/btrfs/inode.c btrfs_set_token_inode_rdev(leaf, item, inode->i_rdev, &token); leaf 4027 fs/btrfs/inode.c btrfs_set_token_inode_flags(leaf, item, BTRFS_I(inode)->flags, &token); leaf 4028 fs/btrfs/inode.c btrfs_set_token_inode_block_group(leaf, item, 0, &token); leaf 4039 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 4055 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 4056 fs/btrfs/inode.c inode_item = btrfs_item_ptr(leaf, path->slots[0], leaf 4059 fs/btrfs/inode.c fill_inode_item(trans, leaf, inode_item, inode); leaf 4060 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 4294 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 4324 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 4325 fs/btrfs/inode.c btrfs_dir_item_key_to_cpu(leaf, di, &key); leaf 4355 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 4356 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 4717 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 4811 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 4812 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 4823 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 4825 fs/btrfs/inode.c extent_type = btrfs_file_extent_type(leaf, fi); leaf 4828 fs/btrfs/inode.c btrfs_file_extent_num_bytes(leaf, fi); leaf 4831 fs/btrfs/inode.c BTRFS_I(inode), leaf, fi, leaf 4834 fs/btrfs/inode.c item_end += btrfs_file_extent_ram_bytes(leaf, leaf 4838 fs/btrfs/inode.c BTRFS_I(inode), leaf, fi, path->slots[0], leaf 4860 fs/btrfs/inode.c extent_start = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 4863 fs/btrfs/inode.c btrfs_file_extent_num_bytes(leaf, fi); leaf 4867 fs/btrfs/inode.c btrfs_set_file_extent_num_bytes(leaf, fi, leaf 4875 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 4878 fs/btrfs/inode.c btrfs_file_extent_disk_num_bytes(leaf, leaf 4881 fs/btrfs/inode.c btrfs_file_extent_offset(leaf, fi); leaf 4884 fs/btrfs/inode.c num_dec = btrfs_file_extent_num_bytes(leaf, fi); leaf 4898 fs/btrfs/inode.c btrfs_file_extent_encryption(leaf, fi) == 0 && leaf 4899 fs/btrfs/inode.c btrfs_file_extent_other_encoding(leaf, fi) == 0 && leaf 4900 fs/btrfs/inode.c btrfs_file_extent_compression(leaf, fi) == 0) { leaf 4903 fs/btrfs/inode.c btrfs_set_file_extent_ram_bytes(leaf, fi, size); leaf 4951 fs/btrfs/inode.c btrfs_init_data_ref(&ref, btrfs_header_owner(leaf), leaf 5714 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 5737 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 5738 fs/btrfs/inode.c ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); leaf 5739 fs/btrfs/inode.c if (btrfs_root_ref_dirid(leaf, ref) != btrfs_ino(BTRFS_I(dir)) || leaf 5740 fs/btrfs/inode.c btrfs_root_ref_name_len(leaf, ref) != dentry->d_name.len) leaf 5743 fs/btrfs/inode.c ret = memcmp_extent_buffer(leaf, dentry->d_name.name, leaf 6102 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 6137 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 6139 fs/btrfs/inode.c if (slot >= btrfs_header_nritems(leaf)) { leaf 6148 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 6158 fs/btrfs/inode.c di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); leaf 6159 fs/btrfs/inode.c name_len = btrfs_dir_name_len(leaf, di); leaf 6175 fs/btrfs/inode.c read_extent_buffer(leaf, name_ptr, (unsigned long)(di + 1), leaf 6177 fs/btrfs/inode.c put_unaligned(fs_ftype_to_dtype(btrfs_dir_type(leaf, di)), leaf 6179 fs/btrfs/inode.c btrfs_dir_item_key_to_cpu(leaf, di, &location); leaf 6299 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 6331 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 6332 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 6969 fs/btrfs/inode.c struct extent_buffer *leaf = path->nodes[0]; leaf 6977 fs/btrfs/inode.c compress_type = btrfs_file_extent_compression(leaf, item); leaf 6978 fs/btrfs/inode.c max_size = btrfs_file_extent_ram_bytes(leaf, item); leaf 6979 fs/btrfs/inode.c inline_size = btrfs_file_extent_inline_item_len(leaf, leaf 6986 fs/btrfs/inode.c read_extent_buffer(leaf, tmp, ptr, inline_size); leaf 7032 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 7089 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 7090 fs/btrfs/inode.c item = btrfs_item_ptr(leaf, path->slots[0], leaf 7092 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 7105 fs/btrfs/inode.c extent_type = btrfs_file_extent_type(leaf, item); leaf 7118 fs/btrfs/inode.c btrfs_file_extent_num_bytes(leaf, item); leaf 7120 fs/btrfs/inode.c trace_btrfs_get_extent_show_fi_regular(inode, leaf, item, leaf 7125 fs/btrfs/inode.c size = btrfs_file_extent_ram_bytes(leaf, item); leaf 7129 fs/btrfs/inode.c trace_btrfs_get_extent_show_fi_inline(inode, leaf, item, leaf 7136 fs/btrfs/inode.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 7144 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 7146 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 7179 fs/btrfs/inode.c size = btrfs_file_extent_ram_bytes(leaf, item); leaf 7191 fs/btrfs/inode.c if (btrfs_file_extent_compression(leaf, item) != leaf 7201 fs/btrfs/inode.c read_extent_buffer(leaf, map + pg_offset, ptr, leaf 7451 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 7483 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 7484 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 7496 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 7497 fs/btrfs/inode.c found_type = btrfs_file_extent_type(leaf, fi); leaf 7507 fs/btrfs/inode.c extent_end = key.offset + btrfs_file_extent_num_bytes(leaf, fi); leaf 7511 fs/btrfs/inode.c disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 7515 fs/btrfs/inode.c if (btrfs_file_extent_compression(leaf, fi) || leaf 7516 fs/btrfs/inode.c btrfs_file_extent_encryption(leaf, fi) || leaf 7517 fs/btrfs/inode.c btrfs_file_extent_other_encoding(leaf, fi)) leaf 7524 fs/btrfs/inode.c if (btrfs_file_extent_generation(leaf, fi) <= leaf 7528 fs/btrfs/inode.c backref_offset = btrfs_file_extent_offset(leaf, fi); leaf 7532 fs/btrfs/inode.c *orig_block_len = btrfs_file_extent_disk_num_bytes(leaf, fi); leaf 7533 fs/btrfs/inode.c *ram_bytes = btrfs_file_extent_ram_bytes(leaf, fi); leaf 10364 fs/btrfs/inode.c struct extent_buffer *leaf; leaf 10424 fs/btrfs/inode.c leaf = path->nodes[0]; leaf 10425 fs/btrfs/inode.c ei = btrfs_item_ptr(leaf, path->slots[0], leaf 10427 fs/btrfs/inode.c btrfs_set_file_extent_generation(leaf, ei, trans->transid); leaf 10428 fs/btrfs/inode.c btrfs_set_file_extent_type(leaf, ei, leaf 10430 fs/btrfs/inode.c btrfs_set_file_extent_encryption(leaf, ei, 0); leaf 10431 fs/btrfs/inode.c btrfs_set_file_extent_compression(leaf, ei, 0); leaf 10432 fs/btrfs/inode.c btrfs_set_file_extent_other_encoding(leaf, ei, 0); leaf 10433 fs/btrfs/inode.c btrfs_set_file_extent_ram_bytes(leaf, ei, name_len); leaf 10436 fs/btrfs/inode.c write_extent_buffer(leaf, symname, ptr, name_len); leaf 10437 fs/btrfs/inode.c btrfs_mark_buffer_dirty(leaf); leaf 566 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 618 fs/btrfs/ioctl.c leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); leaf 619 fs/btrfs/ioctl.c if (IS_ERR(leaf)) { leaf 620 fs/btrfs/ioctl.c ret = PTR_ERR(leaf); leaf 624 fs/btrfs/ioctl.c btrfs_mark_buffer_dirty(leaf); leaf 638 fs/btrfs/ioctl.c btrfs_set_root_bytenr(root_item, leaf->start); leaf 642 fs/btrfs/ioctl.c btrfs_set_root_used(root_item, leaf->len); leaf 655 fs/btrfs/ioctl.c btrfs_tree_unlock(leaf); leaf 656 fs/btrfs/ioctl.c free_extent_buffer(leaf); leaf 657 fs/btrfs/ioctl.c leaf = NULL; leaf 1057 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 1081 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 1082 fs/btrfs/ioctl.c extent = btrfs_item_ptr(leaf, path->slots[0], leaf 1085 fs/btrfs/ioctl.c type = btrfs_file_extent_type(leaf, extent); leaf 1087 fs/btrfs/ioctl.c btrfs_file_extent_num_bytes(leaf, extent) < thresh && leaf 1095 fs/btrfs/ioctl.c if (path->slots[0] < btrfs_header_nritems(leaf)) { leaf 1096 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &min_key, path->slots[0]); leaf 2039 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 2049 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 2051 fs/btrfs/ioctl.c nritems = btrfs_header_nritems(leaf); leaf 2053 fs/btrfs/ioctl.c if (btrfs_header_generation(leaf) > sk->max_transid) { leaf 2057 fs/btrfs/ioctl.c found_transid = btrfs_header_generation(leaf); leaf 2060 fs/btrfs/ioctl.c item_off = btrfs_item_ptr_offset(leaf, i); leaf 2061 fs/btrfs/ioctl.c item_len = btrfs_item_size_nr(leaf, i); leaf 2063 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, key, i); leaf 2105 fs/btrfs/ioctl.c if (read_extent_buffer_to_user(leaf, up, leaf 2390 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 2436 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 2438 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 2440 fs/btrfs/ioctl.c iref = btrfs_item_ptr(leaf, slot, struct btrfs_inode_ref); leaf 2441 fs/btrfs/ioctl.c len = btrfs_inode_ref_name_len(leaf, iref); leaf 2450 fs/btrfs/ioctl.c read_extent_buffer(leaf, ptr, leaf 2463 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 2465 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key2, slot); leaf 2514 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 2516 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 2518 fs/btrfs/ioctl.c item_off = btrfs_item_ptr_offset(leaf, slot); leaf 2519 fs/btrfs/ioctl.c item_len = btrfs_item_size_nr(leaf, slot); leaf 2521 fs/btrfs/ioctl.c rref = btrfs_item_ptr(leaf, slot, struct btrfs_root_ref); leaf 2522 fs/btrfs/ioctl.c if (args->dirid != btrfs_root_ref_dirid(leaf, rref)) { leaf 2530 fs/btrfs/ioctl.c read_extent_buffer(leaf, args->name, item_off, item_len); leaf 2633 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 2711 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 2713 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 2718 fs/btrfs/ioctl.c rref = btrfs_item_ptr(leaf, slot, struct btrfs_root_ref); leaf 2719 fs/btrfs/ioctl.c subvol_info->dirid = btrfs_root_ref_dirid(leaf, rref); leaf 2721 fs/btrfs/ioctl.c item_off = btrfs_item_ptr_offset(leaf, slot) leaf 2723 fs/btrfs/ioctl.c item_len = btrfs_item_size_nr(leaf, slot) leaf 2725 fs/btrfs/ioctl.c read_extent_buffer(leaf, subvol_info->name, leaf 2753 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 2793 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 2796 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 2807 fs/btrfs/ioctl.c rref = btrfs_item_ptr(leaf, slot, struct btrfs_root_ref); leaf 2810 fs/btrfs/ioctl.c btrfs_root_ref_dirid(leaf, rref); leaf 3502 fs/btrfs/ioctl.c struct extent_buffer *leaf; leaf 3571 fs/btrfs/ioctl.c leaf = path->nodes[0]; leaf 3574 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 3581 fs/btrfs/ioctl.c extent = btrfs_item_ptr(leaf, slot, leaf 3583 fs/btrfs/ioctl.c comp = btrfs_file_extent_compression(leaf, extent); leaf 3584 fs/btrfs/ioctl.c type = btrfs_file_extent_type(leaf, extent); leaf 3587 fs/btrfs/ioctl.c disko = btrfs_file_extent_disk_bytenr(leaf, extent); leaf 3588 fs/btrfs/ioctl.c diskl = btrfs_file_extent_disk_num_bytes(leaf, extent); leaf 3589 fs/btrfs/ioctl.c datao = btrfs_file_extent_offset(leaf, extent); leaf 3590 fs/btrfs/ioctl.c datal = btrfs_file_extent_num_bytes(leaf, extent); leaf 3593 fs/btrfs/ioctl.c datal = btrfs_file_extent_ram_bytes(leaf, extent); leaf 3608 fs/btrfs/ioctl.c size = btrfs_item_size_nr(leaf, slot); leaf 3609 fs/btrfs/ioctl.c read_extent_buffer(leaf, buf, btrfs_item_ptr_offset(leaf, slot), leaf 132 fs/btrfs/props.c struct extent_buffer *leaf; leaf 138 fs/btrfs/props.c leaf = path->nodes[0]; leaf 140 fs/btrfs/props.c if (slot >= btrfs_header_nritems(leaf)) { leaf 149 fs/btrfs/props.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 159 fs/btrfs/props.c di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); leaf 161 fs/btrfs/props.c total_len = btrfs_item_size_nr(leaf, slot); leaf 164 fs/btrfs/props.c u32 name_len = btrfs_dir_name_len(leaf, di); leaf 165 fs/btrfs/props.c u32 data_len = btrfs_dir_data_len(leaf, di); leaf 174 fs/btrfs/props.c memcmp_extent_buffer(leaf, XATTR_BTRFS_PREFIX, leaf 188 fs/btrfs/props.c read_extent_buffer(leaf, name_buf, name_ptr, name_len); leaf 204 fs/btrfs/props.c read_extent_buffer(leaf, value_buf, data_ptr, data_len); leaf 595 fs/btrfs/qgroup.c struct extent_buffer *leaf; leaf 620 fs/btrfs/qgroup.c leaf = path->nodes[0]; leaf 621 fs/btrfs/qgroup.c qgroup_info = btrfs_item_ptr(leaf, path->slots[0], leaf 623 fs/btrfs/qgroup.c btrfs_set_qgroup_info_generation(leaf, qgroup_info, trans->transid); leaf 624 fs/btrfs/qgroup.c btrfs_set_qgroup_info_rfer(leaf, qgroup_info, 0); leaf 625 fs/btrfs/qgroup.c btrfs_set_qgroup_info_rfer_cmpr(leaf, qgroup_info, 0); leaf 626 fs/btrfs/qgroup.c btrfs_set_qgroup_info_excl(leaf, qgroup_info, 0); leaf 627 fs/btrfs/qgroup.c btrfs_set_qgroup_info_excl_cmpr(leaf, qgroup_info, 0); leaf 629 fs/btrfs/qgroup.c btrfs_mark_buffer_dirty(leaf); leaf 639 fs/btrfs/qgroup.c leaf = path->nodes[0]; leaf 640 fs/btrfs/qgroup.c qgroup_limit = btrfs_item_ptr(leaf, path->slots[0], leaf 642 fs/btrfs/qgroup.c btrfs_set_qgroup_limit_flags(leaf, qgroup_limit, 0); leaf 643 fs/btrfs/qgroup.c btrfs_set_qgroup_limit_max_rfer(leaf, qgroup_limit, 0); leaf 644 fs/btrfs/qgroup.c btrfs_set_qgroup_limit_max_excl(leaf, qgroup_limit, 0); leaf 645 fs/btrfs/qgroup.c btrfs_set_qgroup_limit_rsv_rfer(leaf, qgroup_limit, 0); leaf 646 fs/btrfs/qgroup.c btrfs_set_qgroup_limit_rsv_excl(leaf, qgroup_limit, 0); leaf 648 fs/btrfs/qgroup.c btrfs_mark_buffer_dirty(leaf); leaf 839 fs/btrfs/qgroup.c struct extent_buffer *leaf = NULL; leaf 857 fs/btrfs/qgroup.c leaf = path->nodes[0]; leaf 858 fs/btrfs/qgroup.c nr = btrfs_header_nritems(leaf); leaf 885 fs/btrfs/qgroup.c struct extent_buffer *leaf; leaf 946 fs/btrfs/qgroup.c leaf = path->nodes[0]; leaf 947 fs/btrfs/qgroup.c ptr = btrfs_item_ptr(leaf, path->slots[0], leaf 949 fs/btrfs/qgroup.c btrfs_set_qgroup_status_generation(leaf, ptr, trans->transid); leaf 950 fs/btrfs/qgroup.c btrfs_set_qgroup_status_version(leaf, ptr, BTRFS_QGROUP_STATUS_VERSION); leaf 953 fs/btrfs/qgroup.c btrfs_set_qgroup_status_flags(leaf, ptr, fs_info->qgroup_flags); leaf 954 fs/btrfs/qgroup.c btrfs_set_qgroup_status_rescan(leaf, ptr, 0); leaf 956 fs/btrfs/qgroup.c btrfs_mark_buffer_dirty(leaf); leaf 973 fs/btrfs/qgroup.c leaf = path->nodes[0]; leaf 974 fs/btrfs/qgroup.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 382 fs/btrfs/ref-verify.c struct extent_buffer *leaf, leaf 389 fs/btrfs/ref-verify.c u64 ref_root = btrfs_extent_data_ref_root(leaf, dref); leaf 390 fs/btrfs/ref-verify.c u64 owner = btrfs_extent_data_ref_objectid(leaf, dref); leaf 391 fs/btrfs/ref-verify.c u64 offset = btrfs_extent_data_ref_offset(leaf, dref); leaf 392 fs/btrfs/ref-verify.c u32 num_refs = btrfs_extent_data_ref_count(leaf, dref); leaf 435 fs/btrfs/ref-verify.c struct extent_buffer *leaf = path->nodes[0]; leaf 436 fs/btrfs/ref-verify.c u32 item_size = btrfs_item_size_nr(leaf, slot); leaf 441 fs/btrfs/ref-verify.c ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); leaf 442 fs/btrfs/ref-verify.c flags = btrfs_extent_flags(leaf, ei); leaf 449 fs/btrfs/ref-verify.c *tree_block_level = btrfs_tree_block_level(leaf, info); leaf 461 fs/btrfs/ref-verify.c type = btrfs_extent_inline_ref_type(leaf, iref); leaf 462 fs/btrfs/ref-verify.c offset = btrfs_extent_inline_ref_offset(leaf, iref); leaf 474 fs/btrfs/ref-verify.c ret = add_extent_data_ref(fs_info, leaf, dref, leaf 479 fs/btrfs/ref-verify.c count = btrfs_shared_data_ref_count(leaf, sref); leaf 499 fs/btrfs/ref-verify.c struct extent_buffer *leaf = path->nodes[0]; leaf 505 fs/btrfs/ref-verify.c int nritems = btrfs_header_nritems(leaf); leaf 508 fs/btrfs/ref-verify.c btrfs_item_key_to_cpu(leaf, &key, i); leaf 527 fs/btrfs/ref-verify.c dref = btrfs_item_ptr(leaf, i, leaf 529 fs/btrfs/ref-verify.c ret = add_extent_data_ref(fs_info, leaf, dref, *bytenr, leaf 533 fs/btrfs/ref-verify.c sref = btrfs_item_ptr(leaf, i, leaf 535 fs/btrfs/ref-verify.c count = btrfs_shared_data_ref_count(leaf, sref); leaf 626 fs/btrfs/relocation.c int find_inline_backref(struct extent_buffer *leaf, int slot, leaf 634 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 636 fs/btrfs/relocation.c item_size = btrfs_item_size_nr(leaf, slot); leaf 638 fs/btrfs/relocation.c btrfs_print_v0_err(leaf->fs_info); leaf 639 fs/btrfs/relocation.c btrfs_handle_fs_error(leaf->fs_info, -EINVAL, NULL); leaf 642 fs/btrfs/relocation.c ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); leaf 643 fs/btrfs/relocation.c WARN_ON(!(btrfs_extent_flags(leaf, ei) & leaf 1619 fs/btrfs/relocation.c struct extent_buffer *leaf; leaf 1636 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 1637 fs/btrfs/relocation.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 1640 fs/btrfs/relocation.c BUG_ON(btrfs_file_extent_offset(leaf, fi) || leaf 1641 fs/btrfs/relocation.c btrfs_file_extent_compression(leaf, fi) || leaf 1642 fs/btrfs/relocation.c btrfs_file_extent_encryption(leaf, fi) || leaf 1643 fs/btrfs/relocation.c btrfs_file_extent_other_encoding(leaf, fi)); leaf 1645 fs/btrfs/relocation.c if (num_bytes != btrfs_file_extent_disk_num_bytes(leaf, fi)) { leaf 1650 fs/btrfs/relocation.c *new_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 1665 fs/btrfs/relocation.c struct extent_buffer *leaf) leaf 1687 fs/btrfs/relocation.c parent = leaf->start; leaf 1691 fs/btrfs/relocation.c nritems = btrfs_header_nritems(leaf); leaf 1696 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, i); leaf 1699 fs/btrfs/relocation.c fi = btrfs_item_ptr(leaf, i, struct btrfs_file_extent_item); leaf 1700 fs/btrfs/relocation.c if (btrfs_file_extent_type(leaf, fi) == leaf 1703 fs/btrfs/relocation.c bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); leaf 1704 fs/btrfs/relocation.c num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); leaf 1724 fs/btrfs/relocation.c btrfs_file_extent_num_bytes(leaf, fi); leaf 1751 fs/btrfs/relocation.c btrfs_set_file_extent_disk_bytenr(leaf, fi, new_bytenr); leaf 1754 fs/btrfs/relocation.c key.offset -= btrfs_file_extent_offset(leaf, fi); leaf 1758 fs/btrfs/relocation.c btrfs_init_data_ref(&ref, btrfs_header_owner(leaf), leaf 1769 fs/btrfs/relocation.c btrfs_init_data_ref(&ref, btrfs_header_owner(leaf), leaf 1778 fs/btrfs/relocation.c btrfs_mark_buffer_dirty(leaf); leaf 2274 fs/btrfs/relocation.c struct extent_buffer *leaf; leaf 2389 fs/btrfs/relocation.c leaf = btrfs_lock_root_node(root); leaf 2390 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, root, leaf, NULL, 0, &leaf); leaf 2391 fs/btrfs/relocation.c btrfs_tree_unlock(leaf); leaf 2392 fs/btrfs/relocation.c free_extent_buffer(leaf); leaf 3650 fs/btrfs/relocation.c struct extent_buffer *leaf, leaf 3671 fs/btrfs/relocation.c ref_root = btrfs_extent_data_ref_root(leaf, ref); leaf 3672 fs/btrfs/relocation.c ref_objectid = btrfs_extent_data_ref_objectid(leaf, ref); leaf 3673 fs/btrfs/relocation.c ref_offset = btrfs_extent_data_ref_offset(leaf, ref); leaf 3674 fs/btrfs/relocation.c ref_count = btrfs_extent_data_ref_count(leaf, ref); leaf 3714 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 3715 fs/btrfs/relocation.c nritems = btrfs_header_nritems(leaf); leaf 3720 fs/btrfs/relocation.c if (block_use_full_backref(rc, leaf)) leaf 3724 fs/btrfs/relocation.c rb_node = tree_search(blocks, leaf->start); leaf 3742 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 3743 fs/btrfs/relocation.c nritems = btrfs_header_nritems(leaf); leaf 3746 fs/btrfs/relocation.c if (block_use_full_backref(rc, leaf)) leaf 3750 fs/btrfs/relocation.c rb_node = tree_search(blocks, leaf->start); leaf 3759 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 3764 fs/btrfs/relocation.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 3767 fs/btrfs/relocation.c if (btrfs_file_extent_type(leaf, fi) == leaf 3771 fs/btrfs/relocation.c if (btrfs_file_extent_disk_bytenr(leaf, fi) != leaf 3775 fs/btrfs/relocation.c key.offset -= btrfs_file_extent_offset(leaf, fi); leaf 3784 fs/btrfs/relocation.c if (!tree_block_processed(leaf->start, rc)) { leaf 3790 fs/btrfs/relocation.c block->bytenr = leaf->start; leaf 3791 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &block->key, 0); leaf 3918 fs/btrfs/relocation.c struct extent_buffer *leaf; leaf 3941 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 3942 fs/btrfs/relocation.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 3946 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 3949 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 4241 fs/btrfs/relocation.c struct extent_buffer *leaf; leaf 4252 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 4253 fs/btrfs/relocation.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_inode_item); leaf 4254 fs/btrfs/relocation.c memzero_extent_buffer(leaf, (unsigned long)item, sizeof(*item)); leaf 4255 fs/btrfs/relocation.c btrfs_set_inode_generation(leaf, item, 1); leaf 4256 fs/btrfs/relocation.c btrfs_set_inode_size(leaf, item, 0); leaf 4257 fs/btrfs/relocation.c btrfs_set_inode_mode(leaf, item, S_IFREG | 0600); leaf 4258 fs/btrfs/relocation.c btrfs_set_inode_flags(leaf, item, BTRFS_INODE_NOCOMPRESS | leaf 4260 fs/btrfs/relocation.c btrfs_mark_buffer_dirty(leaf); leaf 4505 fs/btrfs/relocation.c struct extent_buffer *leaf; leaf 4532 fs/btrfs/relocation.c leaf = path->nodes[0]; leaf 4533 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 212 fs/btrfs/root-tree.c struct extent_buffer *leaf; leaf 238 fs/btrfs/root-tree.c leaf = path->nodes[0]; leaf 239 fs/btrfs/root-tree.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 245 fs/btrfs/root-tree.c leaf = path->nodes[0]; leaf 248 fs/btrfs/root-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 359 fs/btrfs/root-tree.c struct extent_buffer *leaf; leaf 376 fs/btrfs/root-tree.c leaf = path->nodes[0]; leaf 377 fs/btrfs/root-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], leaf 380 fs/btrfs/root-tree.c if ((btrfs_root_ref_dirid(leaf, ref) != dirid) || leaf 381 fs/btrfs/root-tree.c (btrfs_root_ref_name_len(leaf, ref) != name_len) || leaf 382 fs/btrfs/root-tree.c memcmp_extent_buffer(leaf, name, ptr, name_len)) { leaf 386 fs/btrfs/root-tree.c *sequence = btrfs_root_ref_sequence(leaf, ref); leaf 433 fs/btrfs/root-tree.c struct extent_buffer *leaf; leaf 452 fs/btrfs/root-tree.c leaf = path->nodes[0]; leaf 453 fs/btrfs/root-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); leaf 454 fs/btrfs/root-tree.c btrfs_set_root_ref_dirid(leaf, ref, dirid); leaf 455 fs/btrfs/root-tree.c btrfs_set_root_ref_sequence(leaf, ref, sequence); leaf 456 fs/btrfs/root-tree.c btrfs_set_root_ref_name_len(leaf, ref, name_len); leaf 458 fs/btrfs/root-tree.c write_extent_buffer(leaf, name, ptr, name_len); leaf 459 fs/btrfs/root-tree.c btrfs_mark_buffer_dirty(leaf); leaf 2351 fs/btrfs/send.c struct extent_buffer *leaf; leaf 2378 fs/btrfs/send.c leaf = path->nodes[0]; leaf 2379 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 2385 fs/btrfs/send.c ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); leaf 2386 fs/btrfs/send.c namelen = btrfs_root_ref_name_len(leaf, ref); leaf 2387 fs/btrfs/send.c read_extent_buffer(leaf, name, (unsigned long)(ref + 1), namelen); leaf 3610 fs/btrfs/send.c struct extent_buffer *leaf = path->nodes[0]; leaf 3615 fs/btrfs/send.c if (slot >= btrfs_header_nritems(leaf)) { leaf 3624 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 3631 fs/btrfs/send.c item_size = btrfs_item_size_nr(leaf, slot); leaf 3640 fs/btrfs/send.c ptr = btrfs_item_ptr_offset(leaf, slot); leaf 3643 fs/btrfs/send.c parent = btrfs_inode_extref_parent(leaf, leaf 3646 fs/btrfs/send.c cur_offset += btrfs_inode_extref_name_len(leaf, leaf 5182 fs/btrfs/send.c struct extent_buffer *leaf = path->nodes[0]; leaf 5190 fs/btrfs/send.c if (slot >= btrfs_header_nritems(leaf)) { leaf 5199 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 5209 fs/btrfs/send.c ei = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 5210 fs/btrfs/send.c type = btrfs_file_extent_type(leaf, ei); leaf 5212 fs/btrfs/send.c ext_len = btrfs_file_extent_ram_bytes(leaf, ei); leaf 5215 fs/btrfs/send.c ext_len = btrfs_file_extent_num_bytes(leaf, ei); leaf 5248 fs/btrfs/send.c clone_data_offset = btrfs_file_extent_offset(leaf, ei); leaf 5249 fs/btrfs/send.c if (btrfs_file_extent_disk_bytenr(leaf, ei) == disk_byte) { leaf 5264 fs/btrfs/send.c if (btrfs_file_extent_disk_bytenr(leaf, ei) == disk_byte && leaf 5644 fs/btrfs/send.c struct extent_buffer *leaf = path->nodes[0]; leaf 5649 fs/btrfs/send.c if (slot >= btrfs_header_nritems(leaf)) { leaf 5658 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 5667 fs/btrfs/send.c fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 5668 fs/btrfs/send.c if (btrfs_file_extent_type(leaf, fi) == leaf 5670 fs/btrfs/send.c u64 size = btrfs_file_extent_ram_bytes(leaf, fi); leaf 5676 fs/btrfs/send.c btrfs_file_extent_num_bytes(leaf, fi); leaf 5680 fs/btrfs/send.c if (btrfs_file_extent_disk_bytenr(leaf, fi) == 0) { leaf 6410 fs/btrfs/send.c struct extent_buffer *leaf; leaf 6426 fs/btrfs/send.c leaf = path->nodes[0]; leaf 6427 fs/btrfs/send.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 6428 fs/btrfs/send.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 6432 fs/btrfs/send.c dirid = btrfs_inode_extref_parent(leaf, extref); leaf 6433 fs/btrfs/send.c ref_name_len = btrfs_inode_extref_name_len(leaf, extref); leaf 21 fs/btrfs/tests/inode-tests.c struct extent_buffer *leaf = root->node; leaf 29 fs/btrfs/tests/inode-tests.c path.nodes[0] = leaf; leaf 38 fs/btrfs/tests/inode-tests.c fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 39 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_generation(leaf, fi, 1); leaf 40 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_type(leaf, fi, type); leaf 41 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_disk_bytenr(leaf, fi, disk_bytenr); leaf 42 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_disk_num_bytes(leaf, fi, disk_len); leaf 43 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_offset(leaf, fi, offset); leaf 44 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_num_bytes(leaf, fi, len); leaf 45 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_ram_bytes(leaf, fi, ram_bytes); leaf 46 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_compression(leaf, fi, compression); leaf 47 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_encryption(leaf, fi, 0); leaf 48 fs/btrfs/tests/inode-tests.c btrfs_set_file_extent_other_encoding(leaf, fi, 0); leaf 54 fs/btrfs/tests/inode-tests.c struct extent_buffer *leaf = root->node; leaf 60 fs/btrfs/tests/inode-tests.c path.nodes[0] = leaf; leaf 22 fs/btrfs/tests/qgroup-tests.c struct extent_buffer *leaf; leaf 47 fs/btrfs/tests/qgroup-tests.c leaf = path->nodes[0]; leaf 48 fs/btrfs/tests/qgroup-tests.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); leaf 49 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_refs(leaf, item, 1); leaf 50 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_generation(leaf, item, 1); leaf 51 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_TREE_BLOCK); leaf 53 fs/btrfs/tests/qgroup-tests.c btrfs_set_tree_block_level(leaf, block_info, 0); leaf 56 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_inline_ref_type(leaf, iref, leaf 58 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_inline_ref_offset(leaf, iref, parent); leaf 60 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_inline_ref_type(leaf, iref, BTRFS_TREE_BLOCK_REF_KEY); leaf 61 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_inline_ref_offset(leaf, iref, root_objectid); leaf 100 fs/btrfs/tree-checker.c #define CHECK_FE_ALIGNED(leaf, slot, fi, name, alignment) \ leaf 102 fs/btrfs/tree-checker.c if (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))) \ leaf 103 fs/btrfs/tree-checker.c file_extent_err((leaf), (slot), \ leaf 105 fs/btrfs/tree-checker.c (#name), btrfs_file_extent_##name((leaf), (fi)), \ leaf 107 fs/btrfs/tree-checker.c (!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), (alignment))); \ leaf 110 fs/btrfs/tree-checker.c static u64 file_extent_end(struct extent_buffer *leaf, leaf 117 fs/btrfs/tree-checker.c if (btrfs_file_extent_type(leaf, extent) == BTRFS_FILE_EXTENT_INLINE) { leaf 118 fs/btrfs/tree-checker.c len = btrfs_file_extent_ram_bytes(leaf, extent); leaf 119 fs/btrfs/tree-checker.c end = ALIGN(key->offset + len, leaf->fs_info->sectorsize); leaf 121 fs/btrfs/tree-checker.c len = btrfs_file_extent_num_bytes(leaf, extent); leaf 127 fs/btrfs/tree-checker.c static int check_extent_data_item(struct extent_buffer *leaf, leaf 131 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 134 fs/btrfs/tree-checker.c u32 item_size = btrfs_item_size_nr(leaf, slot); leaf 138 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 144 fs/btrfs/tree-checker.c fi = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 146 fs/btrfs/tree-checker.c if (btrfs_file_extent_type(leaf, fi) > BTRFS_FILE_EXTENT_TYPES) { leaf 147 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 149 fs/btrfs/tree-checker.c btrfs_file_extent_type(leaf, fi), leaf 158 fs/btrfs/tree-checker.c if (btrfs_file_extent_compression(leaf, fi) > BTRFS_COMPRESS_TYPES) { leaf 159 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 161 fs/btrfs/tree-checker.c btrfs_file_extent_compression(leaf, fi), leaf 165 fs/btrfs/tree-checker.c if (btrfs_file_extent_encryption(leaf, fi)) { leaf 166 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 168 fs/btrfs/tree-checker.c btrfs_file_extent_encryption(leaf, fi)); leaf 171 fs/btrfs/tree-checker.c if (btrfs_file_extent_type(leaf, fi) == BTRFS_FILE_EXTENT_INLINE) { leaf 174 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 181 fs/btrfs/tree-checker.c if (btrfs_file_extent_compression(leaf, fi) != leaf 187 fs/btrfs/tree-checker.c btrfs_file_extent_ram_bytes(leaf, fi)) { leaf 188 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 191 fs/btrfs/tree-checker.c btrfs_file_extent_ram_bytes(leaf, fi)); leaf 199 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 204 fs/btrfs/tree-checker.c if (CHECK_FE_ALIGNED(leaf, slot, fi, ram_bytes, sectorsize) || leaf 205 fs/btrfs/tree-checker.c CHECK_FE_ALIGNED(leaf, slot, fi, disk_bytenr, sectorsize) || leaf 206 fs/btrfs/tree-checker.c CHECK_FE_ALIGNED(leaf, slot, fi, disk_num_bytes, sectorsize) || leaf 207 fs/btrfs/tree-checker.c CHECK_FE_ALIGNED(leaf, slot, fi, offset, sectorsize) || leaf 208 fs/btrfs/tree-checker.c CHECK_FE_ALIGNED(leaf, slot, fi, num_bytes, sectorsize)) leaf 212 fs/btrfs/tree-checker.c if (check_add_overflow(btrfs_file_extent_num_bytes(leaf, fi), leaf 214 fs/btrfs/tree-checker.c file_extent_err(leaf, slot, leaf 217 fs/btrfs/tree-checker.c btrfs_file_extent_num_bytes(leaf, fi)); leaf 231 fs/btrfs/tree-checker.c prev_fi = btrfs_item_ptr(leaf, slot - 1, leaf 233 fs/btrfs/tree-checker.c prev_end = file_extent_end(leaf, prev_key, prev_fi); leaf 235 fs/btrfs/tree-checker.c file_extent_err(leaf, slot - 1, leaf 245 fs/btrfs/tree-checker.c static int check_csum_item(struct extent_buffer *leaf, struct btrfs_key *key, leaf 248 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 253 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 259 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 264 fs/btrfs/tree-checker.c if (!IS_ALIGNED(btrfs_item_size_nr(leaf, slot), csumsize)) { leaf 265 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 267 fs/btrfs/tree-checker.c btrfs_item_size_nr(leaf, slot), csumsize); leaf 274 fs/btrfs/tree-checker.c prev_item_size = btrfs_item_size_nr(leaf, slot - 1); leaf 278 fs/btrfs/tree-checker.c generic_err(leaf, slot - 1, leaf 315 fs/btrfs/tree-checker.c static int check_dir_item(struct extent_buffer *leaf, leaf 318 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 320 fs/btrfs/tree-checker.c u32 item_size = btrfs_item_size_nr(leaf, slot); leaf 323 fs/btrfs/tree-checker.c di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); leaf 334 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 341 fs/btrfs/tree-checker.c dir_type = btrfs_dir_type(leaf, di); leaf 343 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 351 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 358 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 368 fs/btrfs/tree-checker.c name_len = btrfs_dir_name_len(leaf, di); leaf 369 fs/btrfs/tree-checker.c data_len = btrfs_dir_data_len(leaf, di); leaf 371 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 377 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 385 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 395 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 409 fs/btrfs/tree-checker.c read_extent_buffer(leaf, namebuf, leaf 413 fs/btrfs/tree-checker.c dir_item_err(leaf, slot, leaf 449 fs/btrfs/tree-checker.c static int check_block_group_item(struct extent_buffer *leaf, leaf 453 fs/btrfs/tree-checker.c u32 item_size = btrfs_item_size_nr(leaf, slot); leaf 462 fs/btrfs/tree-checker.c block_group_err(leaf, slot, leaf 468 fs/btrfs/tree-checker.c block_group_err(leaf, slot, leaf 474 fs/btrfs/tree-checker.c read_extent_buffer(leaf, &bgi, btrfs_item_ptr_offset(leaf, slot), leaf 478 fs/btrfs/tree-checker.c block_group_err(leaf, slot, leaf 486 fs/btrfs/tree-checker.c block_group_err(leaf, slot, leaf 494 fs/btrfs/tree-checker.c block_group_err(leaf, slot, leaf 507 fs/btrfs/tree-checker.c block_group_err(leaf, slot, leaf 520 fs/btrfs/tree-checker.c static void chunk_err(const struct extent_buffer *leaf, leaf 524 fs/btrfs/tree-checker.c const struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 532 fs/btrfs/tree-checker.c is_sb = (leaf->start == BTRFS_SUPER_INFO_OFFSET); leaf 539 fs/btrfs/tree-checker.c for (i = 0; i < btrfs_header_nritems(leaf); i++) { leaf 540 fs/btrfs/tree-checker.c if (btrfs_item_ptr_offset(leaf, i) == leaf 558 fs/btrfs/tree-checker.c BTRFS_CHUNK_TREE_OBJECTID, leaf->start, slot, leaf 569 fs/btrfs/tree-checker.c int btrfs_check_chunk_valid(struct extent_buffer *leaf, leaf 572 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 581 fs/btrfs/tree-checker.c length = btrfs_chunk_length(leaf, chunk); leaf 582 fs/btrfs/tree-checker.c stripe_len = btrfs_chunk_stripe_len(leaf, chunk); leaf 583 fs/btrfs/tree-checker.c num_stripes = btrfs_chunk_num_stripes(leaf, chunk); leaf 584 fs/btrfs/tree-checker.c sub_stripes = btrfs_chunk_sub_stripes(leaf, chunk); leaf 585 fs/btrfs/tree-checker.c type = btrfs_chunk_type(leaf, chunk); leaf 588 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 593 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 598 fs/btrfs/tree-checker.c if (btrfs_chunk_sector_size(leaf, chunk) != fs_info->sectorsize) { leaf 599 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 601 fs/btrfs/tree-checker.c btrfs_chunk_sector_size(leaf, chunk), leaf 606 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 611 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 618 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 622 fs/btrfs/tree-checker.c btrfs_chunk_type(leaf, chunk)); leaf 628 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 634 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 642 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 655 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 667 fs/btrfs/tree-checker.c chunk_err(leaf, chunk, logical, leaf 700 fs/btrfs/tree-checker.c static int check_dev_item(struct extent_buffer *leaf, leaf 706 fs/btrfs/tree-checker.c dev_item_err(leaf, slot, leaf 711 fs/btrfs/tree-checker.c ditem = btrfs_item_ptr(leaf, slot, struct btrfs_dev_item); leaf 712 fs/btrfs/tree-checker.c if (btrfs_device_id(leaf, ditem) != key->offset) { leaf 713 fs/btrfs/tree-checker.c dev_item_err(leaf, slot, leaf 715 fs/btrfs/tree-checker.c key->offset, btrfs_device_id(leaf, ditem)); leaf 724 fs/btrfs/tree-checker.c if (btrfs_device_bytes_used(leaf, ditem) > leaf 725 fs/btrfs/tree-checker.c btrfs_device_total_bytes(leaf, ditem)) { leaf 726 fs/btrfs/tree-checker.c dev_item_err(leaf, slot, leaf 728 fs/btrfs/tree-checker.c btrfs_device_bytes_used(leaf, ditem), leaf 729 fs/btrfs/tree-checker.c btrfs_device_total_bytes(leaf, ditem)); leaf 743 fs/btrfs/tree-checker.c static int check_inode_item(struct extent_buffer *leaf, leaf 746 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 756 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 765 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 770 fs/btrfs/tree-checker.c iitem = btrfs_item_ptr(leaf, slot, struct btrfs_inode_item); leaf 773 fs/btrfs/tree-checker.c if (btrfs_inode_generation(leaf, iitem) > super_gen + 1) { leaf 774 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 776 fs/btrfs/tree-checker.c btrfs_inode_generation(leaf, iitem), leaf 781 fs/btrfs/tree-checker.c if (btrfs_inode_transid(leaf, iitem) > super_gen + 1) { leaf 782 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 784 fs/btrfs/tree-checker.c btrfs_inode_transid(leaf, iitem), super_gen + 1); leaf 793 fs/btrfs/tree-checker.c mode = btrfs_inode_mode(leaf, iitem); leaf 795 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 808 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 814 fs/btrfs/tree-checker.c if (S_ISDIR(mode) && btrfs_inode_nlink(leaf, iitem) > 1) { leaf 815 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 817 fs/btrfs/tree-checker.c btrfs_inode_nlink(leaf, iitem)); leaf 820 fs/btrfs/tree-checker.c if (btrfs_inode_flags(leaf, iitem) & ~BTRFS_INODE_FLAG_MASK) { leaf 821 fs/btrfs/tree-checker.c inode_item_err(fs_info, leaf, slot, leaf 823 fs/btrfs/tree-checker.c btrfs_inode_flags(leaf, iitem) & leaf 830 fs/btrfs/tree-checker.c static int check_root_item(struct extent_buffer *leaf, struct btrfs_key *key, leaf 833 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 840 fs/btrfs/tree-checker.c generic_err(leaf, slot, "invalid root id 0"); leaf 850 fs/btrfs/tree-checker.c generic_err(leaf, slot, "invalid root id 0 for reloc tree"); leaf 854 fs/btrfs/tree-checker.c if (btrfs_item_size_nr(leaf, slot) != sizeof(ri)) { leaf 855 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 857 fs/btrfs/tree-checker.c btrfs_item_size_nr(leaf, slot), sizeof(ri)); leaf 860 fs/btrfs/tree-checker.c read_extent_buffer(leaf, &ri, btrfs_item_ptr_offset(leaf, slot), leaf 866 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 874 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 882 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 891 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 897 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 903 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 911 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 950 fs/btrfs/tree-checker.c static int check_extent_item(struct extent_buffer *leaf, leaf 953 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 958 fs/btrfs/tree-checker.c const u32 item_size = btrfs_item_size_nr(leaf, slot); leaf 966 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 972 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 981 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1007 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1013 fs/btrfs/tree-checker.c end = item_size + btrfs_item_ptr_offset(leaf, slot); leaf 1016 fs/btrfs/tree-checker.c ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); leaf 1017 fs/btrfs/tree-checker.c flags = btrfs_extent_flags(leaf, ei); leaf 1018 fs/btrfs/tree-checker.c total_refs = btrfs_extent_refs(leaf, ei); leaf 1019 fs/btrfs/tree-checker.c generation = btrfs_extent_generation(leaf, ei); leaf 1021 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1029 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1039 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1046 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1052 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1065 fs/btrfs/tree-checker.c if (btrfs_tree_block_level(leaf, info) >= BTRFS_MAX_LEVEL) { leaf 1066 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1068 fs/btrfs/tree-checker.c btrfs_tree_block_level(leaf, info), leaf 1085 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1091 fs/btrfs/tree-checker.c inline_type = btrfs_extent_inline_ref_type(leaf, iref); leaf 1092 fs/btrfs/tree-checker.c inline_offset = btrfs_extent_inline_ref_offset(leaf, iref); leaf 1094 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1108 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1121 fs/btrfs/tree-checker.c dref_offset = btrfs_extent_data_ref_offset(leaf, dref); leaf 1123 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1128 fs/btrfs/tree-checker.c inline_refs += btrfs_extent_data_ref_count(leaf, dref); leaf 1134 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1139 fs/btrfs/tree-checker.c inline_refs += btrfs_shared_data_ref_count(leaf, sref); leaf 1142 fs/btrfs/tree-checker.c extent_err(leaf, slot, "unknown inline ref type: %u", leaf 1150 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1157 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1165 fs/btrfs/tree-checker.c static int check_simple_keyed_refs(struct extent_buffer *leaf, leaf 1173 fs/btrfs/tree-checker.c if (btrfs_item_size_nr(leaf, slot) != expect_item_size) { leaf 1174 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1176 fs/btrfs/tree-checker.c btrfs_item_size_nr(leaf, slot), leaf 1180 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize)) { leaf 1181 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1183 fs/btrfs/tree-checker.c key->objectid, leaf->fs_info->sectorsize); leaf 1187 fs/btrfs/tree-checker.c !IS_ALIGNED(key->offset, leaf->fs_info->sectorsize)) { leaf 1188 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1190 fs/btrfs/tree-checker.c key->offset, leaf->fs_info->sectorsize); leaf 1196 fs/btrfs/tree-checker.c static int check_extent_data_ref(struct extent_buffer *leaf, leaf 1200 fs/btrfs/tree-checker.c unsigned long ptr = btrfs_item_ptr_offset(leaf, slot); leaf 1201 fs/btrfs/tree-checker.c const unsigned long end = ptr + btrfs_item_size_nr(leaf, slot); leaf 1203 fs/btrfs/tree-checker.c if (btrfs_item_size_nr(leaf, slot) % sizeof(*dref) != 0) { leaf 1204 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1206 fs/btrfs/tree-checker.c btrfs_item_size_nr(leaf, slot), leaf 1209 fs/btrfs/tree-checker.c if (!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize)) { leaf 1210 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1212 fs/btrfs/tree-checker.c key->objectid, leaf->fs_info->sectorsize); leaf 1222 fs/btrfs/tree-checker.c root_objectid = btrfs_extent_data_ref_root(leaf, dref); leaf 1223 fs/btrfs/tree-checker.c owner = btrfs_extent_data_ref_objectid(leaf, dref); leaf 1224 fs/btrfs/tree-checker.c offset = btrfs_extent_data_ref_offset(leaf, dref); leaf 1227 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1232 fs/btrfs/tree-checker.c if (!IS_ALIGNED(offset, leaf->fs_info->sectorsize)) { leaf 1233 fs/btrfs/tree-checker.c extent_err(leaf, slot, leaf 1235 fs/btrfs/tree-checker.c offset, leaf->fs_info->sectorsize); leaf 1244 fs/btrfs/tree-checker.c static int check_leaf_item(struct extent_buffer *leaf, leaf 1253 fs/btrfs/tree-checker.c ret = check_extent_data_item(leaf, key, slot, prev_key); leaf 1256 fs/btrfs/tree-checker.c ret = check_csum_item(leaf, key, slot, prev_key); leaf 1261 fs/btrfs/tree-checker.c ret = check_dir_item(leaf, key, slot); leaf 1264 fs/btrfs/tree-checker.c ret = check_block_group_item(leaf, key, slot); leaf 1267 fs/btrfs/tree-checker.c chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk); leaf 1268 fs/btrfs/tree-checker.c ret = btrfs_check_chunk_valid(leaf, chunk, key->offset); leaf 1271 fs/btrfs/tree-checker.c ret = check_dev_item(leaf, key, slot); leaf 1274 fs/btrfs/tree-checker.c ret = check_inode_item(leaf, key, slot); leaf 1277 fs/btrfs/tree-checker.c ret = check_root_item(leaf, key, slot); leaf 1281 fs/btrfs/tree-checker.c ret = check_extent_item(leaf, key, slot); leaf 1286 fs/btrfs/tree-checker.c ret = check_simple_keyed_refs(leaf, key, slot); leaf 1289 fs/btrfs/tree-checker.c ret = check_extent_data_ref(leaf, key, slot); leaf 1295 fs/btrfs/tree-checker.c static int check_leaf(struct extent_buffer *leaf, bool check_item_data) leaf 1297 fs/btrfs/tree-checker.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 1301 fs/btrfs/tree-checker.c u32 nritems = btrfs_header_nritems(leaf); leaf 1304 fs/btrfs/tree-checker.c if (btrfs_header_level(leaf) != 0) { leaf 1305 fs/btrfs/tree-checker.c generic_err(leaf, 0, leaf 1307 fs/btrfs/tree-checker.c btrfs_header_level(leaf)); leaf 1319 fs/btrfs/tree-checker.c if (nritems == 0 && !btrfs_header_flag(leaf, BTRFS_HEADER_FLAG_RELOC)) { leaf 1320 fs/btrfs/tree-checker.c u64 owner = btrfs_header_owner(leaf); leaf 1329 fs/btrfs/tree-checker.c generic_err(leaf, 0, leaf 1336 fs/btrfs/tree-checker.c generic_err(leaf, 0, leaf 1361 fs/btrfs/tree-checker.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 1365 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1381 fs/btrfs/tree-checker.c item_end_expected = btrfs_item_offset_nr(leaf, leaf 1383 fs/btrfs/tree-checker.c if (btrfs_item_end_nr(leaf, slot) != item_end_expected) { leaf 1384 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1386 fs/btrfs/tree-checker.c btrfs_item_end_nr(leaf, slot), leaf 1396 fs/btrfs/tree-checker.c if (btrfs_item_end_nr(leaf, slot) > leaf 1398 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1400 fs/btrfs/tree-checker.c btrfs_item_end_nr(leaf, slot), leaf 1407 fs/btrfs/tree-checker.c btrfs_item_ptr_offset(leaf, slot)) { leaf 1408 fs/btrfs/tree-checker.c generic_err(leaf, slot, leaf 1412 fs/btrfs/tree-checker.c btrfs_item_ptr_offset(leaf, slot)); leaf 1421 fs/btrfs/tree-checker.c ret = check_leaf_item(leaf, &key, slot, &prev_key); leaf 1434 fs/btrfs/tree-checker.c int btrfs_check_leaf_full(struct extent_buffer *leaf) leaf 1436 fs/btrfs/tree-checker.c return check_leaf(leaf, true); leaf 1440 fs/btrfs/tree-checker.c int btrfs_check_leaf_relaxed(struct extent_buffer *leaf) leaf 1442 fs/btrfs/tree-checker.c return check_leaf(leaf, false); leaf 17 fs/btrfs/tree-checker.h int btrfs_check_leaf_full(struct extent_buffer *leaf); leaf 23 fs/btrfs/tree-checker.h int btrfs_check_leaf_relaxed(struct extent_buffer *leaf); leaf 26 fs/btrfs/tree-checker.h int btrfs_check_chunk_valid(struct extent_buffer *leaf, leaf 640 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 642 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 643 fs/btrfs/tree-log.c existing = btrfs_item_ptr(leaf, path->slots[0], leaf 648 fs/btrfs/tree-log.c read_extent_buffer(leaf, &cmp2, (unsigned long)existing, leaf 859 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 863 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 865 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(leaf, di, &location); leaf 866 fs/btrfs/tree-log.c name_len = btrfs_dir_name_len(leaf, di); leaf 871 fs/btrfs/tree-log.c read_extent_buffer(leaf, name, (unsigned long)(di + 1), name_len); leaf 1012 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 1028 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 1040 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 1041 fs/btrfs/tree-log.c ptr_end = ptr + btrfs_item_size_nr(leaf, path->slots[0]); leaf 1044 fs/btrfs/tree-log.c victim_name_len = btrfs_inode_ref_name_len(leaf, leaf 1050 fs/btrfs/tree-log.c read_extent_buffer(leaf, victim_name, leaf 1095 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 1097 fs/btrfs/tree-log.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 1098 fs/btrfs/tree-log.c base = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 1103 fs/btrfs/tree-log.c victim_name_len = btrfs_inode_extref_name_len(leaf, extref); leaf 1105 fs/btrfs/tree-log.c if (btrfs_inode_extref_parent(leaf, extref) != parent_objectid) leaf 1111 fs/btrfs/tree-log.c read_extent_buffer(leaf, victim_name, (unsigned long)&extref->name, leaf 1610 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 1618 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 1619 fs/btrfs/tree-log.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); leaf 1620 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); leaf 1625 fs/btrfs/tree-log.c name_len = btrfs_inode_extref_name_len(leaf, extref); leaf 3857 fs/btrfs/tree-log.c struct extent_buffer *leaf, leaf 3864 fs/btrfs/tree-log.c btrfs_init_map_token(&token, leaf); leaf 3872 fs/btrfs/tree-log.c btrfs_set_token_inode_generation(leaf, item, 0, &token); leaf 3873 fs/btrfs/tree-log.c btrfs_set_token_inode_size(leaf, item, logged_isize, &token); leaf 3875 fs/btrfs/tree-log.c btrfs_set_token_inode_generation(leaf, item, leaf 3878 fs/btrfs/tree-log.c btrfs_set_token_inode_size(leaf, item, inode->i_size, &token); leaf 3881 fs/btrfs/tree-log.c btrfs_set_token_inode_uid(leaf, item, i_uid_read(inode), &token); leaf 3882 fs/btrfs/tree-log.c btrfs_set_token_inode_gid(leaf, item, i_gid_read(inode), &token); leaf 3883 fs/btrfs/tree-log.c btrfs_set_token_inode_mode(leaf, item, inode->i_mode, &token); leaf 3884 fs/btrfs/tree-log.c btrfs_set_token_inode_nlink(leaf, item, inode->i_nlink, &token); leaf 3886 fs/btrfs/tree-log.c btrfs_set_token_timespec_sec(leaf, &item->atime, leaf 3888 fs/btrfs/tree-log.c btrfs_set_token_timespec_nsec(leaf, &item->atime, leaf 3891 fs/btrfs/tree-log.c btrfs_set_token_timespec_sec(leaf, &item->mtime, leaf 3893 fs/btrfs/tree-log.c btrfs_set_token_timespec_nsec(leaf, &item->mtime, leaf 3896 fs/btrfs/tree-log.c btrfs_set_token_timespec_sec(leaf, &item->ctime, leaf 3898 fs/btrfs/tree-log.c btrfs_set_token_timespec_nsec(leaf, &item->ctime, leaf 3901 fs/btrfs/tree-log.c btrfs_set_token_inode_nbytes(leaf, item, inode_get_bytes(inode), leaf 3904 fs/btrfs/tree-log.c btrfs_set_token_inode_sequence(leaf, item, leaf 3906 fs/btrfs/tree-log.c btrfs_set_token_inode_transid(leaf, item, trans->transid, &token); leaf 3907 fs/btrfs/tree-log.c btrfs_set_token_inode_rdev(leaf, item, inode->i_rdev, &token); leaf 3908 fs/btrfs/tree-log.c btrfs_set_token_inode_flags(leaf, item, BTRFS_I(inode)->flags, &token); leaf 3909 fs/btrfs/tree-log.c btrfs_set_token_inode_block_group(leaf, item, 0, &token); leaf 4150 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 4178 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 4179 fs/btrfs/tree-log.c btrfs_init_map_token(&token, leaf); leaf 4180 fs/btrfs/tree-log.c fi = btrfs_item_ptr(leaf, path->slots[0], leaf 4183 fs/btrfs/tree-log.c btrfs_set_token_file_extent_generation(leaf, fi, trans->transid, leaf 4186 fs/btrfs/tree-log.c btrfs_set_token_file_extent_type(leaf, fi, leaf 4190 fs/btrfs/tree-log.c btrfs_set_token_file_extent_type(leaf, fi, leaf 4196 fs/btrfs/tree-log.c btrfs_set_token_file_extent_disk_bytenr(leaf, fi, leaf 4199 fs/btrfs/tree-log.c btrfs_set_token_file_extent_disk_num_bytes(leaf, fi, block_len, leaf 4202 fs/btrfs/tree-log.c btrfs_set_token_file_extent_disk_bytenr(leaf, fi, leaf 4205 fs/btrfs/tree-log.c btrfs_set_token_file_extent_disk_num_bytes(leaf, fi, block_len, leaf 4208 fs/btrfs/tree-log.c btrfs_set_token_file_extent_disk_bytenr(leaf, fi, 0, &token); leaf 4209 fs/btrfs/tree-log.c btrfs_set_token_file_extent_disk_num_bytes(leaf, fi, 0, leaf 4213 fs/btrfs/tree-log.c btrfs_set_token_file_extent_offset(leaf, fi, extent_offset, &token); leaf 4214 fs/btrfs/tree-log.c btrfs_set_token_file_extent_num_bytes(leaf, fi, em->len, &token); leaf 4215 fs/btrfs/tree-log.c btrfs_set_token_file_extent_ram_bytes(leaf, fi, em->ram_bytes, &token); leaf 4216 fs/btrfs/tree-log.c btrfs_set_token_file_extent_compression(leaf, fi, em->compress_type, leaf 4218 fs/btrfs/tree-log.c btrfs_set_token_file_extent_encryption(leaf, fi, 0, &token); leaf 4219 fs/btrfs/tree-log.c btrfs_set_token_file_extent_other_encoding(leaf, fi, 0, &token); leaf 4220 fs/btrfs/tree-log.c btrfs_mark_buffer_dirty(leaf); leaf 4246 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 4277 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 4279 fs/btrfs/tree-log.c ei = btrfs_item_ptr(leaf, slot, struct btrfs_file_extent_item); leaf 4281 fs/btrfs/tree-log.c if (btrfs_file_extent_type(leaf, ei) == leaf 4285 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 4287 fs/btrfs/tree-log.c btrfs_file_extent_num_bytes(leaf, ei); leaf 4297 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 4300 fs/btrfs/tree-log.c if (slot >= btrfs_header_nritems(leaf)) { leaf 4318 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 4538 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; leaf 4539 fs/btrfs/tree-log.c int nritems = btrfs_header_nritems(leaf); leaf 4557 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 4611 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; leaf 4622 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 4625 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 4658 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 4661 fs/btrfs/tree-log.c extent = btrfs_item_ptr(leaf, path->slots[0], leaf 4663 fs/btrfs/tree-log.c if (btrfs_file_extent_type(leaf, extent) == leaf 4665 fs/btrfs/tree-log.c len = btrfs_file_extent_ram_bytes(leaf, extent); leaf 4669 fs/btrfs/tree-log.c len = btrfs_file_extent_num_bytes(leaf, extent); leaf 4962 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; leaf 4967 fs/btrfs/tree-log.c if (slot >= btrfs_header_nritems(leaf)) { leaf 4978 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 4986 fs/btrfs/tree-log.c ret = btrfs_check_ref_name_override(leaf, slot, &key, leaf 5569 fs/btrfs/tree-log.c struct extent_buffer *leaf; leaf 5593 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 5594 fs/btrfs/tree-log.c nritems = btrfs_header_nritems(leaf); leaf 5603 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &min_key, i); leaf 5608 fs/btrfs/tree-log.c di = btrfs_item_ptr(leaf, i, struct btrfs_dir_item); leaf 5609 fs/btrfs/tree-log.c type = btrfs_dir_type(leaf, di); leaf 5610 fs/btrfs/tree-log.c if (btrfs_dir_transid(leaf, di) < trans->transid && leaf 5613 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(leaf, di, &di_key); leaf 5700 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; leaf 5706 fs/btrfs/tree-log.c if (slot >= btrfs_header_nritems(leaf)) { leaf 5715 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 5720 fs/btrfs/tree-log.c item_size = btrfs_item_size_nr(leaf, slot); leaf 5721 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(leaf, slot); leaf 5735 fs/btrfs/tree-log.c leaf, extref); leaf 5737 fs/btrfs/tree-log.c cur_offset += btrfs_inode_extref_name_len(leaf, leaf 5808 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; leaf 5839 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 5841 fs/btrfs/tree-log.c if (slot >= btrfs_header_nritems(leaf)) { leaf 5847 fs/btrfs/tree-log.c leaf = path->nodes[0]; leaf 5851 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 5930 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; leaf 5934 fs/btrfs/tree-log.c if (slot >= btrfs_header_nritems(leaf)) { leaf 5943 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 257 fs/btrfs/uuid-tree.c struct extent_buffer *leaf; leaf 282 fs/btrfs/uuid-tree.c leaf = path->nodes[0]; leaf 284 fs/btrfs/uuid-tree.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 290 fs/btrfs/uuid-tree.c offset = btrfs_item_ptr_offset(leaf, slot); leaf 291 fs/btrfs/uuid-tree.c item_size = btrfs_item_size_nr(leaf, slot); leaf 305 fs/btrfs/uuid-tree.c read_extent_buffer(leaf, &subid_le, offset, leaf 1771 fs/btrfs/volumes.c struct extent_buffer *leaf = NULL; leaf 1788 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 1789 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 1790 fs/btrfs/volumes.c extent = btrfs_item_ptr(leaf, path->slots[0], leaf 1793 fs/btrfs/volumes.c btrfs_dev_extent_length(leaf, extent) < start); leaf 1798 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 1799 fs/btrfs/volumes.c extent = btrfs_item_ptr(leaf, path->slots[0], leaf 1806 fs/btrfs/volumes.c *dev_extent_len = btrfs_dev_extent_length(leaf, extent); leaf 1829 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 1846 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 1847 fs/btrfs/volumes.c extent = btrfs_item_ptr(leaf, path->slots[0], leaf 1849 fs/btrfs/volumes.c btrfs_set_dev_extent_chunk_tree(leaf, extent, leaf 1851 fs/btrfs/volumes.c btrfs_set_dev_extent_chunk_objectid(leaf, extent, leaf 1853 fs/btrfs/volumes.c btrfs_set_dev_extent_chunk_offset(leaf, extent, chunk_offset); leaf 1855 fs/btrfs/volumes.c btrfs_set_dev_extent_length(leaf, extent, num_bytes); leaf 1856 fs/btrfs/volumes.c btrfs_mark_buffer_dirty(leaf); leaf 1934 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 1951 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 1952 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); leaf 1954 fs/btrfs/volumes.c btrfs_set_device_id(leaf, dev_item, device->devid); leaf 1955 fs/btrfs/volumes.c btrfs_set_device_generation(leaf, dev_item, 0); leaf 1956 fs/btrfs/volumes.c btrfs_set_device_type(leaf, dev_item, device->type); leaf 1957 fs/btrfs/volumes.c btrfs_set_device_io_align(leaf, dev_item, device->io_align); leaf 1958 fs/btrfs/volumes.c btrfs_set_device_io_width(leaf, dev_item, device->io_width); leaf 1959 fs/btrfs/volumes.c btrfs_set_device_sector_size(leaf, dev_item, device->sector_size); leaf 1960 fs/btrfs/volumes.c btrfs_set_device_total_bytes(leaf, dev_item, leaf 1962 fs/btrfs/volumes.c btrfs_set_device_bytes_used(leaf, dev_item, leaf 1964 fs/btrfs/volumes.c btrfs_set_device_group(leaf, dev_item, 0); leaf 1965 fs/btrfs/volumes.c btrfs_set_device_seek_speed(leaf, dev_item, 0); leaf 1966 fs/btrfs/volumes.c btrfs_set_device_bandwidth(leaf, dev_item, 0); leaf 1967 fs/btrfs/volumes.c btrfs_set_device_start_offset(leaf, dev_item, 0); leaf 1970 fs/btrfs/volumes.c write_extent_buffer(leaf, device->uuid, ptr, BTRFS_UUID_SIZE); leaf 1972 fs/btrfs/volumes.c write_extent_buffer(leaf, trans->fs_info->fs_devices->metadata_uuid, leaf 1974 fs/btrfs/volumes.c btrfs_mark_buffer_dirty(leaf); leaf 2525 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 2547 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 2549 fs/btrfs/volumes.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { leaf 2555 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 2556 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 2561 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); leaf 2566 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, path->slots[0], leaf 2568 fs/btrfs/volumes.c devid = btrfs_device_id(leaf, dev_item); leaf 2569 fs/btrfs/volumes.c read_extent_buffer(leaf, dev_uuid, btrfs_device_uuid(dev_item), leaf 2571 fs/btrfs/volumes.c read_extent_buffer(leaf, fs_uuid, btrfs_device_fsid(dev_item), leaf 2578 fs/btrfs/volumes.c btrfs_set_device_generation(leaf, dev_item, leaf 2580 fs/btrfs/volumes.c btrfs_mark_buffer_dirty(leaf); leaf 2817 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 2837 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 2838 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); leaf 2840 fs/btrfs/volumes.c btrfs_set_device_id(leaf, dev_item, device->devid); leaf 2841 fs/btrfs/volumes.c btrfs_set_device_type(leaf, dev_item, device->type); leaf 2842 fs/btrfs/volumes.c btrfs_set_device_io_align(leaf, dev_item, device->io_align); leaf 2843 fs/btrfs/volumes.c btrfs_set_device_io_width(leaf, dev_item, device->io_width); leaf 2844 fs/btrfs/volumes.c btrfs_set_device_sector_size(leaf, dev_item, device->sector_size); leaf 2845 fs/btrfs/volumes.c btrfs_set_device_total_bytes(leaf, dev_item, leaf 2847 fs/btrfs/volumes.c btrfs_set_device_bytes_used(leaf, dev_item, leaf 2849 fs/btrfs/volumes.c btrfs_mark_buffer_dirty(leaf); leaf 3147 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 3183 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 3184 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); leaf 3186 fs/btrfs/volumes.c chunk = btrfs_item_ptr(leaf, path->slots[0], leaf 3188 fs/btrfs/volumes.c chunk_type = btrfs_chunk_type(leaf, chunk); leaf 3266 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 3289 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 3290 fs/btrfs/volumes.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_balance_item); leaf 3292 fs/btrfs/volumes.c memzero_extent_buffer(leaf, (unsigned long)item, sizeof(*item)); leaf 3295 fs/btrfs/volumes.c btrfs_set_balance_data(leaf, item, &disk_bargs); leaf 3297 fs/btrfs/volumes.c btrfs_set_balance_meta(leaf, item, &disk_bargs); leaf 3299 fs/btrfs/volumes.c btrfs_set_balance_sys(leaf, item, &disk_bargs); leaf 3301 fs/btrfs/volumes.c btrfs_set_balance_flags(leaf, item, bctl->flags); leaf 3303 fs/btrfs/volumes.c btrfs_mark_buffer_dirty(leaf); leaf 3488 fs/btrfs/volumes.c static int chunk_devid_filter(struct extent_buffer *leaf, leaf 3493 fs/btrfs/volumes.c int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); leaf 3498 fs/btrfs/volumes.c if (btrfs_stripe_devid(leaf, stripe) == bargs->devid) leaf 3518 fs/btrfs/volumes.c static int chunk_drange_filter(struct extent_buffer *leaf, leaf 3523 fs/btrfs/volumes.c int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); leaf 3533 fs/btrfs/volumes.c type = btrfs_chunk_type(leaf, chunk); leaf 3538 fs/btrfs/volumes.c if (btrfs_stripe_devid(leaf, stripe) != bargs->devid) leaf 3541 fs/btrfs/volumes.c stripe_offset = btrfs_stripe_offset(leaf, stripe); leaf 3542 fs/btrfs/volumes.c stripe_length = btrfs_chunk_length(leaf, chunk); leaf 3554 fs/btrfs/volumes.c static int chunk_vrange_filter(struct extent_buffer *leaf, leaf 3560 fs/btrfs/volumes.c chunk_offset + btrfs_chunk_length(leaf, chunk) > bargs->vstart) leaf 3567 fs/btrfs/volumes.c static int chunk_stripes_range_filter(struct extent_buffer *leaf, leaf 3571 fs/btrfs/volumes.c int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); leaf 3595 fs/btrfs/volumes.c static int should_balance_chunk(struct extent_buffer *leaf, leaf 3598 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 3601 fs/btrfs/volumes.c u64 chunk_type = btrfs_chunk_type(leaf, chunk); leaf 3633 fs/btrfs/volumes.c chunk_devid_filter(leaf, chunk, bargs)) { leaf 3639 fs/btrfs/volumes.c chunk_drange_filter(leaf, chunk, bargs)) { leaf 3645 fs/btrfs/volumes.c chunk_vrange_filter(leaf, chunk, chunk_offset, bargs)) { leaf 3651 fs/btrfs/volumes.c chunk_stripes_range_filter(leaf, chunk, bargs)) { leaf 3693 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 3760 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 3762 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 3769 fs/btrfs/volumes.c chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk); leaf 3770 fs/btrfs/volumes.c chunk_type = btrfs_chunk_type(leaf, chunk); leaf 3778 fs/btrfs/volumes.c ret = should_balance_chunk(leaf, chunk, found_key.offset); leaf 4316 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 4342 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 4343 fs/btrfs/volumes.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_balance_item); leaf 4345 fs/btrfs/volumes.c bctl->flags = btrfs_balance_flags(leaf, item); leaf 4348 fs/btrfs/volumes.c btrfs_balance_data(leaf, item, &disk_bargs); leaf 4350 fs/btrfs/volumes.c btrfs_balance_meta(leaf, item, &disk_bargs); leaf 4352 fs/btrfs/volumes.c btrfs_balance_sys(leaf, item, &disk_bargs); leaf 6764 fs/btrfs/volumes.c static int read_one_chunk(struct btrfs_key *key, struct extent_buffer *leaf, leaf 6767 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 6780 fs/btrfs/volumes.c length = btrfs_chunk_length(leaf, chunk); leaf 6781 fs/btrfs/volumes.c num_stripes = btrfs_chunk_num_stripes(leaf, chunk); leaf 6787 fs/btrfs/volumes.c if (leaf->start == BTRFS_SUPER_INFO_OFFSET) { leaf 6788 fs/btrfs/volumes.c ret = btrfs_check_chunk_valid(leaf, chunk, logical); leaf 6823 fs/btrfs/volumes.c map->io_width = btrfs_chunk_io_width(leaf, chunk); leaf 6824 fs/btrfs/volumes.c map->io_align = btrfs_chunk_io_align(leaf, chunk); leaf 6825 fs/btrfs/volumes.c map->stripe_len = btrfs_chunk_stripe_len(leaf, chunk); leaf 6826 fs/btrfs/volumes.c map->type = btrfs_chunk_type(leaf, chunk); leaf 6827 fs/btrfs/volumes.c map->sub_stripes = btrfs_chunk_sub_stripes(leaf, chunk); leaf 6833 fs/btrfs/volumes.c btrfs_stripe_offset_nr(leaf, chunk, i); leaf 6834 fs/btrfs/volumes.c devid = btrfs_stripe_devid_nr(leaf, chunk, i); leaf 6835 fs/btrfs/volumes.c read_extent_buffer(leaf, uuid, (unsigned long) leaf 6877 fs/btrfs/volumes.c static void fill_device_from_item(struct extent_buffer *leaf, leaf 6883 fs/btrfs/volumes.c device->devid = btrfs_device_id(leaf, dev_item); leaf 6884 fs/btrfs/volumes.c device->disk_total_bytes = btrfs_device_total_bytes(leaf, dev_item); leaf 6887 fs/btrfs/volumes.c device->bytes_used = btrfs_device_bytes_used(leaf, dev_item); leaf 6889 fs/btrfs/volumes.c device->type = btrfs_device_type(leaf, dev_item); leaf 6890 fs/btrfs/volumes.c device->io_align = btrfs_device_io_align(leaf, dev_item); leaf 6891 fs/btrfs/volumes.c device->io_width = btrfs_device_io_width(leaf, dev_item); leaf 6892 fs/btrfs/volumes.c device->sector_size = btrfs_device_sector_size(leaf, dev_item); leaf 6897 fs/btrfs/volumes.c read_extent_buffer(leaf, device->uuid, ptr, BTRFS_UUID_SIZE); leaf 6955 fs/btrfs/volumes.c static int read_one_dev(struct extent_buffer *leaf, leaf 6958 fs/btrfs/volumes.c struct btrfs_fs_info *fs_info = leaf->fs_info; leaf 6966 fs/btrfs/volumes.c devid = btrfs_device_id(leaf, dev_item); leaf 6967 fs/btrfs/volumes.c read_extent_buffer(leaf, dev_uuid, btrfs_device_uuid(dev_item), leaf 6969 fs/btrfs/volumes.c read_extent_buffer(leaf, fs_uuid, btrfs_device_fsid(dev_item), leaf 7037 fs/btrfs/volumes.c btrfs_device_generation(leaf, dev_item)) leaf 7041 fs/btrfs/volumes.c fill_device_from_item(leaf, dev_item, device); leaf 7242 fs/btrfs/volumes.c struct extent_buffer *leaf; leaf 7273 fs/btrfs/volumes.c leaf = path->nodes[0]; leaf 7275 fs/btrfs/volumes.c if (slot >= btrfs_header_nritems(leaf)) { leaf 7283 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 7286 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, slot, leaf 7288 fs/btrfs/volumes.c ret = read_one_dev(leaf, dev_item); leaf 7294 fs/btrfs/volumes.c chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk); leaf 7295 fs/btrfs/volumes.c ret = read_one_chunk(&found_key, leaf, chunk); leaf 7857 fs/btrfs/volumes.c struct extent_buffer *leaf = path->nodes[0]; leaf 7865 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, slot); leaf 7871 fs/btrfs/volumes.c dext = btrfs_item_ptr(leaf, slot, struct btrfs_dev_extent); leaf 7872 fs/btrfs/volumes.c chunk_offset = btrfs_dev_extent_chunk_offset(leaf, dext); leaf 7873 fs/btrfs/volumes.c physical_len = btrfs_dev_extent_length(leaf, dext); leaf 29 fs/btrfs/xattr.c struct extent_buffer *leaf; leaf 48 fs/btrfs/xattr.c leaf = path->nodes[0]; leaf 51 fs/btrfs/xattr.c ret = btrfs_dir_data_len(leaf, di); leaf 56 fs/btrfs/xattr.c if (btrfs_dir_data_len(leaf, di) > size) { leaf 69 fs/btrfs/xattr.c btrfs_dir_name_len(leaf, di)); leaf 70 fs/btrfs/xattr.c read_extent_buffer(leaf, buffer, data_ptr, leaf 71 fs/btrfs/xattr.c btrfs_dir_data_len(leaf, di)); leaf 72 fs/btrfs/xattr.c ret = btrfs_dir_data_len(leaf, di); leaf 169 fs/btrfs/xattr.c struct extent_buffer *leaf = path->nodes[0]; leaf 170 fs/btrfs/xattr.c const u16 old_data_len = btrfs_dir_data_len(leaf, di); leaf 171 fs/btrfs/xattr.c const u32 item_size = btrfs_item_size_nr(leaf, slot); leaf 178 fs/btrfs/xattr.c if (btrfs_leaf_free_space(leaf) < leaf 200 fs/btrfs/xattr.c ptr = btrfs_item_ptr(leaf, slot, char); leaf 201 fs/btrfs/xattr.c ptr += btrfs_item_size(leaf, item) - data_size; leaf 203 fs/btrfs/xattr.c btrfs_set_dir_data_len(leaf, di, size); leaf 205 fs/btrfs/xattr.c write_extent_buffer(leaf, value, data_ptr, size); leaf 206 fs/btrfs/xattr.c btrfs_mark_buffer_dirty(leaf); leaf 278 fs/btrfs/xattr.c struct extent_buffer *leaf; leaf 285 fs/btrfs/xattr.c leaf = path->nodes[0]; leaf 289 fs/btrfs/xattr.c if (slot >= btrfs_header_nritems(leaf)) { leaf 302 fs/btrfs/xattr.c btrfs_item_key_to_cpu(leaf, &found_key, slot); leaf 312 fs/btrfs/xattr.c di = btrfs_item_ptr(leaf, slot, struct btrfs_dir_item); leaf 313 fs/btrfs/xattr.c item_size = btrfs_item_size_nr(leaf, slot); leaf 316 fs/btrfs/xattr.c u16 name_len = btrfs_dir_name_len(leaf, di); leaf 317 fs/btrfs/xattr.c u16 data_len = btrfs_dir_data_len(leaf, di); leaf 334 fs/btrfs/xattr.c read_extent_buffer(leaf, buffer, name_ptr, name_len); leaf 2445 fs/ext4/extents.c ext4_fsblk_t leaf; leaf 2450 fs/ext4/extents.c leaf = ext4_idx_pblock(path->p_idx); leaf 2469 fs/ext4/extents.c ext_debug("index is empty, remove it, free block %llu\n", leaf); leaf 2470 fs/ext4/extents.c trace_ext4_ext_rm_idx(inode, leaf); leaf 2472 fs/ext4/extents.c ext4_free_blocks(handle, inode, NULL, leaf, 1, leaf 821 fs/gfs2/dir.c struct gfs2_leaf *leaf; leaf 839 fs/gfs2/dir.c leaf = (struct gfs2_leaf *)bh->b_data; leaf 840 fs/gfs2/dir.c ln = be64_to_cpu(leaf->lf_next); leaf 872 fs/gfs2/dir.c struct gfs2_leaf *leaf; leaf 886 fs/gfs2/dir.c leaf = (struct gfs2_leaf *)bh->b_data; leaf 887 fs/gfs2/dir.c leaf->lf_depth = cpu_to_be16(depth); leaf 888 fs/gfs2/dir.c leaf->lf_entries = 0; leaf 889 fs/gfs2/dir.c leaf->lf_dirent_format = cpu_to_be32(GFS2_FORMAT_DE); leaf 890 fs/gfs2/dir.c leaf->lf_next = 0; leaf 891 fs/gfs2/dir.c leaf->lf_inode = cpu_to_be64(ip->i_no_addr); leaf 892 fs/gfs2/dir.c leaf->lf_dist = cpu_to_be32(1); leaf 893 fs/gfs2/dir.c leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); leaf 894 fs/gfs2/dir.c leaf->lf_sec = cpu_to_be64(tv.tv_sec); leaf 895 fs/gfs2/dir.c memset(leaf->lf_reserved2, 0, sizeof(leaf->lf_reserved2)); leaf 896 fs/gfs2/dir.c dent = (struct gfs2_dirent *)(leaf+1); leaf 899 fs/gfs2/dir.c return leaf; leaf 916 fs/gfs2/dir.c struct gfs2_leaf *leaf; leaf 929 fs/gfs2/dir.c leaf = new_leaf(inode, &bh, 0); leaf 930 fs/gfs2/dir.c if (!leaf) leaf 935 fs/gfs2/dir.c leaf->lf_entries = cpu_to_be16(dip->i_entries); leaf 1380 fs/gfs2/dir.c unsigned leaves = 0, leaf = 0, offset, sort_offset; leaf 1448 fs/gfs2/dir.c sort_id = gfs2_set_cookies(sdp, bh, leaf, &darr[offset], leaf 1454 fs/gfs2/dir.c larr[leaf++] = bh; leaf 1456 fs/gfs2/dir.c larr[leaf++] = NULL; leaf 1465 fs/gfs2/dir.c for(i = 0; i < leaf; i++) leaf 1728 fs/gfs2/dir.c struct gfs2_leaf *leaf, *oleaf; leaf 1752 fs/gfs2/dir.c leaf = new_leaf(inode, &bh, be16_to_cpu(oleaf->lf_depth)); leaf 1753 fs/gfs2/dir.c if (!leaf) { leaf 1757 fs/gfs2/dir.c leaf->lf_dist = cpu_to_be32(dist); leaf 1803 fs/gfs2/dir.c struct gfs2_leaf *leaf; leaf 1820 fs/gfs2/dir.c leaf = (struct gfs2_leaf *)bh->b_data; leaf 1821 fs/gfs2/dir.c be16_add_cpu(&leaf->lf_entries, 1); leaf 1822 fs/gfs2/dir.c leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); leaf 1823 fs/gfs2/dir.c leaf->lf_sec = cpu_to_be64(tv.tv_sec); leaf 1901 fs/gfs2/dir.c struct gfs2_leaf *leaf = (struct gfs2_leaf *)bh->b_data; leaf 1902 fs/gfs2/dir.c u16 entries = be16_to_cpu(leaf->lf_entries); leaf 1905 fs/gfs2/dir.c leaf->lf_entries = cpu_to_be16(--entries); leaf 1906 fs/gfs2/dir.c leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); leaf 1907 fs/gfs2/dir.c leaf->lf_sec = cpu_to_be64(tv.tv_sec); leaf 2102 fs/gfs2/dir.c struct gfs2_leaf *leaf; leaf 2121 fs/gfs2/dir.c leaf = (struct gfs2_leaf *)bh->b_data; leaf 2122 fs/gfs2/dir.c len = BIT(dip->i_depth - be16_to_cpu(leaf->lf_depth)); leaf 1117 fs/jfs/jfs_dmap.c s8 *leaf; leaf 1127 fs/jfs/jfs_dmap.c leaf = dp->tree.stree + le32_to_cpu(dp->tree.leafidx); leaf 1144 fs/jfs/jfs_dmap.c if (leaf[word] == NOFREE) leaf 1191 fs/jfs/jfs_dmap.c if (leaf[word] < BUDMIN) leaf 1198 fs/jfs/jfs_dmap.c min_t(int, leaf[word], NLSTOL2BSZ(nwords)); leaf 1248 fs/jfs/jfs_dmap.c s8 *leaf; leaf 1255 fs/jfs/jfs_dmap.c leaf = dp->tree.stree + le32_to_cpu(dp->tree.leafidx); leaf 1269 fs/jfs/jfs_dmap.c if (leaf[word] < l2nb) leaf 1282 fs/jfs/jfs_dmap.c if (leaf[word] < BUDMIN) leaf 2170 fs/jfs/jfs_dmap.c s8 *leaf; leaf 2173 fs/jfs/jfs_dmap.c leaf = dp->tree.stree + LEAFIND; leaf 2239 fs/jfs/jfs_dmap.c if (leaf[word] < BUDMIN) { leaf 2250 fs/jfs/jfs_dmap.c size = min_t(int, leaf[word], leaf 2651 fs/jfs/jfs_dmap.c s8 *leaf = tp->dmt_stree + le32_to_cpu(tp->dmt_leafidx); leaf 2655 fs/jfs/jfs_dmap.c if (leaf[leafno] > tp->dmt_budmin) { leaf 2661 fs/jfs/jfs_dmap.c cursz = leaf[leafno] - 1; leaf 2716 fs/jfs/jfs_dmap.c s8 *leaf = tp->dmt_stree + le32_to_cpu(tp->dmt_leafidx); leaf 2721 fs/jfs/jfs_dmap.c assert(leaf[leafno] == NOFREE); leaf 2742 fs/jfs/jfs_dmap.c while (leaf[leafno] == NOFREE) { leaf 2758 fs/jfs/jfs_dmap.c if (leaf[bud] != NOFREE) { leaf 2762 fs/jfs/jfs_dmap.c cursz = leaf[bud] - 1; leaf 2769 fs/jfs/jfs_dmap.c if (leaf[leafno] != size) { leaf 2794 fs/jfs/jfs_dmap.c s8 *leaf; leaf 2801 fs/jfs/jfs_dmap.c leaf = tp->dmt_stree + le32_to_cpu(tp->dmt_leafidx); leaf 2828 fs/jfs/jfs_dmap.c if (newval > leaf[buddy]) leaf 2832 fs/jfs/jfs_dmap.c if (newval < leaf[buddy]) leaf 842 fs/jfs/jfs_dtree.c data.leaf.tid = tid; leaf 843 fs/jfs/jfs_dtree.c data.leaf.ip = ip; leaf 846 fs/jfs/jfs_dtree.c data.leaf.ip = NULL; /* signifies legacy directory format */ leaf 848 fs/jfs/jfs_dtree.c data.leaf.ino = *fsn; leaf 3930 fs/jfs/jfs_dtree.c lh->inumber = cpu_to_le32(data->leaf.ino); leaf 3933 fs/jfs/jfs_dtree.c if (data->leaf.ip) { leaf 3937 fs/jfs/jfs_dtree.c lh->index = cpu_to_le32(add_index(data->leaf.tid, leaf 3938 fs/jfs/jfs_dtree.c data->leaf.ip, leaf 4017 fs/jfs/jfs_dtree.c if ((p->header.flag & BT_LEAF) && data->leaf.ip) { leaf 4027 fs/jfs/jfs_dtree.c modify_index(data->leaf.tid, data->leaf.ip, leaf 19 fs/jfs/jfs_dtree.h } leaf; leaf 312 fs/ubifs/tnc.c ubifs_assert(c, !zbr->leaf); leaf 328 fs/ubifs/tnc.c zbr->leaf = lnc_node; leaf 346 fs/ubifs/tnc.c ubifs_assert(c, !zbr->leaf); leaf 356 fs/ubifs/tnc.c zbr->leaf = node; leaf 367 fs/ubifs/tnc.c if (!zbr->leaf) leaf 369 fs/ubifs/tnc.c kfree(zbr->leaf); leaf 370 fs/ubifs/tnc.c zbr->leaf = NULL; leaf 391 fs/ubifs/tnc.c if (zbr->leaf) { leaf 394 fs/ubifs/tnc.c memcpy(node, zbr->leaf, zbr->len); leaf 538 fs/ubifs/tnc.c if (!zbr->leaf) { leaf 552 fs/ubifs/tnc.c dent = zbr->leaf; leaf 826 fs/ubifs/tnc.c if (!zbr->leaf) { leaf 845 fs/ubifs/tnc.c dent = zbr->leaf; leaf 747 fs/ubifs/ubifs.h void *leaf; leaf 383 fs/unicode/mkutf8data.c void *leaf = NULL; leaf 386 fs/unicode/mkutf8data.c while (!leaf && node) { leaf 394 fs/unicode/mkutf8data.c leaf = node->right; leaf 403 fs/unicode/mkutf8data.c leaf = node->left; leaf 410 fs/unicode/mkutf8data.c return leaf; leaf 533 fs/unicode/mkutf8data.c static int insert(struct tree *tree, char *key, int keylen, void *leaf) leaf 559 fs/unicode/mkutf8data.c *cursor = leaf; leaf 577 fs/unicode/mkutf8data.c leaf = node->left; leaf 582 fs/unicode/mkutf8data.c tree->root = leaf; leaf 585 fs/unicode/mkutf8data.c parent->left = leaf; leaf 594 fs/unicode/mkutf8data.c parent->right = leaf; leaf 1417 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1419 fs/unicode/mkutf8data.c printf("%*sleaf @ %p code %X ccc %d gen %d", indent, "", leaf, leaf 1420 fs/unicode/mkutf8data.c leaf->code, leaf->ccc, leaf->gen); leaf 1422 fs/unicode/mkutf8data.c if (leaf->utf8nfdi && leaf->utf8nfdi[0] == HANGUL) leaf 1424 fs/unicode/mkutf8data.c else if (leaf->utf8nfdi) leaf 1425 fs/unicode/mkutf8data.c printf(" nfdi \"%s\"", (const char*)leaf->utf8nfdi); leaf 1432 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1434 fs/unicode/mkutf8data.c printf("%*sleaf @ %p code %X ccc %d gen %d", indent, "", leaf, leaf 1435 fs/unicode/mkutf8data.c leaf->code, leaf->ccc, leaf->gen); leaf 1437 fs/unicode/mkutf8data.c if (leaf->utf8nfdicf) leaf 1438 fs/unicode/mkutf8data.c printf(" nfdicf \"%s\"", (const char*)leaf->utf8nfdicf); leaf 1439 fs/unicode/mkutf8data.c else if (leaf->utf8nfdi && leaf->utf8nfdi[0] == HANGUL) leaf 1441 fs/unicode/mkutf8data.c else if (leaf->utf8nfdi) leaf 1442 fs/unicode/mkutf8data.c printf(" nfdi \"%s\"", (const char*)leaf->utf8nfdi); leaf 1453 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1455 fs/unicode/mkutf8data.c if (leaf->utf8nfdicf) leaf 1462 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1464 fs/unicode/mkutf8data.c return leaf->correction; leaf 1469 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1472 fs/unicode/mkutf8data.c if (HANGUL_SYLLABLE(leaf->code)) leaf 1474 fs/unicode/mkutf8data.c else if (leaf->utf8nfdi) leaf 1475 fs/unicode/mkutf8data.c size += strlen(leaf->utf8nfdi) + 1; leaf 1481 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1484 fs/unicode/mkutf8data.c if (HANGUL_SYLLABLE(leaf->code)) leaf 1486 fs/unicode/mkutf8data.c else if (leaf->utf8nfdicf) leaf 1487 fs/unicode/mkutf8data.c size += strlen(leaf->utf8nfdicf) + 1; leaf 1488 fs/unicode/mkutf8data.c else if (leaf->utf8nfdi) leaf 1489 fs/unicode/mkutf8data.c size += strlen(leaf->utf8nfdi) + 1; leaf 1495 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1497 fs/unicode/mkutf8data.c return &tree->leafindex[leaf->code]; leaf 1502 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1504 fs/unicode/mkutf8data.c return &tree->leafindex[leaf->code]; leaf 1509 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1512 fs/unicode/mkutf8data.c *data++ = leaf->gen; leaf 1514 fs/unicode/mkutf8data.c if (HANGUL_SYLLABLE(leaf->code)) { leaf 1517 fs/unicode/mkutf8data.c } else if (leaf->utf8nfdi) { leaf 1519 fs/unicode/mkutf8data.c s = (unsigned char*)leaf->utf8nfdi; leaf 1523 fs/unicode/mkutf8data.c *data++ = leaf->ccc; leaf 1530 fs/unicode/mkutf8data.c struct unicode_data *leaf = l; leaf 1533 fs/unicode/mkutf8data.c *data++ = leaf->gen; leaf 1535 fs/unicode/mkutf8data.c if (HANGUL_SYLLABLE(leaf->code)) { leaf 1538 fs/unicode/mkutf8data.c } else if (leaf->utf8nfdicf) { leaf 1540 fs/unicode/mkutf8data.c s = (unsigned char*)leaf->utf8nfdicf; leaf 1543 fs/unicode/mkutf8data.c } else if (leaf->utf8nfdi) { leaf 1545 fs/unicode/mkutf8data.c s = (unsigned char*)leaf->utf8nfdi; leaf 1549 fs/unicode/mkutf8data.c *data++ = leaf->ccc; leaf 1748 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 1765 fs/unicode/mkutf8data.c leaf = utf8lookup(tree, hangul, key); leaf 1767 fs/unicode/mkutf8data.c if (!leaf) { leaf 1777 fs/unicode/mkutf8data.c if (data->gen != LEAF_GEN(leaf)) leaf 1779 fs/unicode/mkutf8data.c if (LEAF_CCC(leaf) == DECOMPOSE) { leaf 1787 fs/unicode/mkutf8data.c LEAF_STR(leaf))) { leaf 1796 fs/unicode/mkutf8data.c LEAF_STR(leaf))) leaf 1799 fs/unicode/mkutf8data.c LEAF_STR(leaf))) { leaf 1803 fs/unicode/mkutf8data.c } else if (data->ccc != LEAF_CCC(leaf)) { leaf 1813 fs/unicode/mkutf8data.c if (leaf) { leaf 1816 fs/unicode/mkutf8data.c LEAF_GEN(leaf), leaf 1817 fs/unicode/mkutf8data.c LEAF_CCC(leaf), leaf 1818 fs/unicode/mkutf8data.c LEAF_CCC(leaf) == DECOMPOSE ? leaf 1819 fs/unicode/mkutf8data.c LEAF_STR(leaf) : ""); leaf 2805 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 2814 fs/unicode/mkutf8data.c leaf = utf8lookup(tree, hangul, s); leaf 2815 fs/unicode/mkutf8data.c if (!leaf) leaf 2817 fs/unicode/mkutf8data.c leaf_age = ages[LEAF_GEN(leaf)]; leaf 2832 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 2841 fs/unicode/mkutf8data.c leaf = utf8lookup(tree, hangul, s); leaf 2842 fs/unicode/mkutf8data.c if (!leaf) leaf 2844 fs/unicode/mkutf8data.c leaf_age = ages[LEAF_GEN(leaf)]; leaf 2858 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 2867 fs/unicode/mkutf8data.c leaf = utf8nlookup(tree, hangul, s, len); leaf 2868 fs/unicode/mkutf8data.c if (!leaf) leaf 2870 fs/unicode/mkutf8data.c leaf_age = ages[LEAF_GEN(leaf)]; leaf 2885 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 2894 fs/unicode/mkutf8data.c leaf = utf8nlookup(tree, hangul, s, len); leaf 2895 fs/unicode/mkutf8data.c if (!leaf) leaf 2897 fs/unicode/mkutf8data.c leaf_age = ages[LEAF_GEN(leaf)]; leaf 2914 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 2921 fs/unicode/mkutf8data.c leaf = utf8lookup(tree, hangul, s); leaf 2922 fs/unicode/mkutf8data.c if (!leaf) leaf 2924 fs/unicode/mkutf8data.c if (ages[LEAF_GEN(leaf)] > tree->maxage) leaf 2926 fs/unicode/mkutf8data.c else if (LEAF_CCC(leaf) == DECOMPOSE) leaf 2927 fs/unicode/mkutf8data.c ret += strlen(LEAF_STR(leaf)); leaf 2941 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 2948 fs/unicode/mkutf8data.c leaf = utf8nlookup(tree, hangul, s, len); leaf 2949 fs/unicode/mkutf8data.c if (!leaf) leaf 2951 fs/unicode/mkutf8data.c if (ages[LEAF_GEN(leaf)] > tree->maxage) leaf 2953 fs/unicode/mkutf8data.c else if (LEAF_CCC(leaf) == DECOMPOSE) leaf 2954 fs/unicode/mkutf8data.c ret += strlen(LEAF_STR(leaf)); leaf 3059 fs/unicode/mkutf8data.c utf8leaf_t *leaf; leaf 3086 fs/unicode/mkutf8data.c leaf = utf8lookup(u8c->tree, u8c->hangul, u8c->s); leaf 3088 fs/unicode/mkutf8data.c leaf = utf8nlookup(u8c->tree, u8c->hangul, leaf 3093 fs/unicode/mkutf8data.c if (!leaf) leaf 3097 fs/unicode/mkutf8data.c if (ages[LEAF_GEN(leaf)] > u8c->tree->maxage) { leaf 3099 fs/unicode/mkutf8data.c } else if ((ccc = LEAF_CCC(leaf)) == DECOMPOSE) { leaf 3102 fs/unicode/mkutf8data.c u8c->s = LEAF_STR(leaf); leaf 3110 fs/unicode/mkutf8data.c leaf = utf8lookup(u8c->tree, u8c->hangul, u8c->s); leaf 3111 fs/unicode/mkutf8data.c ccc = LEAF_CCC(leaf); leaf 408 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 417 fs/unicode/utf8-norm.c leaf = utf8lookup(data, hangul, s); leaf 418 fs/unicode/utf8-norm.c if (!leaf) leaf 421 fs/unicode/utf8-norm.c leaf_age = utf8agetab[LEAF_GEN(leaf)]; leaf 437 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 446 fs/unicode/utf8-norm.c leaf = utf8lookup(data, hangul, s); leaf 447 fs/unicode/utf8-norm.c if (!leaf) leaf 449 fs/unicode/utf8-norm.c leaf_age = utf8agetab[LEAF_GEN(leaf)]; leaf 464 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 473 fs/unicode/utf8-norm.c leaf = utf8nlookup(data, hangul, s, len); leaf 474 fs/unicode/utf8-norm.c if (!leaf) leaf 476 fs/unicode/utf8-norm.c leaf_age = utf8agetab[LEAF_GEN(leaf)]; leaf 492 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 501 fs/unicode/utf8-norm.c leaf = utf8nlookup(data, hangul, s, len); leaf 502 fs/unicode/utf8-norm.c if (!leaf) leaf 504 fs/unicode/utf8-norm.c leaf_age = utf8agetab[LEAF_GEN(leaf)]; leaf 522 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 529 fs/unicode/utf8-norm.c leaf = utf8lookup(data, hangul, s); leaf 530 fs/unicode/utf8-norm.c if (!leaf) leaf 532 fs/unicode/utf8-norm.c if (utf8agetab[LEAF_GEN(leaf)] > data->maxage) leaf 534 fs/unicode/utf8-norm.c else if (LEAF_CCC(leaf) == DECOMPOSE) leaf 535 fs/unicode/utf8-norm.c ret += strlen(LEAF_STR(leaf)); leaf 550 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 557 fs/unicode/utf8-norm.c leaf = utf8nlookup(data, hangul, s, len); leaf 558 fs/unicode/utf8-norm.c if (!leaf) leaf 560 fs/unicode/utf8-norm.c if (utf8agetab[LEAF_GEN(leaf)] > data->maxage) leaf 562 fs/unicode/utf8-norm.c else if (LEAF_CCC(leaf) == DECOMPOSE) leaf 563 fs/unicode/utf8-norm.c ret += strlen(LEAF_STR(leaf)); leaf 654 fs/unicode/utf8-norm.c utf8leaf_t *leaf; leaf 681 fs/unicode/utf8-norm.c leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s); leaf 683 fs/unicode/utf8-norm.c leaf = utf8nlookup(u8c->data, u8c->hangul, leaf 688 fs/unicode/utf8-norm.c if (!leaf) leaf 691 fs/unicode/utf8-norm.c ccc = LEAF_CCC(leaf); leaf 693 fs/unicode/utf8-norm.c if (utf8agetab[LEAF_GEN(leaf)] > u8c->data->maxage) { leaf 698 fs/unicode/utf8-norm.c u8c->s = LEAF_STR(leaf); leaf 707 fs/unicode/utf8-norm.c leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s); leaf 708 fs/unicode/utf8-norm.c if (!leaf) leaf 710 fs/unicode/utf8-norm.c ccc = LEAF_CCC(leaf); leaf 524 fs/xfs/libxfs/xfs_alloc_btree.c int leaf) leaf 528 fs/xfs/libxfs/xfs_alloc_btree.c if (leaf) leaf 73 fs/xfs/libxfs/xfs_attr_leaf.c STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index); leaf 241 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf = bp->b_addr; leaf 247 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); leaf 267 fs/xfs/libxfs/xfs_attr_leaf.c if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf)) leaf 882 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 890 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 891 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); leaf 892 fs/xfs/libxfs/xfs_attr_leaf.c entry = xfs_attr3_leaf_entryp(leaf); leaf 900 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, i); leaf 999 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 1017 fs/xfs/libxfs/xfs_attr_leaf.c leaf = (xfs_attr_leafblock_t *)tmpbuffer; leaf 1018 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 1019 fs/xfs/libxfs/xfs_attr_leaf.c entry = xfs_attr3_leaf_entryp(leaf); leaf 1057 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, i); leaf 1080 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 1126 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp2->b_addr; leaf 1127 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &icleafhdr, leaf); leaf 1128 fs/xfs/libxfs/xfs_attr_leaf.c entries = xfs_attr3_leaf_entryp(leaf); leaf 1155 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 1170 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 1171 fs/xfs/libxfs/xfs_attr_leaf.c memset(leaf, 0, args->geo->blksize); leaf 1192 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); leaf 1266 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 1276 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 1277 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 1286 fs/xfs/libxfs/xfs_attr_leaf.c + xfs_attr3_leaf_hdr_size(leaf); leaf 1330 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); leaf 1332 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, &leaf->hdr, leaf 1333 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_size(leaf))); leaf 1347 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 1357 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 1364 fs/xfs/libxfs/xfs_attr_leaf.c entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; leaf 1370 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); leaf 1400 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); leaf 1414 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, args->index); leaf 1421 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); leaf 1433 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), leaf 1434 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr_leaf_entsize(leaf, args->index))); leaf 1443 fs/xfs/libxfs/xfs_attr_leaf.c + xfs_attr3_leaf_hdr_size(leaf)); leaf 1445 fs/xfs/libxfs/xfs_attr_leaf.c + xfs_attr3_leaf_hdr_size(leaf); leaf 1453 fs/xfs/libxfs/xfs_attr_leaf.c ichdr->usedbytes += xfs_attr_leaf_entsize(leaf, args->index); leaf 1862 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 1881 fs/xfs/libxfs/xfs_attr_leaf.c leaf = blk->bp->b_addr; leaf 1882 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf); leaf 1883 fs/xfs/libxfs/xfs_attr_leaf.c bytes = xfs_attr3_leaf_hdr_size(leaf) + leaf 1945 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_size(leaf); leaf 1989 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 2002 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 2003 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 2008 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_size(leaf)); leaf 2010 fs/xfs/libxfs/xfs_attr_leaf.c entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; leaf 2022 fs/xfs/libxfs/xfs_attr_leaf.c + xfs_attr3_leaf_hdr_size(leaf); leaf 2026 fs/xfs/libxfs/xfs_attr_leaf.c entsize = xfs_attr_leaf_entsize(leaf, args->index); leaf 2084 fs/xfs/libxfs/xfs_attr_leaf.c memset(xfs_attr3_leaf_name(leaf, args->index), 0, entsize); leaf 2087 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, xfs_attr3_leaf_name(leaf, args->index), leaf 2094 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); leaf 2096 fs/xfs/libxfs/xfs_attr_leaf.c entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; leaf 2107 fs/xfs/libxfs/xfs_attr_leaf.c entry = xfs_attr3_leaf_entryp(leaf); leaf 2120 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); leaf 2122 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, &leaf->hdr, leaf 2123 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_size(leaf))); leaf 2129 fs/xfs/libxfs/xfs_attr_leaf.c tmp = ichdr.usedbytes + xfs_attr3_leaf_hdr_size(leaf) + leaf 2269 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 2281 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 2282 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 2283 fs/xfs/libxfs/xfs_attr_leaf.c entries = xfs_attr3_leaf_entryp(leaf); leaf 2341 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, probe); leaf 2352 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, probe); leaf 2386 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 2392 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 2393 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 2397 fs/xfs/libxfs/xfs_attr_leaf.c entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; leaf 2399 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, args->index); leaf 2407 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); leaf 2593 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) leaf 2600 fs/xfs/libxfs/xfs_attr_leaf.c entries = xfs_attr3_leaf_entryp(leaf); leaf 2602 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, index); leaf 2606 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, index); leaf 2648 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 2668 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 2669 fs/xfs/libxfs/xfs_attr_leaf.c entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; leaf 2673 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 2678 fs/xfs/libxfs/xfs_attr_leaf.c name_loc = xfs_attr3_leaf_name_local(leaf, args->index); leaf 2682 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); leaf 2693 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); leaf 2697 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); leaf 2701 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); leaf 2717 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_attr_leafblock *leaf; leaf 2735 fs/xfs/libxfs/xfs_attr_leaf.c leaf = bp->b_addr; leaf 2737 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); leaf 2741 fs/xfs/libxfs/xfs_attr_leaf.c entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; leaf 2746 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); leaf 2748 fs/xfs/libxfs/xfs_attr_leaf.c name_rmt = xfs_attr3_leaf_name_remote(leaf, args->index); leaf 2752 fs/xfs/libxfs/xfs_attr_leaf.c XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt))); leaf 63 fs/xfs/libxfs/xfs_attr_leaf.h int xfs_attr3_leaf_lookup_int(struct xfs_buf *leaf, leaf 585 fs/xfs/libxfs/xfs_bmap_btree.c int leaf) leaf 589 fs/xfs/libxfs/xfs_bmap_btree.c if (leaf) leaf 600 fs/xfs/libxfs/xfs_bmap_btree.c int leaf) leaf 604 fs/xfs/libxfs/xfs_bmap_btree.c if (leaf) leaf 99 fs/xfs/libxfs/xfs_bmap_btree.h extern int xfs_bmdr_maxrecs(int blocklen, int leaf); leaf 100 fs/xfs/libxfs/xfs_bmap_btree.h extern int xfs_bmbt_maxrecs(struct xfs_mount *, int blocklen, int leaf); leaf 552 fs/xfs/libxfs/xfs_da_btree.c struct xfs_dir2_leaf *leaf; leaf 594 fs/xfs/libxfs/xfs_da_btree.c leaf = (xfs_dir2_leaf_t *)oldroot; leaf 595 fs/xfs/libxfs/xfs_da_btree.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 596 fs/xfs/libxfs/xfs_da_btree.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 600 fs/xfs/libxfs/xfs_da_btree.c size = (int)((char *)&ents[leafhdr.count] - (char *)leaf); leaf 906 fs/xfs/libxfs/xfs_dir2_block.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 925 fs/xfs/libxfs/xfs_dir2_block.c leaf = lbp->b_addr; leaf 926 fs/xfs/libxfs/xfs_dir2_block.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 927 fs/xfs/libxfs/xfs_dir2_block.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 928 fs/xfs/libxfs/xfs_dir2_block.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 43 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 46 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 55 fs/xfs/libxfs/xfs_dir2_leaf.c return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); leaf 82 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf) leaf 99 fs/xfs/libxfs/xfs_dir2_leaf.c ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 103 fs/xfs/libxfs/xfs_dir2_leaf.c ents = ops->leaf_ents_p(leaf); leaf 104 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(geo, leaf); leaf 145 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 152 fs/xfs/libxfs/xfs_dir2_leaf.c return xfs_dir3_leaf_check_int(mp, NULL, NULL, leaf); leaf 259 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 275 fs/xfs/libxfs/xfs_dir2_leaf.c memset(leaf, 0, sizeof(*leaf)); leaf 276 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic = cpu_to_be16(type); leaf 286 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(mp->m_dir_geo, leaf); leaf 343 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 373 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 379 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 384 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 387 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leaf 422 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 571 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf; /* leaf structure */ leaf 608 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 609 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 610 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 611 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 855 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leaf 874 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 880 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = bp->b_addr; leaf 887 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 908 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, leafhdr); leaf 1020 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 1023 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || leaf 1024 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC)); leaf 1026 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 1030 fs/xfs/libxfs/xfs_dir2_leaf.c (uint)((char *)firstb - (char *)leaf), leaf 1031 fs/xfs/libxfs/xfs_dir2_leaf.c (uint)((char *)lastb - (char *)leaf + sizeof(*lastb) - 1)); leaf 1046 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 1049 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || leaf 1050 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || leaf 1051 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || leaf 1052 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); leaf 1054 fs/xfs/libxfs/xfs_dir2_leaf.c ents = args->dp->d_ops->leaf_ents_p(leaf); leaf 1058 fs/xfs/libxfs/xfs_dir2_leaf.c (uint)((char *)firstlep - (char *)leaf), leaf 1059 fs/xfs/libxfs/xfs_dir2_leaf.c (uint)((char *)lastlep - (char *)leaf + sizeof(*lastlep) - 1)); leaf 1070 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 1072 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || leaf 1073 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || leaf 1074 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || leaf 1075 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); leaf 1078 fs/xfs/libxfs/xfs_dir2_leaf.c (uint)((char *)&leaf->hdr - (char *)leaf), leaf 1090 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 1093 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) || leaf 1094 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || leaf 1095 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) || leaf 1096 fs/xfs/libxfs/xfs_dir2_leaf.c leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)); leaf 1098 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 1099 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_trans_log_buf(args->trans, bp, (uint)((char *)ltp - (char *)leaf), leaf 1118 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1134 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1135 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1179 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1197 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1199 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1200 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 1310 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1329 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1333 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 1334 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1344 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 1358 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leaf 1451 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1465 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1466 fs/xfs/libxfs/xfs_dir2_leaf.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1504 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1510 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1511 fs/xfs/libxfs/xfs_dir2_leaf.c ents = args->dp->d_ops->leaf_ents_p(leaf); leaf 1512 fs/xfs/libxfs/xfs_dir2_leaf.c args->dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 1559 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1573 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1574 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 1645 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1699 fs/xfs/libxfs/xfs_dir2_leaf.c leaf = lbp->b_addr; leaf 1700 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 1740 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 1749 fs/xfs/libxfs/xfs_dir2_leaf.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leaf 45 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 48 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 57 fs/xfs/libxfs/xfs_dir2_node.c return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); leaf 345 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 373 fs/xfs/libxfs/xfs_dir2_node.c leaf = lbp->b_addr; leaf 374 fs/xfs/libxfs/xfs_dir2_node.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); leaf 407 fs/xfs/libxfs/xfs_dir2_node.c if (leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC)) leaf 408 fs/xfs/libxfs/xfs_dir2_node.c leaf->hdr.info.magic = cpu_to_be16(XFS_DIR2_LEAFN_MAGIC); leaf 410 fs/xfs/libxfs/xfs_dir2_node.c leaf->hdr.info.magic = cpu_to_be16(XFS_DIR3_LEAFN_MAGIC); leaf 430 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 441 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 442 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 496 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leaf 533 fs/xfs/libxfs/xfs_dir2_node.c struct xfs_dir2_leaf *leaf = bp->b_addr; leaf 537 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 549 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 572 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 585 fs/xfs/libxfs/xfs_dir2_node.c leaf = bp->b_addr; leaf 586 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 587 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 725 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 737 fs/xfs/libxfs/xfs_dir2_node.c leaf = bp->b_addr; leaf 738 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 739 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1209 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1224 fs/xfs/libxfs/xfs_dir2_node.c leaf = bp->b_addr; leaf 1225 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 1226 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1246 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); leaf 1434 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 1446 fs/xfs/libxfs/xfs_dir2_node.c leaf = blk->bp->b_addr; leaf 1447 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 1448 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 1509 fs/xfs/libxfs/xfs_dir2_node.c leaf = bp->b_addr; leaf 1510 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->leaf_hdr_from_disk(&hdr2, leaf); leaf 1511 fs/xfs/libxfs/xfs_dir2_node.c ents = dp->d_ops->leaf_ents_p(leaf); leaf 2158 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_leaf_t *leaf; /* leaf structure */ leaf 2197 fs/xfs/libxfs/xfs_dir2_node.c leaf = blk->bp->b_addr; leaf 2198 fs/xfs/libxfs/xfs_dir2_node.c ents = args->dp->d_ops->leaf_ents_p(leaf); leaf 83 fs/xfs/libxfs/xfs_dir2_priv.h struct xfs_dir2_leaf *leaf); leaf 449 fs/xfs/libxfs/xfs_ialloc_btree.c int leaf) leaf 453 fs/xfs/libxfs/xfs_ialloc_btree.c if (leaf) leaf 142 fs/xfs/libxfs/xfs_iext_tree.c return &cur->leaf->recs[cur->pos]; leaf 148 fs/xfs/libxfs/xfs_iext_tree.c if (!cur->leaf) leaf 202 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = xfs_iext_find_first_leaf(ifp); leaf 212 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = xfs_iext_find_last_leaf(ifp); leaf 213 fs/xfs/libxfs/xfs_iext_tree.c if (!cur->leaf) { leaf 219 fs/xfs/libxfs/xfs_iext_tree.c if (xfs_iext_rec_is_empty(&cur->leaf->recs[i])) leaf 230 fs/xfs/libxfs/xfs_iext_tree.c if (!cur->leaf) { leaf 241 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf->next) { leaf 242 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = cur->leaf->next; leaf 252 fs/xfs/libxfs/xfs_iext_tree.c if (!cur->leaf) { leaf 268 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height > 1 && cur->leaf->prev) { leaf 269 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = cur->leaf->prev; leaf 376 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_leaf *leaf, leaf 382 fs/xfs/libxfs/xfs_iext_tree.c if (xfs_iext_rec_is_empty(&leaf->recs[i])) leaf 391 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_leaf *leaf, leaf 394 fs/xfs/libxfs/xfs_iext_tree.c return leaf->recs[n].lo & XFS_IEXT_STARTOFF_MASK; leaf 544 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_leaf *leaf = cur->leaf; leaf 552 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = new; leaf 559 fs/xfs/libxfs/xfs_iext_tree.c new->recs[i] = leaf->recs[nr_keep + i]; leaf 560 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_rec_clear(&leaf->recs[nr_keep + i]); leaf 564 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = new; leaf 571 fs/xfs/libxfs/xfs_iext_tree.c if (leaf->next) leaf 572 fs/xfs/libxfs/xfs_iext_tree.c leaf->next->prev = new; leaf 573 fs/xfs/libxfs/xfs_iext_tree.c new->next = leaf->next; leaf 574 fs/xfs/libxfs/xfs_iext_tree.c new->prev = leaf; leaf 575 fs/xfs/libxfs/xfs_iext_tree.c leaf->next = new; leaf 590 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = ifp->if_u1.if_root; leaf 609 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = new; leaf 643 fs/xfs/libxfs/xfs_iext_tree.c nr_entries = xfs_iext_leaf_nr_entries(ifp, cur->leaf, cur->pos); leaf 655 fs/xfs/libxfs/xfs_iext_tree.c if (cur->leaf != new && cur->pos == 0 && nr_entries > 0) { leaf 656 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, xfs_iext_leaf_key(cur->leaf, 0), leaf 657 fs/xfs/libxfs/xfs_iext_tree.c offset, 1, cur->leaf); leaf 661 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf->recs[i] = cur->leaf->recs[i - 1]; leaf 791 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_leaf *leaf, leaf 803 fs/xfs/libxfs/xfs_iext_tree.c if (leaf->prev) { leaf 804 fs/xfs/libxfs/xfs_iext_tree.c int nr_prev = xfs_iext_leaf_nr_entries(ifp, leaf->prev, 0), i; leaf 808 fs/xfs/libxfs/xfs_iext_tree.c leaf->prev->recs[nr_prev + i] = leaf->recs[i]; leaf 810 fs/xfs/libxfs/xfs_iext_tree.c if (cur->leaf == leaf) { leaf 811 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = leaf->prev; leaf 818 fs/xfs/libxfs/xfs_iext_tree.c if (leaf->next) { leaf 819 fs/xfs/libxfs/xfs_iext_tree.c int nr_next = xfs_iext_leaf_nr_entries(ifp, leaf->next, 0), i; leaf 828 fs/xfs/libxfs/xfs_iext_tree.c leaf->recs[nr_entries + i] = leaf 829 fs/xfs/libxfs/xfs_iext_tree.c leaf->next->recs[i]; leaf 832 fs/xfs/libxfs/xfs_iext_tree.c if (cur->leaf == leaf->next) { leaf 833 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = leaf; leaf 837 fs/xfs/libxfs/xfs_iext_tree.c offset = xfs_iext_leaf_key(leaf->next, 0); leaf 838 fs/xfs/libxfs/xfs_iext_tree.c leaf = leaf->next; leaf 845 fs/xfs/libxfs/xfs_iext_tree.c if (leaf->prev) leaf 846 fs/xfs/libxfs/xfs_iext_tree.c leaf->prev->next = leaf->next; leaf 847 fs/xfs/libxfs/xfs_iext_tree.c if (leaf->next) leaf 848 fs/xfs/libxfs/xfs_iext_tree.c leaf->next->prev = leaf->prev; leaf 849 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_remove_node(ifp, offset, leaf); leaf 868 fs/xfs/libxfs/xfs_iext_tree.c struct xfs_iext_leaf *leaf = cur->leaf; leaf 869 fs/xfs/libxfs/xfs_iext_tree.c xfs_fileoff_t offset = xfs_iext_leaf_key(leaf, 0); leaf 880 fs/xfs/libxfs/xfs_iext_tree.c nr_entries = xfs_iext_leaf_nr_entries(ifp, leaf, cur->pos) - 1; leaf 882 fs/xfs/libxfs/xfs_iext_tree.c leaf->recs[i] = leaf->recs[i + 1]; leaf 883 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_rec_clear(&leaf->recs[nr_entries]); leaf 887 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_update_node(ifp, offset, xfs_iext_leaf_key(leaf, 0), 1, leaf 888 fs/xfs/libxfs/xfs_iext_tree.c leaf); leaf 889 fs/xfs/libxfs/xfs_iext_tree.c offset = xfs_iext_leaf_key(leaf, 0); leaf 891 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height > 1 && leaf->next) leaf 892 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = leaf->next; leaf 894 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = NULL; leaf 902 fs/xfs/libxfs/xfs_iext_tree.c xfs_iext_rebalance_leaf(ifp, cur, leaf, offset, nr_entries); leaf 928 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = xfs_iext_find_level(ifp, offset, 1); leaf 929 fs/xfs/libxfs/xfs_iext_tree.c if (!cur->leaf) { leaf 944 fs/xfs/libxfs/xfs_iext_tree.c if (ifp->if_height == 1 || !cur->leaf->next) leaf 946 fs/xfs/libxfs/xfs_iext_tree.c cur->leaf = cur->leaf->next; leaf 994 fs/xfs/libxfs/xfs_iext_tree.c new->br_startoff, 1, cur->leaf); leaf 355 fs/xfs/libxfs/xfs_refcount_btree.c bool leaf) leaf 359 fs/xfs/libxfs/xfs_refcount_btree.c if (leaf) leaf 49 fs/xfs/libxfs/xfs_refcount_btree.h extern int xfs_refcountbt_maxrecs(int blocklen, bool leaf); leaf 487 fs/xfs/libxfs/xfs_rmap_btree.c int leaf) leaf 491 fs/xfs/libxfs/xfs_rmap_btree.c if (leaf) leaf 46 fs/xfs/libxfs/xfs_rmap_btree.h int xfs_rmapbt_maxrecs(int blocklen, int leaf); leaf 156 fs/xfs/libxfs/xfs_types.h struct xfs_iext_leaf *leaf; leaf 246 fs/xfs/scrub/attr.c struct xfs_attr_leafblock *leaf, leaf 278 fs/xfs/scrub/attr.c lentry = xfs_attr3_leaf_name_local(leaf, idx); leaf 285 fs/xfs/scrub/attr.c rentry = xfs_attr3_leaf_name_remote(leaf, idx); leaf 311 fs/xfs/scrub/attr.c struct xfs_attr_leafblock *leaf = bp->b_addr; leaf 339 fs/xfs/scrub/attr.c struct xfs_attr3_leafblock *leaf = bp->b_addr; leaf 341 fs/xfs/scrub/attr.c if (leaf->hdr.pad1 != 0 || leaf->hdr.pad2 != 0 || leaf 342 fs/xfs/scrub/attr.c leaf->hdr.info.hdr.pad != 0) leaf 345 fs/xfs/scrub/attr.c if (leaf->hdr.pad1 != 0 || leaf->hdr.info.pad != 0) leaf 350 fs/xfs/scrub/attr.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); leaf 351 fs/xfs/scrub/attr.c hdrsize = xfs_attr3_leaf_hdr_size(leaf); leaf 365 fs/xfs/scrub/attr.c entries = xfs_attr3_leaf_entryp(leaf); leaf 366 fs/xfs/scrub/attr.c if ((char *)&entries[leafhdr.count] > (char *)leaf + leafhdr.firstused) leaf 372 fs/xfs/scrub/attr.c off = (char *)ent - (char *)leaf; leaf 380 fs/xfs/scrub/attr.c xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, leaf 480 fs/xfs/scrub/dir.c struct xfs_dir2_leaf *leaf; leaf 500 fs/xfs/scrub/dir.c leaf = bp->b_addr; leaf 501 fs/xfs/scrub/dir.c d_ops->leaf_hdr_from_disk(&leafhdr, leaf); leaf 502 fs/xfs/scrub/dir.c ents = d_ops->leaf_ents_p(leaf); leaf 503 fs/xfs/scrub/dir.c ltp = xfs_dir2_leaf_tail_p(geo, leaf); leaf 108 fs/xfs/xfs_attr_inactive.c struct xfs_attr_leafblock *leaf; leaf 121 fs/xfs/xfs_attr_inactive.c leaf = bp->b_addr; leaf 122 fs/xfs/xfs_attr_inactive.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); leaf 128 fs/xfs/xfs_attr_inactive.c entry = xfs_attr3_leaf_entryp(leaf); leaf 132 fs/xfs/xfs_attr_inactive.c name_rmt = xfs_attr3_leaf_name_remote(leaf, i); leaf 156 fs/xfs/xfs_attr_inactive.c entry = xfs_attr3_leaf_entryp(leaf); leaf 160 fs/xfs/xfs_attr_inactive.c name_rmt = xfs_attr3_leaf_name_remote(leaf, i); leaf 282 fs/xfs/xfs_attr_list.c struct xfs_attr_leafblock *leaf; leaf 318 fs/xfs/xfs_attr_list.c leaf = bp->b_addr; leaf 320 fs/xfs/xfs_attr_list.c &leafhdr, leaf); leaf 321 fs/xfs/xfs_attr_list.c entries = xfs_attr3_leaf_entryp(leaf); leaf 360 fs/xfs/xfs_attr_list.c leaf = bp->b_addr; leaf 362 fs/xfs/xfs_attr_list.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &leafhdr, leaf); leaf 384 fs/xfs/xfs_attr_list.c struct xfs_attr_leafblock *leaf; leaf 393 fs/xfs/xfs_attr_list.c leaf = bp->b_addr; leaf 394 fs/xfs/xfs_attr_list.c xfs_attr3_leaf_hdr_from_disk(mp->m_attr_geo, &ichdr, leaf); leaf 395 fs/xfs/xfs_attr_list.c entries = xfs_attr3_leaf_entryp(leaf); leaf 447 fs/xfs/xfs_attr_list.c name_loc = xfs_attr3_leaf_name_local(leaf, i); leaf 454 fs/xfs/xfs_attr_list.c name_rmt = xfs_attr3_leaf_name_remote(leaf, i); leaf 221 fs/xfs/xfs_trace.h __field(void *, leaf); leaf 238 fs/xfs/xfs_trace.h __entry->leaf = cur->leaf; leaf 252 fs/xfs/xfs_trace.h __entry->leaf, leaf 79 include/linux/assoc_array_priv.h struct assoc_array_ptr *leaf; leaf 77 include/net/ip6_fib.h struct fib6_info __rcu *leaf; leaf 204 include/net/ip6_fib.h for (rt = rcu_dereference((fn)->leaf); rt; \ leaf 208 include/net/ip6_fib.h for (rt = (w)->leaf; rt; \ leaf 319 include/net/ip6_fib.h struct fib6_info *leaf; leaf 202 include/net/sch_generic.h struct Qdisc * (*leaf)(struct Qdisc *, unsigned long cl); leaf 135 ipc/mqueue.c struct posix_msg_tree_node *leaf; leaf 141 ipc/mqueue.c leaf = rb_entry(parent, struct posix_msg_tree_node, rb_node); leaf 143 ipc/mqueue.c if (likely(leaf->priority == msg->m_type)) leaf 145 ipc/mqueue.c else if (msg->m_type < leaf->priority) { leaf 152 ipc/mqueue.c leaf = info->node_cache; leaf 155 ipc/mqueue.c leaf = kmalloc(sizeof(*leaf), GFP_ATOMIC); leaf 156 ipc/mqueue.c if (!leaf) leaf 158 ipc/mqueue.c INIT_LIST_HEAD(&leaf->msg_list); leaf 160 ipc/mqueue.c leaf->priority = msg->m_type; leaf 163 ipc/mqueue.c info->msg_tree_rightmost = &leaf->rb_node; leaf 165 ipc/mqueue.c rb_link_node(&leaf->rb_node, parent, p); leaf 166 ipc/mqueue.c rb_insert_color(&leaf->rb_node, &info->msg_tree); leaf 170 ipc/mqueue.c list_add_tail(&msg->m_list, &leaf->msg_list); leaf 174 ipc/mqueue.c static inline void msg_tree_erase(struct posix_msg_tree_node *leaf, leaf 177 ipc/mqueue.c struct rb_node *node = &leaf->rb_node; leaf 184 ipc/mqueue.c kfree(leaf); leaf 186 ipc/mqueue.c info->node_cache = leaf; leaf 193 ipc/mqueue.c struct posix_msg_tree_node *leaf; leaf 212 ipc/mqueue.c leaf = rb_entry(parent, struct posix_msg_tree_node, rb_node); leaf 213 ipc/mqueue.c if (unlikely(list_empty(&leaf->msg_list))) { leaf 217 ipc/mqueue.c msg_tree_erase(leaf, info); leaf 220 ipc/mqueue.c msg = list_first_entry(&leaf->msg_list, leaf 223 ipc/mqueue.c if (list_empty(&leaf->msg_list)) { leaf 224 ipc/mqueue.c msg_tree_erase(leaf, info); leaf 1946 kernel/locking/lockdep.c print_shortest_lock_dependencies(struct lock_list *leaf, leaf 1949 kernel/locking/lockdep.c struct lock_list *entry = leaf; leaf 1953 kernel/locking/lockdep.c depth = get_lock_depth(leaf); leaf 21 lib/assoc_array.c int (*iterator)(const void *leaf, leaf 311 lib/assoc_array.c const void *leaf; leaf 330 lib/assoc_array.c leaf = assoc_array_ptr_to_leaf(ptr); leaf 331 lib/assoc_array.c if (ops->compare_object(leaf, index_key)) leaf 332 lib/assoc_array.c return (void *)leaf; leaf 986 lib/assoc_array.c edit->leaf = assoc_array_leaf_to_ptr(object); leaf 1034 lib/assoc_array.c edit->leaf = assoc_array_leaf_to_ptr(object); leaf 1046 lib/assoc_array.c static int assoc_array_delete_collapse_iterator(const void *leaf, leaf 1051 lib/assoc_array.c if (leaf == collapse->skip_leaf) leaf 1056 lib/assoc_array.c collapse->node->slots[collapse->slot++] = assoc_array_leaf_to_ptr(leaf); leaf 1357 lib/assoc_array.c *edit->leaf_p = edit->leaf; leaf 115 lib/rhashtable.c bool leaf) leaf 126 lib/rhashtable.c if (ntbl && leaf) { leaf 127 net/ipv4/fib_trie.c struct hlist_head leaf; leaf 372 net/ipv4/fib_trie.c INIT_HLIST_HEAD(&l->leaf); leaf 373 net/ipv4/fib_trie.c hlist_add_head(&fa->fa_list, &l->leaf); leaf 1079 net/ipv4/fib_trie.c hlist_for_each_entry(last, &l->leaf, fa_list) { leaf 1091 net/ipv4/fib_trie.c hlist_add_head_rcu(&new->fa_list, &l->leaf); leaf 1149 net/ipv4/fib_trie.c fa = l ? fib_find_alias(&l->leaf, slen, tos, fi->fib_priority, leaf 1441 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &n->leaf, fa_list) { leaf 1499 net/ipv4/fib_trie.c res->fa_head = &n->leaf; leaf 1528 net/ipv4/fib_trie.c if (hlist_empty(&l->leaf)) { leaf 1567 net/ipv4/fib_trie.c fa = fib_find_alias(&l->leaf, slen, tos, 0, tb->tb_id); leaf 1718 net/ipv4/fib_trie.c hlist_for_each_entry_safe(fa, tmp, &n->leaf, fa_list) { leaf 1754 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &l->leaf, fa_list) { leaf 1836 net/ipv4/fib_trie.c hlist_for_each_entry_safe(fa, tmp, &n->leaf, fa_list) { leaf 1853 net/ipv4/fib_trie.c if (hlist_empty(&n->leaf)) { leaf 1906 net/ipv4/fib_trie.c hlist_for_each_entry_safe(fa, tmp, &n->leaf, fa_list) { leaf 1937 net/ipv4/fib_trie.c if (hlist_empty(&n->leaf)) { leaf 1983 net/ipv4/fib_trie.c hlist_for_each_entry(fa, &n->leaf, fa_list) { leaf 2023 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &l->leaf, fa_list) { leaf 2105 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &l->leaf, fa_list) { leaf 2352 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &n->leaf, fa_list) leaf 2632 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &n->leaf, fa_list) { leaf 2795 net/ipv4/fib_trie.c hlist_for_each_entry_rcu(fa, &l->leaf, fa_list) { leaf 244 net/ipv6/ip6_fib.c rcu_assign_pointer(table->tb6_root.leaf, leaf 419 net/ipv6/ip6_fib.c w->leaf = NULL; leaf 470 net/ipv6/ip6_fib.c w->leaf = rt; leaf 491 net/ipv6/ip6_fib.c w->leaf = NULL; leaf 706 net/ipv6/ip6_fib.c struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, leaf 708 net/ipv6/ip6_fib.c key = (struct rt6key *)((u8 *)leaf + offset); leaf 734 net/ipv6/ip6_fib.c RCU_INIT_POINTER(fn->leaf, NULL); leaf 735 net/ipv6/ip6_fib.c fib6_info_release(leaf); leaf 738 net/ipv6/ip6_fib.c rcu_access_pointer(fn->leaf) == leaf 740 net/ipv6/ip6_fib.c RCU_INIT_POINTER(fn->leaf, NULL); leaf 846 net/ipv6/ip6_fib.c in->leaf = fn->leaf; leaf 847 net/ipv6/ip6_fib.c fib6_info_hold(rcu_dereference_protected(in->leaf, leaf 989 net/ipv6/ip6_fib.c struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, leaf 992 net/ipv6/ip6_fib.c if (!(fn->fn_flags & RTN_RTINFO) && leaf == rt) { leaf 996 net/ipv6/ip6_fib.c rcu_assign_pointer(fn->leaf, new_leaf); leaf 1013 net/ipv6/ip6_fib.c struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, leaf 1030 net/ipv6/ip6_fib.c ins = &fn->leaf; leaf 1032 net/ipv6/ip6_fib.c for (iter = leaf; iter; leaf 1106 net/ipv6/ip6_fib.c if (ins == &fn->leaf) leaf 1115 net/ipv6/ip6_fib.c sibling = leaf; leaf 1357 net/ipv6/ip6_fib.c rcu_assign_pointer(sfn->leaf, leaf 1393 net/ipv6/ip6_fib.c if (!rcu_access_pointer(fn->leaf)) { leaf 1396 net/ipv6/ip6_fib.c rcu_assign_pointer(fn->leaf, leaf 1400 net/ipv6/ip6_fib.c rcu_assign_pointer(fn->leaf, rt); leaf 1424 net/ipv6/ip6_fib.c rcu_dereference_protected(pn->leaf, leaf 1428 net/ipv6/ip6_fib.c RCU_INIT_POINTER(pn->leaf, NULL); leaf 1442 net/ipv6/ip6_fib.c rcu_assign_pointer(pn->leaf, pn_leaf); leaf 1461 net/ipv6/ip6_fib.c !rcu_access_pointer(fn->leaf)))) leaf 1510 net/ipv6/ip6_fib.c struct fib6_info *leaf = rcu_dereference(fn->leaf); leaf 1513 net/ipv6/ip6_fib.c if (!leaf) leaf 1516 net/ipv6/ip6_fib.c key = (struct rt6key *) ((u8 *)leaf + args->offset); leaf 1593 net/ipv6/ip6_fib.c struct fib6_info *leaf = rcu_dereference(fn->leaf); leaf 1597 net/ipv6/ip6_fib.c if (!leaf) { leaf 1604 net/ipv6/ip6_fib.c key = (struct rt6key *)((u8 *)leaf + offset); leaf 1688 net/ipv6/ip6_fib.c return rcu_dereference_protected(child_left->leaf, leaf 1691 net/ipv6/ip6_fib.c return rcu_dereference_protected(child_right->leaf, leaf 1717 net/ipv6/ip6_fib.c rcu_assign_pointer(fn->leaf, net->ipv6.fib6_null_entry); leaf 1732 net/ipv6/ip6_fib.c struct fib6_info *fn_leaf = rcu_dereference_protected(fn->leaf, leaf 1734 net/ipv6/ip6_fib.c struct fib6_info *pn_leaf = rcu_dereference_protected(pn->leaf, leaf 1766 net/ipv6/ip6_fib.c rcu_assign_pointer(fn->leaf, new_fn_leaf); leaf 1820 net/ipv6/ip6_fib.c RCU_INIT_POINTER(pn->leaf, NULL); leaf 1864 net/ipv6/ip6_fib.c if (w->state == FWS_C && w->leaf == rt) { leaf 1866 net/ipv6/ip6_fib.c w->leaf = rcu_dereference_protected(rt->fib6_next, leaf 1868 net/ipv6/ip6_fib.c if (!w->leaf) leaf 1878 net/ipv6/ip6_fib.c if (!rcu_access_pointer(fn->leaf)) { leaf 1915 net/ipv6/ip6_fib.c for (rtp = &fn->leaf; *rtp; rtp = rtp_next) { leaf 1992 net/ipv6/ip6_fib.c w->leaf = rcu_dereference_protected(fn->leaf, 1); leaf 1995 net/ipv6/ip6_fib.c if (w->leaf && fn->fn_flags & RTN_RTINFO) { leaf 2033 net/ipv6/ip6_fib.c w->leaf = rcu_dereference_protected(w->node->leaf, 1); leaf 2073 net/ipv6/ip6_fib.c w->leaf = NULL; leaf 2080 net/ipv6/ip6_fib.c w->leaf = rt; leaf 2101 net/ipv6/ip6_fib.c w->leaf = rt; leaf 2272 net/ipv6/ip6_fib.c rcu_assign_pointer(net->ipv6.fib6_main_tbl->tb6_root.leaf, leaf 2284 net/ipv6/ip6_fib.c rcu_assign_pointer(net->ipv6.fib6_local_tbl->tb6_root.leaf, leaf 2401 net/ipv6/ip6_fib.c iter->w.leaf = NULL; leaf 2413 net/ipv6/ip6_fib.c iter->w.leaf = rcu_dereference_protected( leaf 2414 net/ipv6/ip6_fib.c iter->w.leaf->fib6_next, leaf 2417 net/ipv6/ip6_fib.c if (!iter->skip && iter->w.leaf) leaf 2419 net/ipv6/ip6_fib.c } while (iter->w.leaf); leaf 2494 net/ipv6/ip6_fib.c return iter->w.leaf; leaf 850 net/ipv6/route.c static void find_rr_leaf(struct fib6_node *fn, struct fib6_info *leaf, leaf 861 net/ipv6/route.c __find_rr_leaf(leaf, rr_head, metric, res, &cont, leaf 874 net/ipv6/route.c struct fib6_info *leaf = rcu_dereference(fn->leaf); leaf 882 net/ipv6/route.c if (!leaf || leaf == net->ipv6.fib6_null_entry) leaf 887 net/ipv6/route.c rt0 = leaf; leaf 902 net/ipv6/route.c find_rr_leaf(fn, leaf, rt0, oif, strict, &do_rr, res); leaf 908 net/ipv6/route.c next = leaf; leaf 911 net/ipv6/route.c spin_lock_bh(&leaf->fib6_table->tb6_lock); leaf 915 net/ipv6/route.c spin_unlock_bh(&leaf->fib6_table->tb6_lock); leaf 1228 net/ipv6/route.c res.f6i = rcu_dereference(fn->leaf); leaf 4536 net/ipv6/route.c iter = rcu_dereference_protected(fn->leaf, leaf 152 net/sched/sch_api.c if (!(cops->find && cops->walk && cops->leaf)) leaf 342 net/sched/sch_api.c return cops->leaf(p, cl); leaf 1379 net/sched/sch_api.c struct Qdisc *leaf; leaf 1383 net/sched/sch_api.c leaf = cops->leaf(q, cl); leaf 1384 net/sched/sch_api.c if (leaf) { leaf 1385 net/sched/sch_api.c if (leaf == arg->p || arg->depth > 7) leaf 1387 net/sched/sch_api.c return check_loop(leaf, arg->p, arg->depth + 1); leaf 669 net/sched/sch_atm.c .leaf = atm_tc_leaf, leaf 3046 net/sched/sch_cake.c .leaf = cake_leaf, leaf 1777 net/sched/sch_cbq.c .leaf = cbq_leaf, leaf 534 net/sched/sch_cbs.c .leaf = cbs_leaf, leaf 475 net/sched/sch_drr.c .leaf = drr_class_leaf, leaf 482 net/sched/sch_dsmark.c .leaf = dsmark_leaf, leaf 685 net/sched/sch_fq_codel.c .leaf = fq_codel_leaf, leaf 1650 net/sched/sch_hfsc.c .leaf = hfsc_class_leaf, leaf 127 net/sched/sch_htb.c } leaf; leaf 557 net/sched/sch_htb.c WARN_ON(cl->level || !cl->leaf.q || !cl->leaf.q->q.qlen); leaf 602 net/sched/sch_htb.c } else if ((ret = qdisc_enqueue(skb, cl->leaf.q, leaf 844 net/sched/sch_htb.c if (unlikely(cl->leaf.q->q.qlen == 0)) { leaf 860 net/sched/sch_htb.c skb = cl->leaf.q->dequeue(cl->leaf.q); leaf 864 net/sched/sch_htb.c qdisc_warn_nonwc("htb", cl->leaf.q); leaf 873 net/sched/sch_htb.c cl->leaf.deficit[level] -= qdisc_pkt_len(skb); leaf 874 net/sched/sch_htb.c if (cl->leaf.deficit[level] < 0) { leaf 875 net/sched/sch_htb.c cl->leaf.deficit[level] += cl->quantum; leaf 882 net/sched/sch_htb.c if (!cl->leaf.q->q.qlen) leaf 960 net/sched/sch_htb.c if (cl->leaf.q) leaf 961 net/sched/sch_htb.c qdisc_reset(cl->leaf.q); leaf 1086 net/sched/sch_htb.c if (!cl->level && cl->leaf.q) leaf 1087 net/sched/sch_htb.c tcm->tcm_info = cl->leaf.q->handle; leaf 1130 net/sched/sch_htb.c if (!cl->level && cl->leaf.q) leaf 1131 net/sched/sch_htb.c qdisc_qstats_qlen_backlog(cl->leaf.q, &qlen, &qs.backlog); leaf 1159 net/sched/sch_htb.c *old = qdisc_replace(sch, new, &cl->leaf.q); leaf 1166 net/sched/sch_htb.c return !cl->level ? cl->leaf.q : NULL; leaf 1192 net/sched/sch_htb.c WARN_ON(cl->level || !cl->leaf.q || cl->prio_activity); leaf 1200 net/sched/sch_htb.c parent->leaf.q = new_q ? new_q : &noop_qdisc; leaf 1210 net/sched/sch_htb.c WARN_ON(!cl->leaf.q); leaf 1211 net/sched/sch_htb.c qdisc_put(cl->leaf.q); leaf 1273 net/sched/sch_htb.c qdisc_purge_queue(cl->leaf.q); leaf 1404 net/sched/sch_htb.c qdisc_purge_queue(parent->leaf.q); leaf 1405 net/sched/sch_htb.c parent_qdisc = parent->leaf.q; leaf 1419 net/sched/sch_htb.c cl->leaf.q = new_q ? new_q : &noop_qdisc; leaf 1435 net/sched/sch_htb.c if (cl->leaf.q != &noop_qdisc) leaf 1436 net/sched/sch_htb.c qdisc_hash_add(cl->leaf.q, true); leaf 1561 net/sched/sch_htb.c .leaf = htb_leaf, leaf 118 net/sched/sch_ingress.c .leaf = ingress_leaf, leaf 251 net/sched/sch_ingress.c .leaf = ingress_leaf, leaf 277 net/sched/sch_mq.c .leaf = mq_leaf, leaf 611 net/sched/sch_mqprio.c .leaf = mqprio_leaf, leaf 382 net/sched/sch_multiq.c .leaf = multiq_leaf, leaf 1261 net/sched/sch_netem.c .leaf = netem_leaf, leaf 405 net/sched/sch_prio.c .leaf = prio_leaf, leaf 1495 net/sched/sch_qfq.c .leaf = qfq_class_leaf, leaf 421 net/sched/sch_red.c .leaf = red_leaf, leaf 688 net/sched/sch_sfb.c .leaf = sfb_leaf, leaf 905 net/sched/sch_sfq.c .leaf = sfq_leaf, leaf 284 net/sched/sch_skbprio.c .leaf = skbprio_leaf, leaf 1918 net/sched/sch_taprio.c .leaf = taprio_leaf, leaf 526 net/sched/sch_tbf.c .leaf = tbf_leaf, leaf 303 scripts/dtc/libfdt/fdt_ro.c const char *leaf; leaf 304 scripts/dtc/libfdt/fdt_ro.c leaf = strrchr(nameptr, '/'); leaf 305 scripts/dtc/libfdt/fdt_ro.c if (leaf == NULL) { leaf 309 scripts/dtc/libfdt/fdt_ro.c nameptr = leaf+1; leaf 70 tools/perf/ui/browsers/hists.c if (he->leaf && he->unfolded) leaf 276 tools/perf/ui/browsers/hists.c if (he->leaf) leaf 383 tools/perf/ui/browsers/hists.c if (he->leaf) { leaf 414 tools/perf/ui/browsers/hists.c if (he->leaf) leaf 423 tools/perf/ui/browsers/hists.c if (he->leaf) leaf 433 tools/perf/ui/browsers/hists.c if (!he->leaf && he->nr_rows == 0) { leaf 449 tools/perf/ui/browsers/hists.c if (he->leaf) leaf 542 tools/perf/ui/browsers/hists.c if (he->leaf) leaf 565 tools/perf/ui/browsers/hists.c if (he->leaf) leaf 1379 tools/perf/ui/browsers/hists.c if (entry->leaf && row_offset) { leaf 1502 tools/perf/ui/browsers/hists.c if (entry->leaf && folded_sign == '-' && row != browser->b.rows) { leaf 1909 tools/perf/ui/browsers/hists.c if (h->unfolded && h->leaf) { leaf 1931 tools/perf/ui/browsers/hists.c if (h->unfolded && h->leaf) { leaf 1968 tools/perf/ui/browsers/hists.c if (h->unfolded && h->leaf) leaf 2087 tools/perf/ui/browsers/hists.c if (he->leaf && folded_sign == '-') { leaf 2799 tools/perf/ui/browsers/hists.c if (!he->leaf || !hist_entry__has_callchains(he) || !symbol_conf.use_callchain) leaf 465 tools/perf/ui/gtk/hists.c if (!he->leaf) { leaf 485 tools/perf/ui/gtk/hists.c if (he->leaf && hist_entry__has_callchains(he) && symbol_conf.use_callchain) { leaf 526 tools/perf/ui/stdio/hist.c if (he->leaf && hist_entry__has_callchains(he) && symbol_conf.use_callchain) { leaf 850 tools/perf/ui/stdio/hist.c if (!h->leaf && !hist_entry__has_hierarchy_children(h, min_pcnt)) { leaf 319 tools/perf/util/hist.c if (!he->leaf) { leaf 480 tools/perf/util/hist.c he->leaf = true; leaf 1494 tools/perf/util/hist.c new_he->leaf = true; leaf 1759 tools/perf/util/hist.c if (!he->leaf) { leaf 1919 tools/perf/util/hist.c if (he->leaf || hmd == HMD_FORCE_SIBLING) leaf 1979 tools/perf/util/hist.c if (he->leaf) leaf 2135 tools/perf/util/hist.c if (he->leaf || he->filtered) leaf 2505 tools/perf/util/hist.c if (!pos->leaf) { leaf 109 tools/perf/util/sort.h bool leaf; leaf 1263 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c static void get_cpuid_or_exit(unsigned int leaf, leaf 1267 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (!__get_cpuid(leaf, eax, ebx, ecx, edx)) leaf 1149 tools/testing/selftests/kvm/lib/x86_64/processor.c const int leaf = 0; leaf 1155 tools/testing/selftests/kvm/lib/x86_64/processor.c : /* input */ "0"(leaf), "2"(0)); leaf 196 tools/testing/selftests/x86/pkey-helpers.h int leaf; leaf 199 tools/testing/selftests/x86/pkey-helpers.h leaf = XSTATE_PKRU_BIT; leaf 202 tools/testing/selftests/x86/pkey-helpers.h ecx = leaf; leaf 205 tools/testing/selftests/x86/pkey-helpers.h if (leaf == XSTATE_PKRU_BIT) {