root 109 arch/alpha/oprofile/common.c op_axp_create_files(struct dentry *root) root 118 arch/alpha/oprofile/common.c dir = oprofilefs_mkdir(root, buf); root 130 arch/alpha/oprofile/common.c oprofilefs_create_ulong(root, "enable_pal", root 132 arch/alpha/oprofile/common.c oprofilefs_create_ulong(root, "enable_kernel", root 134 arch/alpha/oprofile/common.c oprofilefs_create_ulong(root, "enable_user", root 943 arch/arm/kernel/setup.c struct device_node *root; root 949 arch/arm/kernel/setup.c root = of_find_node_by_path("/"); root 950 arch/arm/kernel/setup.c if (root) { root 951 arch/arm/kernel/setup.c ret = of_property_read_string(root, "serial-number", root 36 arch/arm/mach-cns3xxx/pcie.c struct pci_sys_data *root = sysdata; root 38 arch/arm/mach-cns3xxx/pcie.c return root->private_data; root 80 arch/arm/mach-imx/cpu.c struct device_node *root; root 90 arch/arm/mach-imx/cpu.c root = of_find_node_by_path("/"); root 91 arch/arm/mach-imx/cpu.c ret = of_property_read_string(root, "model", &soc_dev_attr->machine); root 92 arch/arm/mach-imx/cpu.c of_node_put(root); root 378 arch/arm/mach-mxs/mach-mxs.c struct device_node *root; root 388 arch/arm/mach-mxs/mach-mxs.c root = of_find_node_by_path("/"); root 389 arch/arm/mach-mxs/mach-mxs.c ret = of_property_read_string(root, "model", &soc_dev_attr->machine); root 78 arch/arm64/kernel/pci.c struct acpi_pci_root *root = acpi_driver_data(adev); root 80 arch/arm64/kernel/pci.c return root->segment; root 115 arch/arm64/kernel/pci.c pci_acpi_setup_ecam_mapping(struct acpi_pci_root *root) root 117 arch/arm64/kernel/pci.c struct device *dev = &root->device->dev; root 118 arch/arm64/kernel/pci.c struct resource *bus_res = &root->secondary; root 119 arch/arm64/kernel/pci.c u16 seg = root->segment; root 126 arch/arm64/kernel/pci.c ret = pci_mcfg_lookup(root, &cfgres, &ecam_ops); root 162 arch/arm64/kernel/pci.c struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) root 179 arch/arm64/kernel/pci.c ri->cfg = pci_acpi_setup_ecam_mapping(root); root 189 arch/arm64/kernel/pci.c bus = acpi_pci_root_create(root, root_ops, &ri->common, ri->cfg); root 94 arch/c6x/platforms/pll.c static void propagate_rate(struct clk *root) root 98 arch/c6x/platforms/pll.c list_for_each_entry(clk, &root->children, childnode) { root 290 arch/ia64/pci/pci.c struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) root 292 arch/ia64/pci/pci.c struct acpi_device *device = root->device; root 299 arch/ia64/pci/pci.c root->segment, (int)root->secondary.start); root 303 arch/ia64/pci/pci.c info->controller.segment = root->segment; root 307 arch/ia64/pci/pci.c return acpi_pci_root_create(root, &pci_acpi_root_ops, root 499 arch/mips/cavium-octeon/setup.c struct device_node *root; root 502 arch/mips/cavium-octeon/setup.c root = of_find_node_by_path("/"); root 503 arch/mips/cavium-octeon/setup.c ret = of_property_read_string(root, "model", &board_type); root 504 arch/mips/cavium-octeon/setup.c of_node_put(root); root 38 arch/mips/oprofile/common.c static int op_mips_create_files(struct dentry *root) root 47 arch/mips/oprofile/common.c dir = oprofilefs_mkdir(root, buf); root 117 arch/mips/pic32/pic32mzda/init.c struct device_node *root, *np; root 120 arch/mips/pic32/pic32mzda/init.c root = of_find_node_by_path("/"); root 43 arch/parisc/kernel/drivers.c static struct device root = { root 91 arch/parisc/kernel/drivers.c return device_for_each_child(&root, &recurse_data, descend_children); root 293 arch/parisc/kernel/drivers.c while (dev != &root) { root 322 arch/parisc/kernel/drivers.c while (dev != &root) { root 484 arch/parisc/kernel/drivers.c struct device *parent = &root; root 758 arch/parisc/kernel/drivers.c struct device *parent = &root; root 883 arch/parisc/kernel/drivers.c &root); root 912 arch/parisc/kernel/drivers.c if (device_register(&root)) root 914 arch/parisc/kernel/drivers.c get_device(&root); root 19 arch/powerpc/boot/devtree.c void *root, *memory; root 23 arch/powerpc/boot/devtree.c root = finddevice("/"); root 24 arch/powerpc/boot/devtree.c if (getprop(root, "#address-cells", &naddr, sizeof(naddr)) < 0) root 29 arch/powerpc/boot/devtree.c if (getprop(root, "#size-cells", &nsize, sizeof(nsize)) < 0) root 109 arch/powerpc/include/asm/eeh.h #define eeh_for_each_pe(root, pe) \ root 110 arch/powerpc/include/asm/eeh.h for (pe = root; pe; pe = eeh_pe_next(pe, root)) root 282 arch/powerpc/include/asm/eeh.h struct eeh_pe *eeh_pe_next(struct eeh_pe *pe, struct eeh_pe *root); root 288 arch/powerpc/include/asm/eeh.h void *eeh_pe_traverse(struct eeh_pe *root, root 290 arch/powerpc/include/asm/eeh.h void eeh_pe_dev_traverse(struct eeh_pe *root, root 188 arch/powerpc/include/asm/kvm_book3s.h struct kvmppc_pte *gpte, u64 root, root 35 arch/powerpc/include/asm/ppc-pci.h void *traverse_pci_dn(struct pci_dn *root, root 777 arch/powerpc/kernel/dt_cpu_ftrs.c unsigned long root, chosen; root 780 arch/powerpc/kernel/dt_cpu_ftrs.c root = of_get_flat_dt_root(); root 781 arch/powerpc/kernel/dt_cpu_ftrs.c chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); root 878 arch/powerpc/kernel/eeh.c static void eeh_pe_refreeze_passed(struct eeh_pe *root) root 883 arch/powerpc/kernel/eeh.c eeh_for_each_pe(root, pe) { root 233 arch/powerpc/kernel/eeh_driver.c static void eeh_set_channel_state(struct eeh_pe *root, enum pci_channel_state s) root 238 arch/powerpc/kernel/eeh_driver.c eeh_for_each_pe(root, pe) root 244 arch/powerpc/kernel/eeh_driver.c static void eeh_set_irq_state(struct eeh_pe *root, bool enable) root 249 arch/powerpc/kernel/eeh_driver.c eeh_for_each_pe(root, pe) { root 590 arch/powerpc/kernel/eeh_driver.c eeh_pe_state_clear(root, EEH_PE_ISOLATED, include_passed); root 182 arch/powerpc/kernel/eeh_pe.c struct eeh_pe *eeh_pe_next(struct eeh_pe *pe, struct eeh_pe *root) root 188 arch/powerpc/kernel/eeh_pe.c if (pe == root) root 211 arch/powerpc/kernel/eeh_pe.c void *eeh_pe_traverse(struct eeh_pe *root, root 217 arch/powerpc/kernel/eeh_pe.c eeh_for_each_pe(root, pe) { root 234 arch/powerpc/kernel/eeh_pe.c void eeh_pe_dev_traverse(struct eeh_pe *root, root 240 arch/powerpc/kernel/eeh_pe.c if (!root) { root 242 arch/powerpc/kernel/eeh_pe.c __func__, root); root 247 arch/powerpc/kernel/eeh_pe.c eeh_for_each_pe(root, pe) root 312 arch/powerpc/kernel/eeh_pe.c struct eeh_pe *root = eeh_phb_pe_get(phb); root 316 arch/powerpc/kernel/eeh_pe.c pe = eeh_pe_traverse(root, __eeh_pe_get, &tmp); root 583 arch/powerpc/kernel/eeh_pe.c void eeh_pe_state_mark(struct eeh_pe *root, int state) root 587 arch/powerpc/kernel/eeh_pe.c eeh_for_each_pe(root, pe) root 601 arch/powerpc/kernel/eeh_pe.c void eeh_pe_mark_isolated(struct eeh_pe *root) root 607 arch/powerpc/kernel/eeh_pe.c eeh_pe_state_mark(root, EEH_PE_ISOLATED); root 608 arch/powerpc/kernel/eeh_pe.c eeh_for_each_pe(root, pe) { root 649 arch/powerpc/kernel/eeh_pe.c void eeh_pe_state_clear(struct eeh_pe *root, int state, bool include_passed) root 655 arch/powerpc/kernel/eeh_pe.c eeh_for_each_pe(root, pe) { root 1207 arch/powerpc/kernel/fadump.c struct device_node *root; root 1212 arch/powerpc/kernel/fadump.c root = of_find_node_by_path("/"); root 1213 arch/powerpc/kernel/fadump.c if (!root) root 1216 arch/powerpc/kernel/fadump.c prop = of_get_property(root, "reserved-ranges", &len); root 17 arch/powerpc/kernel/ima_kexec.c struct device_node *root; root 19 arch/powerpc/kernel/ima_kexec.c root = of_find_node_by_path("/"); root 20 arch/powerpc/kernel/ima_kexec.c if (!root) root 23 arch/powerpc/kernel/ima_kexec.c *addr_cells = of_n_addr_cells(root); root 24 arch/powerpc/kernel/ima_kexec.c *size_cells = of_n_size_cells(root); root 26 arch/powerpc/kernel/ima_kexec.c of_node_put(root); root 441 arch/powerpc/kernel/pci_dn.c static struct pci_dn *pci_dn_next_one(struct pci_dn *root, root 450 arch/powerpc/kernel/pci_dn.c if (pdn == root) root 463 arch/powerpc/kernel/pci_dn.c void *traverse_pci_dn(struct pci_dn *root, root 467 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn = root; root 471 arch/powerpc/kernel/pci_dn.c for (pdn = pci_dn_next_one(root, pdn); pdn; root 472 arch/powerpc/kernel/pci_dn.c pdn = pci_dn_next_one(root, pdn)) { root 71 arch/powerpc/kernel/proc_powerpc.c struct proc_dir_entry *root; root 73 arch/powerpc/kernel/proc_powerpc.c root = proc_mkdir("powerpc", NULL); root 74 arch/powerpc/kernel/proc_powerpc.c if (!root) root 85 arch/powerpc/kernel/proc_powerpc.c if (!proc_mkdir("rtas", root)) root 118 arch/powerpc/kernel/prom_init.c ihandle root; root 1342 arch/powerpc/kernel/prom_init.c ihandle root; root 1349 arch/powerpc/kernel/prom_init.c root = call_prom("open", 1, 1, ADDR("/")); root 1350 arch/powerpc/kernel/prom_init.c if (root != 0) { root 1368 arch/powerpc/kernel/prom_init.c root, root 1374 arch/powerpc/kernel/prom_init.c call_prom("close", 1, 0, root); root 1378 arch/powerpc/kernel/prom_init.c call_prom("close", 1, 0, root); root 1607 arch/powerpc/kernel/prom_init.c prom_getprop(prom.root, "#address-cells", &val, sizeof(val)); root 1610 arch/powerpc/kernel/prom_init.c prom_getprop(prom.root, "#size-cells", &val, sizeof(rsc)); root 2167 arch/powerpc/kernel/prom_init.c prom.root = call_prom("finddevice", 1, 1, ADDR("/")); root 2168 arch/powerpc/kernel/prom_init.c if (!PHANDLE_VALID(prom.root)) root 2252 arch/powerpc/kernel/prom_init.c len = prom_getprop(prom.root, "compatible", root 2283 arch/powerpc/kernel/prom_init.c len = prom_getprop(prom.root, "device_type", root 2631 arch/powerpc/kernel/prom_init.c phandle root; root 2653 arch/powerpc/kernel/prom_init.c root = call_prom("peer", 1, 1, (phandle)0); root 2654 arch/powerpc/kernel/prom_init.c if (root == (phandle)0) root 2676 arch/powerpc/kernel/prom_init.c scan_dt_build_strings(root, &mem_start, &mem_end); root 2683 arch/powerpc/kernel/prom_init.c scan_dt_build_struct(root, &mem_start, &mem_end); root 2783 arch/powerpc/kernel/prom_init.c prom_getprop(prom.root, "#address-cells", &ac, sizeof(ac)); root 2784 arch/powerpc/kernel/prom_init.c prom_getprop(prom.root, "#size-cells", &sc, sizeof(sc)); root 198 arch/powerpc/kernel/rtas.c struct device_node *root; root 214 arch/powerpc/kernel/rtas.c if ((root = of_find_node_by_path("/rtas"))) { root 215 arch/powerpc/kernel/rtas.c if ((p = of_get_property(root, root 218 arch/powerpc/kernel/rtas.c if ((p = of_get_property(root, root 221 arch/powerpc/kernel/rtas.c if ((p = of_get_property(root, root 224 arch/powerpc/kernel/rtas.c row_width = of_get_property(root, root 226 arch/powerpc/kernel/rtas.c of_node_put(root); root 196 arch/powerpc/kernel/setup-common.c struct device_node *root; root 210 arch/powerpc/kernel/setup-common.c root = of_find_node_by_path("/"); root 211 arch/powerpc/kernel/setup-common.c if (root) root 212 arch/powerpc/kernel/setup-common.c model = of_get_property(root, "model", NULL); root 215 arch/powerpc/kernel/setup-common.c of_node_put(root); root 128 arch/powerpc/kvm/book3s_64_mmu_radix.c struct kvmppc_pte *gpte, u64 root, root 137 arch/powerpc/kvm/book3s_64_mmu_radix.c rts = ((root & RTS1_MASK) >> (RTS1_SHIFT - 3)) | root 138 arch/powerpc/kvm/book3s_64_mmu_radix.c ((root & RTS2_MASK) >> RTS2_SHIFT); root 139 arch/powerpc/kvm/book3s_64_mmu_radix.c bits = root & RPDS_MASK; root 140 arch/powerpc/kvm/book3s_64_mmu_radix.c base = root & RPDB_MASK; root 226 arch/powerpc/kvm/book3s_64_mmu_radix.c unsigned long size, ptbl, root; root 244 arch/powerpc/kvm/book3s_64_mmu_radix.c root = be64_to_cpu(entry.prtb0); root 246 arch/powerpc/kvm/book3s_64_mmu_radix.c return kvmppc_mmu_walk_radix_tree(vcpu, eaddr, gpte, root, pte_ret_p); root 362 arch/powerpc/mm/init_64.c unsigned long root, chosen; root 367 arch/powerpc/mm/init_64.c root = of_get_flat_dt_root(); root 368 arch/powerpc/mm/init_64.c chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); root 353 arch/powerpc/mm/nohash/tlb.c unsigned long root = of_get_flat_dt_root(); root 354 arch/powerpc/mm/nohash/tlb.c if (of_get_flat_dt_prop(root, "cooperative-partition", NULL)) root 289 arch/powerpc/mm/numa.c struct device_node *root; root 292 arch/powerpc/mm/numa.c root = of_find_node_by_path("/ibm,opal"); root 294 arch/powerpc/mm/numa.c root = of_find_node_by_path("/rtas"); root 295 arch/powerpc/mm/numa.c if (!root) root 296 arch/powerpc/mm/numa.c root = of_find_node_by_path("/"); root 310 arch/powerpc/mm/numa.c distance_ref_points = of_get_property(root, root 349 arch/powerpc/mm/numa.c of_node_put(root); root 353 arch/powerpc/mm/numa.c of_node_put(root); root 118 arch/powerpc/oprofile/common.c static int op_powerpc_create_files(struct dentry *root) root 127 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0); root 128 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1); root 129 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "mmcra", &sys.mmcra); root 141 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "cell_support", &sys.cell_support); root 159 arch/powerpc/oprofile/common.c dir = oprofilefs_mkdir(root, buf); root 178 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "enable_kernel", &sys.enable_kernel); root 179 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "enable_user", &sys.enable_user); root 559 arch/powerpc/perf/hv-24x7.c static int event_uniq_add(struct rb_root *root, const char *name, int nl, root 562 arch/powerpc/perf/hv-24x7.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 600 arch/powerpc/perf/hv-24x7.c rb_insert_color(&data->node, root); root 606 arch/powerpc/perf/hv-24x7.c static void event_uniq_destroy(struct rb_root *root) root 614 arch/powerpc/perf/hv-24x7.c rbtree_postorder_for_each_entry_safe(pos, n, root, node) root 243 arch/powerpc/platforms/44x/fsp2.c unsigned long root = of_get_flat_dt_root(); root 245 arch/powerpc/platforms/44x/fsp2.c if (!of_flat_dt_is_compatible(root, "ibm,fsp2")) root 75 arch/powerpc/platforms/52xx/efika.c struct device_node *root; root 78 arch/powerpc/platforms/52xx/efika.c root = of_find_node_by_path("/"); root 79 arch/powerpc/platforms/52xx/efika.c if (root == NULL) { root 85 arch/powerpc/platforms/52xx/efika.c for_each_child_of_node(root, pcictrl) root 89 arch/powerpc/platforms/52xx/efika.c of_node_put(root); root 144 arch/powerpc/platforms/52xx/efika.c struct device_node *root; root 149 arch/powerpc/platforms/52xx/efika.c root = of_find_node_by_path("/"); root 150 arch/powerpc/platforms/52xx/efika.c if (!root) root 153 arch/powerpc/platforms/52xx/efika.c revision = of_get_property(root, "revision", NULL); root 154 arch/powerpc/platforms/52xx/efika.c codegendescription = of_get_property(root, "CODEGEN,description", NULL); root 155 arch/powerpc/platforms/52xx/efika.c codegenvendor = of_get_property(root, "CODEGEN,vendor", NULL); root 168 arch/powerpc/platforms/52xx/efika.c of_node_put(root); root 116 arch/powerpc/platforms/85xx/xes_mpc85xx.c struct device_node *root; root 119 arch/powerpc/platforms/85xx/xes_mpc85xx.c root = of_find_node_by_path("/"); root 120 arch/powerpc/platforms/85xx/xes_mpc85xx.c if (root == NULL) root 123 arch/powerpc/platforms/85xx/xes_mpc85xx.c model = of_get_property(root, "model", NULL); root 79 arch/powerpc/platforms/86xx/mvme7100.c unsigned long root = of_get_flat_dt_root(); root 81 arch/powerpc/platforms/86xx/mvme7100.c return of_flat_dt_is_compatible(root, "artesyn,MVME7100"); root 66 arch/powerpc/platforms/cell/setup.c struct device_node *root; root 69 arch/powerpc/platforms/cell/setup.c root = of_find_node_by_path("/"); root 70 arch/powerpc/platforms/cell/setup.c if (root) root 71 arch/powerpc/platforms/cell/setup.c model = of_get_property(root, "model", NULL); root 73 arch/powerpc/platforms/cell/setup.c of_node_put(root); root 156 arch/powerpc/platforms/cell/setup.c struct device_node *root = of_find_node_by_path("/"); root 166 arch/powerpc/platforms/cell/setup.c for_each_child_of_node(root, np) { root 601 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_show_options(struct seq_file *m, struct dentry *root) root 603 arch/powerpc/platforms/cell/spufs/inode.c struct spufs_sb_info *sbi = spufs_get_sb_info(root->d_sb); root 604 arch/powerpc/platforms/cell/spufs/inode.c struct inode *inode = root->d_inode; root 192 arch/powerpc/platforms/chrp/pci.c struct device_node *root = of_find_node_by_path("/"); root 195 arch/powerpc/platforms/chrp/pci.c rtas = of_find_node_by_name (root, "rtas"); root 217 arch/powerpc/platforms/chrp/pci.c struct device_node *root = of_find_node_by_path("/"); root 224 arch/powerpc/platforms/chrp/pci.c machine = of_get_property(root, "model", NULL); root 233 arch/powerpc/platforms/chrp/pci.c for_each_child_of_node(root, dev) { root 316 arch/powerpc/platforms/chrp/pci.c of_node_put(root); root 101 arch/powerpc/platforms/chrp/setup.c struct device_node *root; root 104 arch/powerpc/platforms/chrp/setup.c root = of_find_node_by_path("/"); root 105 arch/powerpc/platforms/chrp/setup.c if (root) root 106 arch/powerpc/platforms/chrp/setup.c model = of_get_property(root, "model", NULL); root 154 arch/powerpc/platforms/chrp/setup.c of_node_put(root); root 197 arch/powerpc/platforms/chrp/setup.c struct device_node *root; root 200 arch/powerpc/platforms/chrp/setup.c root = of_find_node_by_path("/"); root 201 arch/powerpc/platforms/chrp/setup.c if (!root) root 204 arch/powerpc/platforms/chrp/setup.c model = of_get_property(root, "model", NULL); root 212 arch/powerpc/platforms/chrp/setup.c of_node_put(root); root 298 arch/powerpc/platforms/chrp/setup.c struct device_node *root = of_find_node_by_path("/"); root 304 arch/powerpc/platforms/chrp/setup.c if (root) root 305 arch/powerpc/platforms/chrp/setup.c machine = of_get_property(root, "model", NULL); root 321 arch/powerpc/platforms/chrp/setup.c of_node_put(root); root 377 arch/powerpc/platforms/chrp/setup.c struct device_node *np, *root; root 388 arch/powerpc/platforms/chrp/setup.c root = of_find_node_by_path("/"); root 389 arch/powerpc/platforms/chrp/setup.c if (root) { root 390 arch/powerpc/platforms/chrp/setup.c opprop = of_get_property(root, "platform-open-pic", &oplen); root 391 arch/powerpc/platforms/chrp/setup.c na = of_n_addr_cells(root); root 450 arch/powerpc/platforms/chrp/setup.c of_node_put(root); root 590 arch/powerpc/platforms/maple/pci.c struct device_node *np, *root; root 598 arch/powerpc/platforms/maple/pci.c root = of_find_node_by_path("/"); root 599 arch/powerpc/platforms/maple/pci.c if (root == NULL) { root 603 arch/powerpc/platforms/maple/pci.c for_each_child_of_node(root, np) { root 616 arch/powerpc/platforms/maple/pci.c of_node_put(root); root 203 arch/powerpc/platforms/maple/setup.c struct device_node *root, *np, *mpic_node = NULL; root 232 arch/powerpc/platforms/maple/setup.c root = of_find_node_by_path("/"); root 233 arch/powerpc/platforms/maple/setup.c naddr = of_n_addr_cells(root); root 234 arch/powerpc/platforms/maple/setup.c opprop = of_get_property(root, "platform-open-pic", &opplen); root 272 arch/powerpc/platforms/maple/setup.c of_node_put(root); root 272 arch/powerpc/platforms/pasemi/pci.c struct device_node *np, *root; root 275 arch/powerpc/platforms/pasemi/pci.c root = of_find_node_by_path("/"); root 276 arch/powerpc/platforms/pasemi/pci.c if (!root) { root 283 arch/powerpc/platforms/pasemi/pci.c np = of_find_compatible_node(root, NULL, "pasemi,rootbus"); root 248 arch/powerpc/platforms/pasemi/setup.c struct device_node *root, *mpic_node; root 274 arch/powerpc/platforms/pasemi/setup.c root = of_find_node_by_path("/"); root 275 arch/powerpc/platforms/pasemi/setup.c naddr = of_n_addr_cells(root); root 276 arch/powerpc/platforms/pasemi/setup.c opprop = of_get_property(root, "platform-open-pic", &opplen); root 279 arch/powerpc/platforms/pasemi/setup.c of_node_put(root); root 308 arch/powerpc/platforms/pasemi/setup.c of_node_put(root); root 900 arch/powerpc/platforms/powermac/pci.c struct device_node *np, *root; root 905 arch/powerpc/platforms/powermac/pci.c root = of_find_node_by_path("/"); root 906 arch/powerpc/platforms/powermac/pci.c if (root == NULL) { root 911 arch/powerpc/platforms/powermac/pci.c for_each_child_of_node(root, np) { root 923 arch/powerpc/platforms/powermac/pci.c of_node_put(root); root 368 arch/powerpc/platforms/powernv/opal-lpc.c struct dentry *root; root 374 arch/powerpc/platforms/powernv/opal-lpc.c root = debugfs_create_dir("lpc", powerpc_debugfs_root); root 376 arch/powerpc/platforms/powernv/opal-lpc.c rc |= opal_lpc_debugfs_create_type(root, "io", OPAL_LPC_IO); root 377 arch/powerpc/platforms/powernv/opal-lpc.c rc |= opal_lpc_debugfs_create_type(root, "mem", OPAL_LPC_MEM); root 378 arch/powerpc/platforms/powernv/opal-lpc.c rc |= opal_lpc_debugfs_create_type(root, "fw", OPAL_LPC_FW); root 155 arch/powerpc/platforms/powernv/opal-xscom.c static int scom_debug_init_one(struct dentry *root, struct device_node *dn, root 170 arch/powerpc/platforms/powernv/opal-xscom.c dir = debugfs_create_dir(ent->name, root); root 186 arch/powerpc/platforms/powernv/opal-xscom.c struct dentry *root; root 192 arch/powerpc/platforms/powernv/opal-xscom.c root = debugfs_create_dir("scom", powerpc_debugfs_root); root 193 arch/powerpc/platforms/powernv/opal-xscom.c if (!root) root 200 arch/powerpc/platforms/powernv/opal-xscom.c rc |= scom_debug_init_one(root, dn, chip); root 191 arch/powerpc/platforms/powernv/setup.c struct device_node *root; root 194 arch/powerpc/platforms/powernv/setup.c root = of_find_node_by_path("/"); root 195 arch/powerpc/platforms/powernv/setup.c if (root) root 196 arch/powerpc/platforms/powernv/setup.c model = of_get_property(root, "model", NULL); root 202 arch/powerpc/platforms/powernv/setup.c of_node_put(root); root 181 arch/powerpc/platforms/pseries/ibmebus.c struct device_node *root, *child; root 185 arch/powerpc/platforms/pseries/ibmebus.c root = of_find_node_by_path("/"); root 187 arch/powerpc/platforms/pseries/ibmebus.c for_each_child_of_node(root, child) { root 207 arch/powerpc/platforms/pseries/ibmebus.c of_node_put(root); root 160 arch/powerpc/platforms/pseries/lparcfg.c struct device_node *root; root 200 arch/powerpc/platforms/pseries/lparcfg.c root = of_find_node_by_path("/"); root 201 arch/powerpc/platforms/pseries/lparcfg.c if (root) { root 202 arch/powerpc/platforms/pseries/lparcfg.c perf_level = of_get_property(root, root 215 arch/powerpc/platforms/pseries/lparcfg.c of_node_put(root); root 89 arch/powerpc/platforms/pseries/setup.c struct device_node *root; root 92 arch/powerpc/platforms/pseries/setup.c root = of_find_node_by_path("/"); root 93 arch/powerpc/platforms/pseries/setup.c if (root) root 94 arch/powerpc/platforms/pseries/setup.c model = of_get_property(root, "model", NULL); root 96 arch/powerpc/platforms/pseries/setup.c of_node_put(root); root 458 arch/powerpc/platforms/pseries/setup.c struct device_node *root = of_find_node_by_path("/"); root 460 arch/powerpc/platforms/pseries/setup.c for_each_child_of_node(root, node) { root 474 arch/powerpc/platforms/pseries/setup.c of_node_put(root); root 642 arch/powerpc/platforms/pseries/setup.c struct resource *res, *root, *conflict; root 660 arch/powerpc/platforms/pseries/setup.c root = &iomem_resource; root 664 arch/powerpc/platforms/pseries/setup.c conflict = request_resource_conflict(root, res); root 728 arch/powerpc/sysdev/xive/spapr.c unsigned long root, chosen; root 732 arch/powerpc/sysdev/xive/spapr.c root = of_get_flat_dt_root(); root 733 arch/powerpc/sysdev/xive/spapr.c chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); root 34 arch/s390/hypfs/hypfs.h extern int hypfs_diag_create_files(struct dentry *root); root 39 arch/s390/hypfs/hypfs.h extern int hypfs_vm_create_files(struct dentry *root); root 569 arch/s390/hypfs/hypfs_diag.c int hypfs_diag_create_files(struct dentry *root) root 580 arch/s390/hypfs/hypfs_diag.c systems_dir = hypfs_mkdir(root, "systems"); root 596 arch/s390/hypfs/hypfs_diag.c ptr = hypfs_create_phys_files(root, part_hdr); root 602 arch/s390/hypfs/hypfs_diag.c hyp_dir = hypfs_mkdir(root, "hyp"); root 179 arch/s390/hypfs/hypfs_vm.c int hypfs_vm_create_files(struct dentry *root) root 191 arch/s390/hypfs/hypfs_vm.c dir = hypfs_mkdir(root, "hyp"); root 203 arch/s390/hypfs/hypfs_vm.c dir = hypfs_mkdir(root, "cpus"); root 215 arch/s390/hypfs/hypfs_vm.c dir = hypfs_mkdir(root, "systems"); root 84 arch/s390/hypfs/inode.c static void hypfs_delete_tree(struct dentry *root) root 252 arch/s390/hypfs/inode.c static int hypfs_show_options(struct seq_file *s, struct dentry *root) root 254 arch/s390/hypfs/inode.c struct hypfs_sb_info *hypfs_info = root->d_sb->s_fs_info; root 65 arch/s390/include/asm/ccwgroup.h int ccwgroup_create_dev(struct device *root, struct ccwgroup_driver *gdrv, root 126 arch/s390/mm/gmap.c static void gmap_radix_tree_free(struct radix_tree_root *root) root 138 arch/s390/mm/gmap.c radix_tree_for_each_slot(slot, root, &iter, index) { root 145 arch/s390/mm/gmap.c radix_tree_delete(root, index); root 150 arch/s390/mm/gmap.c static void gmap_rmap_radix_tree_free(struct radix_tree_root *root) root 163 arch/s390/mm/gmap.c radix_tree_for_each_slot(slot, root, &iter, index) { root 170 arch/s390/mm/gmap.c head = radix_tree_delete(root, index); root 119 arch/sh/boards/of-generic.c struct device_node *root; root 122 arch/sh/boards/of-generic.c root = of_find_node_by_path("/"); root 123 arch/sh/boards/of-generic.c if (root) { root 124 arch/sh/boards/of-generic.c of_property_read_string(root, "model", &sh_mv.mv_name); root 125 arch/sh/boards/of-generic.c of_node_put(root); root 383 arch/sparc/kernel/ioport.c struct resource *root = m->private, *r; root 386 arch/sparc/kernel/ioport.c for (r = root->child; r != NULL; r = r->sibling) { root 411 arch/sparc/kernel/of_device_32.c struct device_node *root = of_find_node_by_path("/"); root 414 arch/sparc/kernel/of_device_32.c parent = scan_one_device(root, NULL); root 418 arch/sparc/kernel/of_device_32.c scan_tree(root->child, &parent->dev); root 704 arch/sparc/kernel/of_device_64.c struct device_node *root = of_find_node_by_path("/"); root 707 arch/sparc/kernel/of_device_64.c parent = scan_one_device(root, NULL); root 711 arch/sparc/kernel/of_device_64.c scan_tree(root->child, &parent->dev); root 625 arch/sparc/kernel/pci.c struct resource *p, *root, *conflict; root 641 arch/sparc/kernel/pci.c root = pci_find_parent_resource(dev, p); root 642 arch/sparc/kernel/pci.c if (!root) { root 647 arch/sparc/kernel/pci.c conflict = request_resource_conflict(root, p); root 508 arch/sparc/kernel/vio.c u64 root; root 521 arch/sparc/kernel/vio.c root = mdesc_node_by_name(hp, MDESC_NODE_NULL, channel_devices_node); root 522 arch/sparc/kernel/vio.c if (root == MDESC_NODE_NULL) { root 535 arch/sparc/kernel/vio.c compat = mdesc_get_property(hp, root, "compatible", &len); root 547 arch/sparc/kernel/vio.c cfg_handle = mdesc_get_property(hp, root, cfg_handle_prop, NULL); root 556 arch/sparc/kernel/vio.c root_vdev = vio_create_one(hp, root, NULL, NULL); root 357 arch/x86/entry/vsyscall/vsyscall_64.c void __init set_vsyscall_pgtable_user_bits(pgd_t *root) root 364 arch/x86/entry/vsyscall/vsyscall_64.c pgd = pgd_offset_pgd(root, VSYSCALL_ADDR); root 64 arch/x86/include/asm/amd_nb.h struct pci_dev *root; root 380 arch/x86/include/asm/kvm_host.h void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long root); root 10 arch/x86/include/asm/vsyscall.h extern void set_vsyscall_pgtable_user_bits(pgd_t *root); root 128 arch/x86/kernel/amd_nb.c struct pci_dev *root; root 134 arch/x86/kernel/amd_nb.c root = node_to_amd_nb(node)->root; root 135 arch/x86/kernel/amd_nb.c if (!root) root 140 arch/x86/kernel/amd_nb.c err = pci_write_config_dword(root, 0x60, address); root 146 arch/x86/kernel/amd_nb.c err = (write ? pci_write_config_dword(root, 0x64, *value) root 147 arch/x86/kernel/amd_nb.c : pci_read_config_dword(root, 0x64, value)); root 224 arch/x86/kernel/amd_nb.c struct pci_dev *root, *misc, *link; root 247 arch/x86/kernel/amd_nb.c root = NULL; root 248 arch/x86/kernel/amd_nb.c while ((root = next_northbridge(root, root_ids)) != NULL) root 271 arch/x86/kernel/amd_nb.c link = misc = root = NULL; root 273 arch/x86/kernel/amd_nb.c node_to_amd_nb(i)->root = root = root 274 arch/x86/kernel/amd_nb.c next_northbridge(root, root_ids); root 290 arch/x86/kernel/amd_nb.c root = next_northbridge(root, root_ids); root 2114 arch/x86/kernel/cpu/resctrl/rdtgroup.c ctx->kfc.root = rdt_root; root 2230 arch/x86/kvm/mmu.c static void nonpaging_invlpg(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root) root 2641 arch/x86/kvm/mmu.c struct kvm_vcpu *vcpu, hpa_t root, root 2645 arch/x86/kvm/mmu.c iterator->shadow_addr = root; root 2658 arch/x86/kvm/mmu.c BUG_ON(root != vcpu->arch.mmu->root_hpa); root 3795 arch/x86/kvm/mmu.c hpa_t root = vcpu->arch.mmu->pae_root[i]; root 3797 arch/x86/kvm/mmu.c MMU_WARN_ON(VALID_PAGE(root)); root 3805 arch/x86/kvm/mmu.c root = __pa(sp->spt); root 3808 arch/x86/kvm/mmu.c vcpu->arch.mmu->pae_root[i] = root | PT_PRESENT_MASK; root 3836 arch/x86/kvm/mmu.c hpa_t root = vcpu->arch.mmu->root_hpa; root 3838 arch/x86/kvm/mmu.c MMU_WARN_ON(VALID_PAGE(root)); root 3847 arch/x86/kvm/mmu.c root = __pa(sp->spt); root 3850 arch/x86/kvm/mmu.c vcpu->arch.mmu->root_hpa = root; root 3864 arch/x86/kvm/mmu.c hpa_t root = vcpu->arch.mmu->pae_root[i]; root 3866 arch/x86/kvm/mmu.c MMU_WARN_ON(VALID_PAGE(root)); root 3884 arch/x86/kvm/mmu.c root = __pa(sp->spt); root 3888 arch/x86/kvm/mmu.c vcpu->arch.mmu->pae_root[i] = root | pm_mask; root 3945 arch/x86/kvm/mmu.c hpa_t root = vcpu->arch.mmu->root_hpa; root 3946 arch/x86/kvm/mmu.c sp = page_header(root); root 3976 arch/x86/kvm/mmu.c hpa_t root = vcpu->arch.mmu->pae_root[i]; root 3978 arch/x86/kvm/mmu.c if (root && VALID_PAGE(root)) { root 3979 arch/x86/kvm/mmu.c root &= PT64_BASE_ADDR_MASK; root 3980 arch/x86/kvm/mmu.c sp = page_header(root); root 4047 arch/x86/kvm/mmu.c int root, leaf; root 4056 arch/x86/kvm/mmu.c leaf = root = iterator.level; root 4076 arch/x86/kvm/mmu.c while (root > leaf) { root 4078 arch/x86/kvm/mmu.c sptes[root - 1], root); root 4079 arch/x86/kvm/mmu.c root--; root 4366 arch/x86/kvm/mmu.c struct kvm_mmu_root_info root; root 4369 arch/x86/kvm/mmu.c root.cr3 = mmu->root_cr3; root 4370 arch/x86/kvm/mmu.c root.hpa = mmu->root_hpa; root 4373 arch/x86/kvm/mmu.c swap(root, mmu->prev_roots[i]); root 4375 arch/x86/kvm/mmu.c if (new_cr3 == root.cr3 && VALID_PAGE(root.hpa) && root 4376 arch/x86/kvm/mmu.c page_header(root.hpa) != NULL && root 4377 arch/x86/kvm/mmu.c new_role.word == page_header(root.hpa)->role.word) root 4381 arch/x86/kvm/mmu.c mmu->root_hpa = root.hpa; root 4382 arch/x86/kvm/mmu.c mmu->root_cr3 = root.cr3; root 63 arch/x86/kvm/mmu_audit.c hpa_t root = vcpu->arch.mmu->root_hpa; root 65 arch/x86/kvm/mmu_audit.c sp = page_header(root); root 71 arch/x86/kvm/mmu_audit.c hpa_t root = vcpu->arch.mmu->pae_root[i]; root 73 arch/x86/kvm/mmu_audit.c if (root && VALID_PAGE(root)) { root 74 arch/x86/kvm/mmu_audit.c root &= PT64_BASE_ADDR_MASK; root 75 arch/x86/kvm/mmu_audit.c sp = page_header(root); root 2991 arch/x86/kvm/svm.c unsigned long root) root 2995 arch/x86/kvm/svm.c svm->vmcb->control.nested_cr3 = __sme_set(root); root 5873 arch/x86/kvm/svm.c static void svm_set_cr3(struct kvm_vcpu *vcpu, unsigned long root) root 5877 arch/x86/kvm/svm.c svm->vmcb->save.cr3 = __sme_set(root); root 5881 arch/x86/kvm/svm.c static void set_tdp_cr3(struct kvm_vcpu *vcpu, unsigned long root) root 5885 arch/x86/kvm/svm.c svm->vmcb->control.nested_cr3 = __sme_set(root); root 63 arch/x86/mm/pat_rbtree.c static struct memtype *memtype_rb_lowest_match(struct rb_root *root, root 66 arch/x86/mm/pat_rbtree.c struct rb_node *node = root->rb_node; root 93 arch/x86/mm/pat_rbtree.c static struct memtype *memtype_rb_match(struct rb_root *root, root 98 arch/x86/mm/pat_rbtree.c match = memtype_rb_lowest_match(root, start, end); root 120 arch/x86/mm/pat_rbtree.c static int memtype_rb_check_conflict(struct rb_root *root, root 166 arch/x86/mm/pat_rbtree.c static void memtype_rb_insert(struct rb_root *root, struct memtype *newdata) root 168 arch/x86/mm/pat_rbtree.c struct rb_node **node = &(root->rb_node); root 185 arch/x86/mm/pat_rbtree.c rb_insert_augmented(&newdata->rb, root, &memtype_rb_augment_cb); root 413 arch/x86/oprofile/nmi_int.c static int nmi_create_files(struct dentry *root) root 430 arch/x86/oprofile/nmi_int.c dir = oprofilefs_mkdir(root, buf); root 456 arch/x86/oprofile/op_model_amd.c static int (*create_arch_files)(struct dentry *root); root 458 arch/x86/oprofile/op_model_amd.c static int setup_ibs_files(struct dentry *root) root 465 arch/x86/oprofile/op_model_amd.c ret = create_arch_files(root); root 481 arch/x86/oprofile/op_model_amd.c dir = oprofilefs_mkdir(root, "ibs_fetch"); root 491 arch/x86/oprofile/op_model_amd.c dir = oprofilefs_mkdir(root, "ibs_op"); root 193 arch/x86/pci/acpi.c struct acpi_pci_root *root = ci->root; root 197 arch/x86/pci/acpi.c info->start_bus = (u8)root->secondary.start; root 198 arch/x86/pci/acpi.c info->end_bus = (u8)root->secondary.end; root 210 arch/x86/pci/acpi.c root->mcfg_addr); root 245 arch/x86/pci/acpi.c static int pci_acpi_root_get_node(struct acpi_pci_root *root) root 247 arch/x86/pci/acpi.c int busnum = root->secondary.start; root 248 arch/x86/pci/acpi.c struct acpi_device *device = root->device; root 297 arch/x86/pci/acpi.c int busnum = ci->root->secondary.start; root 326 arch/x86/pci/acpi.c struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) root 328 arch/x86/pci/acpi.c int domain = root->segment; root 329 arch/x86/pci/acpi.c int busnum = root->secondary.start; root 330 arch/x86/pci/acpi.c int node = pci_acpi_root_get_node(root); root 334 arch/x86/pci/acpi.c root->segment = domain = 0; root 352 arch/x86/pci/acpi.c .companion = root->device root 361 arch/x86/pci/acpi.c dev_err(&root->device->dev, root 367 arch/x86/pci/acpi.c info->sd.companion = root->device; root 368 arch/x86/pci/acpi.c bus = acpi_pci_root_create(root, &acpi_pci_root_ops, root 182 arch/x86/platform/olpc/olpc.c static bool __init check_ofw_architecture(struct device_node *root) root 187 arch/x86/platform/olpc/olpc.c olpc_arch = of_get_property(root, "architecture", &propsize); root 191 arch/x86/platform/olpc/olpc.c static u32 __init get_board_revision(struct device_node *root) root 196 arch/x86/platform/olpc/olpc.c rev = of_get_property(root, "board-revision-int", &propsize); root 205 arch/x86/platform/olpc/olpc.c struct device_node *root = of_find_node_by_path("/"); root 208 arch/x86/platform/olpc/olpc.c if (!root) root 211 arch/x86/platform/olpc/olpc.c success = check_ofw_architecture(root); root 213 arch/x86/platform/olpc/olpc.c olpc_platform_info.boardrev = get_board_revision(root); root 221 arch/x86/platform/olpc/olpc.c of_node_put(root); root 310 arch/x86/platform/olpc/olpc_dt.c phandle root; root 317 arch/x86/platform/olpc/olpc_dt.c root = olpc_dt_getsibling(0); root 318 arch/x86/platform/olpc/olpc_dt.c if (!root) { root 322 arch/x86/platform/olpc/olpc_dt.c of_pdt_build_devicetree(root, &prom_olpc_ops); root 551 block/bfq-iosched.c bfq_rq_pos_tree_lookup(struct bfq_data *bfqd, struct rb_root *root, root 559 block/bfq-iosched.c p = &root->rb_node; root 723 block/bfq-iosched.c struct rb_root_cached *root) root 726 block/bfq-iosched.c struct rb_node **new = &(root->rb_root.rb_node), *parent = NULL; root 782 block/bfq-iosched.c rb_insert_color_cached(&bfqq->weight_counter->weights_node, root, root 798 block/bfq-iosched.c struct rb_root_cached *root) root 807 block/bfq-iosched.c rb_erase_cached(&bfqq->weight_counter->weights_node, root); root 2414 block/bfq-iosched.c struct rb_root *root = &bfq_bfqq_to_bfqg(bfqq)->rq_pos_tree; root 2418 block/bfq-iosched.c if (RB_EMPTY_ROOT(root)) root 2425 block/bfq-iosched.c __bfqq = bfq_rq_pos_tree_lookup(bfqd, root, sector, &parent, NULL); root 943 block/bfq-iosched.h struct rb_root_cached *root); root 946 block/bfq-iosched.h struct rb_root_cached *root); root 333 block/bfq-wf2q.c static void bfq_extract(struct rb_root *root, struct bfq_entity *entity) root 336 block/bfq-wf2q.c rb_erase(&entity->rb_node, root); root 374 block/bfq-wf2q.c static void bfq_insert(struct rb_root *root, struct bfq_entity *entity) root 377 block/bfq-wf2q.c struct rb_node **node = &root->rb_node; root 391 block/bfq-wf2q.c rb_insert_color(&entity->rb_node, root); root 393 block/bfq-wf2q.c entity->tree = root; root 739 block/bfq-wf2q.c struct rb_root_cached *root; root 803 block/bfq-wf2q.c root = &bfqd->queue_weights_tree; root 804 block/bfq-wf2q.c __bfq_weights_tree_remove(bfqd, bfqq, root); root 813 block/bfq-wf2q.c bfq_weights_tree_add(bfqd, bfqq, root); root 255 block/elevator.c void elv_rb_add(struct rb_root *root, struct request *rq) root 257 block/elevator.c struct rb_node **p = &root->rb_node; root 272 block/elevator.c rb_insert_color(&rq->rb_node, root); root 276 block/elevator.c void elv_rb_del(struct rb_root *root, struct request *rq) root 279 block/elevator.c rb_erase(&rq->rb_node, root); root 284 block/elevator.c struct request *elv_rb_find(struct rb_root *root, sector_t sector) root 286 block/elevator.c struct rb_node *n = root->rb_node; root 90 block/mq-deadline.c struct rb_root *root = deadline_rb_root(dd, rq); root 92 block/mq-deadline.c elv_rb_add(root, rq); root 256 drivers/acpi/acpi_configfs.c struct config_group *root = &acpi_configfs.su_group; root 258 drivers/acpi/acpi_configfs.c config_group_init(root); root 264 drivers/acpi/acpi_configfs.c acpi_table_group = configfs_register_default_group(root, "table", root 267 drivers/acpi/acpica/acdebug.h void acpi_db_generate_statistics(union acpi_parse_object *root, u8 is_method); root 142 drivers/acpi/acpica/acparser.h union acpi_parse_object *root); root 195 drivers/acpi/acpica/acparser.h void acpi_ps_delete_parse_tree(union acpi_parse_object *root); root 251 drivers/acpi/acpica/dbstats.c op = acpi_ps_get_depth_next(root, op); root 18 drivers/acpi/acpica/dbutils.c acpi_status acpi_db_second_pass_parse(union acpi_parse_object *root); root 324 drivers/acpi/acpica/dbutils.c acpi_status acpi_db_second_pass_parse(union acpi_parse_object *root) root 326 drivers/acpi/acpica/dbutils.c union acpi_parse_object *op = root; root 394 drivers/acpi/acpica/dbutils.c op = acpi_ps_get_depth_next(root, op); root 39 drivers/acpi/internal.h void pci_ioapic_remove(struct acpi_pci_root *root); root 40 drivers/acpi/internal.h int acpi_ioapic_remove(struct acpi_pci_root *root); root 42 drivers/acpi/internal.h static inline void pci_ioapic_remove(struct acpi_pci_root *root) { return; } root 43 drivers/acpi/internal.h static inline int acpi_ioapic_remove(struct acpi_pci_root *root) { return 0; } root 212 drivers/acpi/ioapic.c void pci_ioapic_remove(struct acpi_pci_root *root) root 218 drivers/acpi/ioapic.c if (root->device->handle != ioapic->root_handle) root 229 drivers/acpi/ioapic.c int acpi_ioapic_remove(struct acpi_pci_root *root) root 236 drivers/acpi/ioapic.c if (root->device->handle != ioapic->root_handle) root 166 drivers/acpi/pci_mcfg.c static void pci_mcfg_apply_quirks(struct acpi_pci_root *root, root 171 drivers/acpi/pci_mcfg.c u16 segment = root->segment; root 172 drivers/acpi/pci_mcfg.c struct resource *bus_range = &root->secondary; root 182 drivers/acpi/pci_mcfg.c dev_info(&root->device->dev, "MCFG quirk: ECAM at %pR for %pR with %ps\n", root 193 drivers/acpi/pci_mcfg.c int pci_mcfg_lookup(struct acpi_pci_root *root, struct resource *cfgres, root 197 drivers/acpi/pci_mcfg.c struct resource *bus_res = &root->secondary; root 198 drivers/acpi/pci_mcfg.c u16 seg = root->segment; root 203 drivers/acpi/pci_mcfg.c if (root->mcfg_addr) root 212 drivers/acpi/pci_mcfg.c root->mcfg_addr = e->addr; root 219 drivers/acpi/pci_mcfg.c if (root->mcfg_addr) { root 220 drivers/acpi/pci_mcfg.c res.start = root->mcfg_addr + (bus_res->start << 20); root 231 drivers/acpi/pci_mcfg.c pci_mcfg_apply_quirks(root, &res, &ops); root 146 drivers/acpi/pci_root.c static void decode_osc_bits(struct acpi_pci_root *root, char *msg, u32 word, root 159 drivers/acpi/pci_root.c dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf); root 162 drivers/acpi/pci_root.c static void decode_osc_support(struct acpi_pci_root *root, char *msg, u32 word) root 164 drivers/acpi/pci_root.c decode_osc_bits(root, msg, word, pci_osc_support_bit, root 168 drivers/acpi/pci_root.c static void decode_osc_control(struct acpi_pci_root *root, char *msg, u32 word) root 170 drivers/acpi/pci_root.c decode_osc_bits(root, msg, word, pci_osc_control_bit, root 195 drivers/acpi/pci_root.c static acpi_status acpi_pci_query_osc(struct acpi_pci_root *root, root 203 drivers/acpi/pci_root.c support |= root->osc_support_set; root 209 drivers/acpi/pci_root.c capbuf[OSC_CONTROL_DWORD] = *control | root->osc_control_set; root 212 drivers/acpi/pci_root.c capbuf[OSC_CONTROL_DWORD] = root->osc_control_set; root 215 drivers/acpi/pci_root.c status = acpi_pci_run_osc(root->device->handle, capbuf, &result); root 217 drivers/acpi/pci_root.c root->osc_support_set = support; root 224 drivers/acpi/pci_root.c static acpi_status acpi_pci_osc_support(struct acpi_pci_root *root, u32 flags) root 229 drivers/acpi/pci_root.c status = acpi_pci_query_osc(root, flags, NULL); root 236 drivers/acpi/pci_root.c struct acpi_pci_root *root; root 243 drivers/acpi/pci_root.c root = acpi_driver_data(device); root 245 drivers/acpi/pci_root.c return root; root 275 drivers/acpi/pci_root.c struct acpi_pci_root *root; root 296 drivers/acpi/pci_root.c root = acpi_pci_find_root(phandle); root 297 drivers/acpi/pci_root.c if (!root) root 300 drivers/acpi/pci_root.c pbus = root->bus; root 358 drivers/acpi/pci_root.c struct acpi_pci_root *root; root 369 drivers/acpi/pci_root.c root = acpi_pci_find_root(handle); root 370 drivers/acpi/pci_root.c if (!root) root 375 drivers/acpi/pci_root.c *mask = ctrl | root->osc_control_set; root 377 drivers/acpi/pci_root.c if ((root->osc_control_set & ctrl) == ctrl) root 382 drivers/acpi/pci_root.c status = acpi_pci_query_osc(root, root->osc_support_set, mask); root 387 drivers/acpi/pci_root.c decode_osc_control(root, "platform does not support", root 393 drivers/acpi/pci_root.c decode_osc_control(root, "not requesting control; platform does not support", root 400 drivers/acpi/pci_root.c capbuf[OSC_SUPPORT_DWORD] = root->osc_support_set; root 404 drivers/acpi/pci_root.c root->osc_control_set = *mask; root 411 drivers/acpi/pci_root.c static void negotiate_os_control(struct acpi_pci_root *root, int *no_aspm, root 416 drivers/acpi/pci_root.c struct acpi_device *device = root->device; root 425 drivers/acpi/pci_root.c root->osc_control_set = ~OSC_PCI_EXPRESS_PME_CONTROL; root 426 drivers/acpi/pci_root.c decode_osc_control(root, "OS assumes control of", root 427 drivers/acpi/pci_root.c root->osc_control_set); root 444 drivers/acpi/pci_root.c decode_osc_support(root, "OS supports", support); root 445 drivers/acpi/pci_root.c status = acpi_pci_osc_support(root, support); root 465 drivers/acpi/pci_root.c decode_osc_support(root, "not requesting OS control; OS requires", root 494 drivers/acpi/pci_root.c decode_osc_control(root, "OS now controls", control); root 505 drivers/acpi/pci_root.c decode_osc_control(root, "OS requested", requested); root 506 drivers/acpi/pci_root.c decode_osc_control(root, "platform willing to grant", control); root 527 drivers/acpi/pci_root.c struct acpi_pci_root *root; root 533 drivers/acpi/pci_root.c root = kzalloc(sizeof(struct acpi_pci_root), GFP_KERNEL); root 534 drivers/acpi/pci_root.c if (!root) root 547 drivers/acpi/pci_root.c root->secondary.flags = IORESOURCE_BUS; root 548 drivers/acpi/pci_root.c status = try_get_root_bridge_busnr(handle, &root->secondary); root 556 drivers/acpi/pci_root.c root->secondary.end = 0xFF; root 562 drivers/acpi/pci_root.c root->secondary.start = bus; root 564 drivers/acpi/pci_root.c root->secondary.start = 0; root 572 drivers/acpi/pci_root.c root->device = device; root 573 drivers/acpi/pci_root.c root->segment = segment & 0xFFFF; root 576 drivers/acpi/pci_root.c device->driver_data = root; root 585 drivers/acpi/pci_root.c root->segment, &root->secondary); root 587 drivers/acpi/pci_root.c root->mcfg_addr = acpi_pci_root_get_mcfg_addr(handle); root 590 drivers/acpi/pci_root.c negotiate_os_control(root, &no_aspm, is_pcie); root 603 drivers/acpi/pci_root.c root->bus = pci_acpi_scan_root(root); root 604 drivers/acpi/pci_root.c if (!root->bus) { root 607 drivers/acpi/pci_root.c root->segment, (unsigned int)root->secondary.start); root 617 drivers/acpi/pci_root.c device_set_wakeup_capable(root->bus->bridge, device->wakeup.flags.valid); root 620 drivers/acpi/pci_root.c pcibios_resource_survey_bus(root->bus); root 621 drivers/acpi/pci_root.c pci_assign_unassigned_root_bus_resources(root->bus); root 632 drivers/acpi/pci_root.c acpi_ioapic_add(root->device->handle); root 636 drivers/acpi/pci_root.c pci_bus_add_devices(root->bus); root 644 drivers/acpi/pci_root.c kfree(root); root 650 drivers/acpi/pci_root.c struct acpi_pci_root *root = acpi_driver_data(device); root 654 drivers/acpi/pci_root.c pci_stop_root_bus(root->bus); root 656 drivers/acpi/pci_root.c pci_ioapic_remove(root); root 657 drivers/acpi/pci_root.c device_set_wakeup_capable(root->bus->bridge, false); root 660 drivers/acpi/pci_root.c pci_remove_root_bus(root->bus); root 661 drivers/acpi/pci_root.c WARN_ON(acpi_ioapic_remove(root)); root 667 drivers/acpi/pci_root.c kfree(root); root 680 drivers/acpi/pci_root.c struct resource *res1, *res2, *root = NULL; root 684 drivers/acpi/pci_root.c root = (type & IORESOURCE_MEM) ? &iomem_resource : &ioport_resource; root 696 drivers/acpi/pci_root.c end = min(res1->end, root->end); root 810 drivers/acpi/pci_root.c struct resource *res, *conflict, *root = NULL; root 815 drivers/acpi/pci_root.c root = &iomem_resource; root 817 drivers/acpi/pci_root.c root = &ioport_resource; root 825 drivers/acpi/pci_root.c if (res == root) root 828 drivers/acpi/pci_root.c conflict = insert_resource_conflict(root, res); root 873 drivers/acpi/pci_root.c struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, root 878 drivers/acpi/pci_root.c int ret, busnum = root->secondary.start; root 879 drivers/acpi/pci_root.c struct acpi_device *device = root->device; root 885 drivers/acpi/pci_root.c info->root = root; root 890 drivers/acpi/pci_root.c root->segment, busnum); root 902 drivers/acpi/pci_root.c pci_add_resource(&info->resources, &root->secondary); root 909 drivers/acpi/pci_root.c if (!(root->osc_control_set & OSC_PCI_EXPRESS_NATIVE_HP_CONTROL)) root 911 drivers/acpi/pci_root.c if (!(root->osc_control_set & OSC_PCI_SHPC_NATIVE_HP_CONTROL)) root 913 drivers/acpi/pci_root.c if (!(root->osc_control_set & OSC_PCI_EXPRESS_AER_CONTROL)) root 915 drivers/acpi/pci_root.c if (!(root->osc_control_set & OSC_PCI_EXPRESS_PME_CONTROL)) root 917 drivers/acpi/pci_root.c if (!(root->osc_control_set & OSC_PCI_EXPRESS_LTR_CONTROL)) root 104 drivers/android/binderfs.c struct dentry *dentry, *root; root 173 drivers/android/binderfs.c root = sb->s_root; root 174 drivers/android/binderfs.c inode_lock(d_inode(root)); root 177 drivers/android/binderfs.c dentry = lookup_one_len(name, root, name_len); root 179 drivers/android/binderfs.c inode_unlock(d_inode(root)); root 187 drivers/android/binderfs.c inode_unlock(d_inode(root)); root 194 drivers/android/binderfs.c fsnotify_create(root->d_inode, dentry); root 195 drivers/android/binderfs.c inode_unlock(d_inode(root)); root 340 drivers/android/binderfs.c static int binderfs_show_mount_opts(struct seq_file *seq, struct dentry *root) root 344 drivers/android/binderfs.c info = root->d_sb->s_fs_info; root 408 drivers/android/binderfs.c struct dentry *root = sb->s_root; root 455 drivers/android/binderfs.c dentry = d_alloc_name(root, "binder-control"); root 29 drivers/ata/libata-acpi.c #define SATA_ADR(root, pmp) (((root) << 16) | (pmp)) root 484 drivers/ata/pata_macio.c struct device_node *root = of_find_node_by_path("/"); root 485 drivers/ata/pata_macio.c const char *model = of_get_property(root, "model", NULL); root 487 drivers/ata/pata_macio.c of_node_put(root); root 2753 drivers/base/core.c struct root_device *root; root 2756 drivers/base/core.c root = kzalloc(sizeof(struct root_device), GFP_KERNEL); root 2757 drivers/base/core.c if (!root) root 2760 drivers/base/core.c err = dev_set_name(&root->dev, "%s", name); root 2762 drivers/base/core.c kfree(root); root 2766 drivers/base/core.c root->dev.release = root_device_release; root 2768 drivers/base/core.c err = device_register(&root->dev); root 2770 drivers/base/core.c put_device(&root->dev); root 2778 drivers/base/core.c err = sysfs_create_link(&root->dev.kobj, &mk->kobj, "module"); root 2780 drivers/base/core.c device_unregister(&root->dev); root 2783 drivers/base/core.c root->owner = owner; root 2787 drivers/base/core.c return &root->dev; root 2800 drivers/base/core.c struct root_device *root = to_root_device(dev); root 2802 drivers/base/core.c if (root->owner) root 2803 drivers/base/core.c sysfs_remove_link(&root->dev.kobj, "module"); root 35 drivers/base/regmap/regcache-rbtree.c struct rb_root root; root 78 drivers/base/regmap/regcache-rbtree.c node = rbtree_ctx->root.rb_node; root 96 drivers/base/regmap/regcache-rbtree.c static int regcache_rbtree_insert(struct regmap *map, struct rb_root *root, root 105 drivers/base/regmap/regcache-rbtree.c new = &root->rb_node; root 126 drivers/base/regmap/regcache-rbtree.c rb_insert_color(&rbnode->node, root); root 148 drivers/base/regmap/regcache-rbtree.c for (node = rb_first(&rbtree_ctx->root); node != NULL; root 195 drivers/base/regmap/regcache-rbtree.c rbtree_ctx->root = RB_ROOT; root 225 drivers/base/regmap/regcache-rbtree.c next = rb_first(&rbtree_ctx->root); root 229 drivers/base/regmap/regcache-rbtree.c rb_erase(&rbtree_node->node, &rbtree_ctx->root); root 403 drivers/base/regmap/regcache-rbtree.c node = rbtree_ctx->root.rb_node; root 458 drivers/base/regmap/regcache-rbtree.c regcache_rbtree_insert(map, &rbtree_ctx->root, rbnode); root 476 drivers/base/regmap/regcache-rbtree.c for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { root 516 drivers/base/regmap/regcache-rbtree.c for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { root 534 drivers/base/regmap/regmap.c struct rb_root *root = &map->range_tree; root 535 drivers/base/regmap/regmap.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 551 drivers/base/regmap/regmap.c rb_insert_color(&data->node, root); root 25 drivers/block/drbd/drbd_interval.c drbd_insert_interval(struct rb_root *root, struct drbd_interval *this) root 27 drivers/block/drbd/drbd_interval.c struct rb_node **new = &root->rb_node, *parent = NULL; root 53 drivers/block/drbd/drbd_interval.c rb_insert_augmented(&this->rb, root, &augment_callbacks); root 68 drivers/block/drbd/drbd_interval.c drbd_contains_interval(struct rb_root *root, sector_t sector, root 71 drivers/block/drbd/drbd_interval.c struct rb_node *node = root->rb_node; root 95 drivers/block/drbd/drbd_interval.c drbd_remove_interval(struct rb_root *root, struct drbd_interval *this) root 97 drivers/block/drbd/drbd_interval.c rb_erase_augmented(&this->rb, root, &augment_callbacks); root 112 drivers/block/drbd/drbd_interval.c drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size) root 114 drivers/block/drbd/drbd_interval.c struct rb_node *node = root->rb_node; root 38 drivers/block/drbd/drbd_interval.h #define drbd_for_each_overlap(i, root, sector, size) \ root 39 drivers/block/drbd/drbd_interval.h for (i = drbd_find_overlap(root, sector, size); \ root 2126 drivers/block/drbd/drbd_receiver.c find_request(struct drbd_device *device, struct rb_root *root, u64 id, root 2133 drivers/block/drbd/drbd_receiver.c if (drbd_contains_interval(root, sector, &req->i) && req->i.local) root 5717 drivers/block/drbd/drbd_receiver.c struct rb_root *root, const char *func, root 5724 drivers/block/drbd/drbd_receiver.c req = find_request(device, root, id, sector, missing_ok, func); root 78 drivers/block/drbd/drbd_req.c static void drbd_remove_request_interval(struct rb_root *root, root 84 drivers/block/drbd/drbd_req.c drbd_remove_interval(root, i); root 119 drivers/block/drbd/drbd_req.c struct rb_root *root; root 122 drivers/block/drbd/drbd_req.c root = &device->write_requests; root 124 drivers/block/drbd/drbd_req.c root = &device->read_requests; root 125 drivers/block/drbd/drbd_req.c drbd_remove_request_interval(root, req); root 695 drivers/block/null_blk_main.c struct radix_tree_root *root; root 697 drivers/block/null_blk_main.c root = is_cache ? &nullb->dev->cache : &nullb->dev->data; root 701 drivers/block/null_blk_main.c t_page = radix_tree_lookup(root, idx); root 706 drivers/block/null_blk_main.c ret = radix_tree_delete_item(root, idx, t_page); root 718 drivers/block/null_blk_main.c struct radix_tree_root *root; root 720 drivers/block/null_blk_main.c root = is_cache ? &nullb->dev->cache : &nullb->dev->data; root 722 drivers/block/null_blk_main.c if (radix_tree_insert(root, idx, t_page)) { root 724 drivers/block/null_blk_main.c t_page = radix_tree_lookup(root, idx); root 737 drivers/block/null_blk_main.c struct radix_tree_root *root; root 739 drivers/block/null_blk_main.c root = is_cache ? &dev->cache : &dev->data; root 744 drivers/block/null_blk_main.c nr_pages = radix_tree_gang_lookup(root, root 749 drivers/block/null_blk_main.c ret = radix_tree_delete_item(root, pos, t_pages[i]); root 767 drivers/block/null_blk_main.c struct radix_tree_root *root; root 772 drivers/block/null_blk_main.c root = is_cache ? &nullb->dev->cache : &nullb->dev->data; root 773 drivers/block/null_blk_main.c t_page = radix_tree_lookup(root, idx); root 304 drivers/block/xen-blkback/blkback.c static void free_persistent_gnts(struct xen_blkif_ring *ring, struct rb_root *root, root 318 drivers/block/xen-blkback/blkback.c foreach_grant_safe(persistent_gnt, n, root, node) { root 339 drivers/block/xen-blkback/blkback.c rb_erase(&persistent_gnt->node, root); root 393 drivers/block/xen-blkback/blkback.c struct rb_root *root; root 425 drivers/block/xen-blkback/blkback.c root = &ring->persistent_gnts; root 427 drivers/block/xen-blkback/blkback.c foreach_grant_safe(persistent_gnt, n, root, node) { root 438 drivers/block/xen-blkback/blkback.c rb_erase(&persistent_gnt->node, root); root 558 drivers/bus/moxtet.c struct dentry *root, *entry; root 560 drivers/bus/moxtet.c root = debugfs_create_dir("moxtet", NULL); root 562 drivers/bus/moxtet.c if (IS_ERR(root)) root 563 drivers/bus/moxtet.c return PTR_ERR(root); root 565 drivers/bus/moxtet.c entry = debugfs_create_file_unsafe("input", 0444, root, moxtet, root 570 drivers/bus/moxtet.c entry = debugfs_create_file_unsafe("output", 0644, root, moxtet, root 575 drivers/bus/moxtet.c moxtet->debugfs_root = root; root 579 drivers/bus/moxtet.c debugfs_remove_recursive(root); root 29 drivers/clk/bcm/clk-bcm21664.c BCM21664_CCU_COMMON(root, ROOT), root 33 drivers/clk/bcm/clk-bcm21664.c KONA_CLK(root, frac_1m, peri), root 31 drivers/clk/bcm/clk-bcm281xx.c BCM281XX_CCU_COMMON(root, ROOT), root 34 drivers/clk/bcm/clk-bcm281xx.c KONA_CLK(root, frac_1m, peri), root 399 drivers/clk/clk-cdce925.c struct clk *root = clk_get_parent(pll); root 400 drivers/clk/clk-cdce925.c unsigned long root_rate = clk_get_rate(root); root 3145 drivers/clk/clk.c struct dentry *root; root 3150 drivers/clk/clk.c root = debugfs_create_dir(core->name, pdentry); root 3151 drivers/clk/clk.c core->dentry = root; root 3153 drivers/clk/clk.c debugfs_create_ulong("clk_rate", 0444, root, &core->rate); root 3154 drivers/clk/clk.c debugfs_create_file("clk_min_rate", 0444, root, core, &clk_min_rate_fops); root 3155 drivers/clk/clk.c debugfs_create_file("clk_max_rate", 0444, root, core, &clk_max_rate_fops); root 3156 drivers/clk/clk.c debugfs_create_ulong("clk_accuracy", 0444, root, &core->accuracy); root 3157 drivers/clk/clk.c debugfs_create_u32("clk_phase", 0444, root, &core->phase); root 3158 drivers/clk/clk.c debugfs_create_file("clk_flags", 0444, root, core, &clk_flags_fops); root 3159 drivers/clk/clk.c debugfs_create_u32("clk_prepare_count", 0444, root, &core->prepare_count); root 3160 drivers/clk/clk.c debugfs_create_u32("clk_enable_count", 0444, root, &core->enable_count); root 3161 drivers/clk/clk.c debugfs_create_u32("clk_protect_count", 0444, root, &core->protect_count); root 3162 drivers/clk/clk.c debugfs_create_u32("clk_notifier_count", 0444, root, &core->notifier_count); root 3163 drivers/clk/clk.c debugfs_create_file("clk_duty_cycle", 0444, root, core, root 3167 drivers/clk/clk.c debugfs_create_file("clk_parent", 0444, root, core, root 3171 drivers/clk/clk.c debugfs_create_file("clk_possible_parents", 0444, root, core, root 3866 drivers/clk/clk.c static void clk_core_evict_parent_cache_subtree(struct clk_core *root, root 3872 drivers/clk/clk.c for (i = 0; i < root->num_parents; i++) root 3873 drivers/clk/clk.c if (root->parents[i].core == target) root 3874 drivers/clk/clk.c root->parents[i].core = NULL; root 3876 drivers/clk/clk.c hlist_for_each_entry(child, &root->children, child_node) root 3884 drivers/clk/clk.c struct clk_core *root; root 3889 drivers/clk/clk.c hlist_for_each_entry(root, *lists, child_node) root 3890 drivers/clk/clk.c clk_core_evict_parent_cache_subtree(root, core); root 1364 drivers/clk/tegra/clk-dfll.c struct dentry *root; root 1369 drivers/clk/tegra/clk-dfll.c root = debugfs_create_dir("tegra_dfll_fcpu", NULL); root 1370 drivers/clk/tegra/clk-dfll.c td->debugfs_dir = root; root 1372 drivers/clk/tegra/clk-dfll.c debugfs_create_file_unsafe("enable", 0644, root, td, root 1374 drivers/clk/tegra/clk-dfll.c debugfs_create_file_unsafe("lock", 0444, root, td, &lock_fops); root 1375 drivers/clk/tegra/clk-dfll.c debugfs_create_file_unsafe("rate", 0444, root, td, &rate_fops); root 1376 drivers/clk/tegra/clk-dfll.c debugfs_create_file("registers", 0444, root, td, &attr_registers_fops); root 402 drivers/cpufreq/pmac64-cpufreq.c struct device_node *root; root 404 drivers/cpufreq/pmac64-cpufreq.c root = of_find_node_by_path("/"); root 405 drivers/cpufreq/pmac64-cpufreq.c if (root == NULL) { root 409 drivers/cpufreq/pmac64-cpufreq.c pfunc_set_vdnap0 = pmf_find_function(root, "set-vdnap0"); root 411 drivers/cpufreq/pmac64-cpufreq.c pmf_find_function(root, "slewing-done"); root 412 drivers/cpufreq/pmac64-cpufreq.c of_node_put(root); root 166 drivers/cpuidle/cpuidle-big_little.c struct device_node *root = of_find_node_by_path("/"); root 169 drivers/cpuidle/cpuidle-big_little.c if (!root) root 175 drivers/cpuidle/cpuidle-big_little.c match_id = of_match_node(compatible_machine_match, root); root 177 drivers/cpuidle/cpuidle-big_little.c of_node_put(root); root 35 drivers/crypto/nx/nx_debugfs.c struct dentry *root; root 37 drivers/crypto/nx/nx_debugfs.c root = debugfs_create_dir(NX_NAME, NULL); root 38 drivers/crypto/nx/nx_debugfs.c drv->dfs_root = root; root 41 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.aes_ops); root 43 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.sha256_ops); root 45 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.sha512_ops); root 47 drivers/crypto/nx/nx_debugfs.c root, (u64 *)&drv->stats.aes_bytes); root 49 drivers/crypto/nx/nx_debugfs.c root, (u64 *)&drv->stats.sha256_bytes); root 51 drivers/crypto/nx/nx_debugfs.c root, (u64 *)&drv->stats.sha512_bytes); root 53 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.errors); root 55 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.last_error); root 57 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.last_error_pid); root 166 drivers/dma/bcm-sba-raid.c struct dentry *root; root 1717 drivers/dma/bcm-sba-raid.c sba->root = debugfs_create_dir(dev_name(sba->dev), NULL); root 1720 drivers/dma/bcm-sba-raid.c debugfs_create_devm_seqfile(sba->dev, "stats", sba->root, root 1738 drivers/dma/bcm-sba-raid.c debugfs_remove_recursive(sba->root); root 1751 drivers/dma/bcm-sba-raid.c debugfs_remove_recursive(sba->root); root 43 drivers/eisa/eisa-bus.c struct eisa_root_device *root, root 49 drivers/eisa/eisa-bus.c x = (root->bus_nr << 8) | edev->slot; root 187 drivers/eisa/eisa-bus.c static int __init eisa_init_device(struct eisa_root_device *root, root 195 drivers/eisa/eisa-bus.c sig_addr = SLOT_ADDRESS(root, slot) + EISA_VENDOR_ID_OFFSET; root 203 drivers/eisa/eisa-bus.c edev->state = inb(SLOT_ADDRESS(root, slot) + EISA_CONFIG_OFFSET) root 205 drivers/eisa/eisa-bus.c edev->base_addr = SLOT_ADDRESS(root, slot); root 206 drivers/eisa/eisa-bus.c edev->dma_mask = root->dma_mask; /* Default DMA mask */ root 208 drivers/eisa/eisa-bus.c edev->dev.parent = root->dev; root 212 drivers/eisa/eisa-bus.c dev_set_name(&edev->dev, "%02X:%02X", root->bus_nr, slot); root 222 drivers/eisa/eisa-bus.c if (is_forced_dev(enable_dev, enable_dev_count, root, edev)) root 225 drivers/eisa/eisa-bus.c if (is_forced_dev(disable_dev, disable_dev_count, root, edev)) root 260 drivers/eisa/eisa-bus.c static int __init eisa_request_resources(struct eisa_root_device *root, root 280 drivers/eisa/eisa-bus.c edev->res[i].start = SLOT_ADDRESS(root, slot) root 286 drivers/eisa/eisa-bus.c edev->res[i].start = SLOT_ADDRESS(root, slot) root 292 drivers/eisa/eisa-bus.c if (request_resource(root->res, &edev->res[i])) root 314 drivers/eisa/eisa-bus.c static int __init eisa_probe(struct eisa_root_device *root) root 320 drivers/eisa/eisa-bus.c dev_info(root->dev, "Probing EISA bus %d\n", root->bus_nr); root 329 drivers/eisa/eisa-bus.c if (eisa_request_resources(root, edev, 0)) { root 330 drivers/eisa/eisa-bus.c dev_warn(root->dev, root 333 drivers/eisa/eisa-bus.c if (!root->force_probe) root 338 drivers/eisa/eisa-bus.c if (eisa_init_device(root, edev, 0)) { root 341 drivers/eisa/eisa-bus.c if (!root->force_probe) root 357 drivers/eisa/eisa-bus.c for (c = 0, i = 1; i <= root->slots; i++) { root 360 drivers/eisa/eisa-bus.c dev_err(root->dev, "EISA: Out of memory for slot %d\n", root 365 drivers/eisa/eisa-bus.c if (eisa_request_resources(root, edev, i)) { root 366 drivers/eisa/eisa-bus.c dev_warn(root->dev, root 373 drivers/eisa/eisa-bus.c if (eisa_init_device(root, edev, i)) { root 401 drivers/eisa/eisa-bus.c dev_info(root->dev, "EISA: Detected %d card%s\n", c, c == 1 ? "" : "s"); root 414 drivers/eisa/eisa-bus.c int __init eisa_root_register(struct eisa_root_device *root) root 423 drivers/eisa/eisa-bus.c root->eisa_root_res.name = eisa_root_res.name; root 424 drivers/eisa/eisa-bus.c root->eisa_root_res.start = root->res->start; root 425 drivers/eisa/eisa-bus.c root->eisa_root_res.end = root->res->end; root 426 drivers/eisa/eisa-bus.c root->eisa_root_res.flags = IORESOURCE_BUSY; root 428 drivers/eisa/eisa-bus.c err = request_resource(&eisa_root_res, &root->eisa_root_res); root 432 drivers/eisa/eisa-bus.c root->bus_nr = eisa_bus_count++; root 434 drivers/eisa/eisa-bus.c err = eisa_probe(root); root 436 drivers/eisa/eisa-bus.c release_resource(&root->eisa_root_res); root 312 drivers/firewire/core-topology.c static void for_each_fw_node(struct fw_card *card, struct fw_node *root, root 321 drivers/firewire/core-topology.c fw_node_get(root); root 322 drivers/firewire/core-topology.c list_add_tail(&root->link, &list); root 409 drivers/firewire/core-topology.c static void update_tree(struct fw_card *card, struct fw_node *root) root 418 drivers/firewire/core-topology.c list_add_tail(&root->link, &list1); root 354 drivers/firmware/tegra/bpmp-debugfs.c size_t bufsize, struct dentry *root) root 359 drivers/firmware/tegra/bpmp-debugfs.c bpmp->debugfs_mirror = debugfs_create_dir("debug", root); root 380 drivers/firmware/tegra/bpmp-debugfs.c struct dentry *root; root 385 drivers/firmware/tegra/bpmp-debugfs.c root = debugfs_create_dir("bpmp", NULL); root 386 drivers/firmware/tegra/bpmp-debugfs.c if (!root) root 400 drivers/firmware/tegra/bpmp-debugfs.c ret = create_debugfs_mirror(bpmp, virt, nbytes, root); root 405 drivers/firmware/tegra/bpmp-debugfs.c debugfs_remove(root); root 312 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct amdgpu_bo *pd = vm->root.base.bo; root 333 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c vm->pd_phys_addr = amdgpu_gmc_pd_addr(vm->root.base.bo); root 348 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct amdgpu_bo *pd = vm->root.base.bo; root 812 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct amdgpu_bo *pd = peer_vm->root.base.bo; root 878 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = amdgpu_bo_reserve(vm->root.base.bo, true); root 886 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = amdgpu_bo_sync_wait(vm->root.base.bo, root 890 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = dma_resv_reserve_shared(vm->root.base.bo->tbo.base.resv, 1); root 893 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_bo_fence(vm->root.base.bo, root 895 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_bo_unreserve(vm->root.base.bo); root 909 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_bo_unreserve(vm->root.base.bo); root 995 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct amdgpu_bo *pd = vm->root.base.bo; root 1062 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct amdgpu_bo *pd = avm->root.base.bo; root 2085 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct amdgpu_bo *bo = peer_vm->root.base.bo; root 922 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c p->job->vm_pd_addr = amdgpu_gmc_pd_addr(vm->root.base.bo); root 828 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct dentry *ent, *root = minor->debugfs_root; root 833 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c S_IFREG | S_IRUGO, root, root 756 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c struct pci_bus *root; root 767 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c root = adev->pdev->bus; root 768 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c while (root->parent) root 769 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c root = root->parent; root 771 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c pci_bus_for_each_resource(root, res, i) { root 137 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c abo->tbo.base.resv != vm->root.base.bo->tbo.base.resv) root 251 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c r = amdgpu_bo_reserve(vm->root.base.bo, false); root 255 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c resv = vm->root.base.bo->tbo.base.resv; root 265 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c abo->parent = amdgpu_bo_ref(vm->root.base.bo); root 267 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_bo_unreserve(vm->root.base.bo); root 716 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_ttm_adev(base->vm->root.base.bo->tbo.bdev))) { root 1073 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c pd = amdgpu_bo_ref(fpriv->vm.root.base.bo); root 493 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c struct dentry *ent, *root = minor->debugfs_root; root 499 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c S_IFREG | S_IRUGO, root, root 2437 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct dentry *ent, *root = minor->debugfs_root; root 2442 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c S_IFREG | S_IRUGO, root, root 305 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (bo->tbo.base.resv != vm->root.base.bo->tbo.base.resv) root 370 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c cursor->entry = &vm->root; root 562 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c entry->tv.bo = &vm->root.base.bo->tbo; root 586 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (abo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) root 737 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if ((pt - vm->root.entries) >= ats_entries) { root 831 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c else if (!vm->root.base.bo || vm->root.base.bo->shadow) root 834 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (vm->root.base.bo) root 835 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c bp->resv = vm->root.base.bo->tbo.base.resv; root 1719 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (clear || (bo && bo->tbo.base.resv == vm->root.base.bo->tbo.base.resv)) root 1750 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (bo && bo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) { root 1886 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct dma_resv *resv = vm->root.base.bo->tbo.base.resv; root 2091 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (bo && bo->tbo.base.resv == vm->root.base.bo->tbo.base.resv && root 2451 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (bo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) root 2515 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (evicted && bo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) { root 2526 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c else if (bo->tbo.base.resv == vm->root.base.bo->tbo.base.resv) root 2656 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c return dma_resv_wait_timeout_rcu(vm->root.base.bo->tbo.base.resv, root 2677 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_bo *root; root 2723 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = amdgpu_bo_create(adev, &bp, &root); root 2727 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = amdgpu_bo_reserve(root, true); root 2731 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = dma_resv_reserve_shared(root->tbo.base.resv, 1); root 2735 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vm_bo_base_init(&vm->root.base, vm, root); root 2737 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = amdgpu_vm_clear_bo(adev, vm, root); root 2741 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unreserve(vm->root.base.bo); root 2761 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unreserve(vm->root.base.bo); root 2764 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unref(&vm->root.base.bo->shadow); root 2765 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unref(&vm->root.base.bo); root 2766 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c vm->root.base.bo = NULL; root 2790 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c enum amdgpu_vm_level root = adev->vm_manager.root_level; root 2791 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c unsigned int entries = amdgpu_vm_num_entries(adev, root); root 2794 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (!(vm->root.entries)) root 2798 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (vm->root.entries[i].base.bo) root 2830 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = amdgpu_bo_reserve(vm->root.base.bo, true); root 2857 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = amdgpu_vm_clear_bo(adev, vm, vm->root.base.bo); root 2892 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unref(&vm->root.base.bo->shadow); root 2908 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unreserve(vm->root.base.bo); root 2945 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_bo *root; root 2981 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c root = amdgpu_bo_ref(vm->root.base.bo); root 2982 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = amdgpu_bo_reserve(root, true); root 2987 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unreserve(root); root 2989 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_bo_unref(&root); root 2990 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c WARN_ON(vm->root.base.bo); root 254 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h struct amdgpu_vm_pt root; root 55 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c r = amdgpu_bo_sync_wait(p->vm->root.base.bo, owner, true); root 63 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c struct amdgpu_bo *root = p->vm->root.base.bo; root 75 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c r = amdgpu_sync_resv(p->adev, &p->job->sync, root->tbo.base.resv, root 96 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c struct amdgpu_bo *root = p->vm->root.base.bo; root 112 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c amdgpu_bo_fence(root, f, true); root 1386 drivers/gpu/drm/amd/amdgpu/cik.c struct pci_dev *root = adev->pdev->bus->self; root 1422 drivers/gpu/drm/amd/amdgpu/cik.c bridge_pos = pci_pcie_cap(root); root 1437 drivers/gpu/drm/amd/amdgpu/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 1441 drivers/gpu/drm/amd/amdgpu/cik.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 1472 drivers/gpu/drm/amd/amdgpu/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 1475 drivers/gpu/drm/amd/amdgpu/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &bridge_cfg2); root 1489 drivers/gpu/drm/amd/amdgpu/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); root 1492 drivers/gpu/drm/amd/amdgpu/cik.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 1500 drivers/gpu/drm/amd/amdgpu/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &tmp16); root 1503 drivers/gpu/drm/amd/amdgpu/cik.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, tmp16); root 1633 drivers/gpu/drm/amd/amdgpu/cik.c struct pci_dev *root = adev->pdev->bus->self; root 1637 drivers/gpu/drm/amd/amdgpu/cik.c pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); root 1635 drivers/gpu/drm/amd/amdgpu/si.c struct pci_dev *root = adev->pdev->bus->self; root 1671 drivers/gpu/drm/amd/amdgpu/si.c bridge_pos = pci_pcie_cap(root); root 1685 drivers/gpu/drm/amd/amdgpu/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 1689 drivers/gpu/drm/amd/amdgpu/si.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 1713 drivers/gpu/drm/amd/amdgpu/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 1716 drivers/gpu/drm/amd/amdgpu/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &bridge_cfg2); root 1729 drivers/gpu/drm/amd/amdgpu/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); root 1732 drivers/gpu/drm/amd/amdgpu/si.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 1739 drivers/gpu/drm/amd/amdgpu/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &tmp16); root 1742 drivers/gpu/drm/amd/amdgpu/si.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, tmp16); root 1954 drivers/gpu/drm/amd/amdgpu/si.c struct pci_dev *root = adev->pdev->bus->self; root 1958 drivers/gpu/drm/amd/amdgpu/si.c pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); root 1124 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct dentry *root = minor->debugfs_root; root 1132 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c debugfs_create_file("amdgpu_dm_dtn_log", 0644, root, adev, root 1135 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c debugfs_create_file_unsafe("amdgpu_dm_visual_confirm", 0644, root, adev, root 176 drivers/gpu/drm/drm_debugfs.c struct dentry *root, struct drm_minor *minor) root 195 drivers/gpu/drm/drm_debugfs.c S_IFREG | S_IRUGO, root, tmp, root 208 drivers/gpu/drm/drm_debugfs.c struct dentry *root) root 217 drivers/gpu/drm/drm_debugfs.c minor->debugfs_root = debugfs_create_dir(name, root); root 427 drivers/gpu/drm/drm_debugfs.c struct dentry *root; root 432 drivers/gpu/drm/drm_debugfs.c root = debugfs_create_dir(connector->name, minor->debugfs_root); root 433 drivers/gpu/drm/drm_debugfs.c connector->debugfs_entry = root; root 436 drivers/gpu/drm/drm_debugfs.c debugfs_create_file("force", S_IRUGO | S_IWUSR, root, connector, root 440 drivers/gpu/drm/drm_debugfs.c debugfs_create_file("edid_override", S_IRUGO | S_IWUSR, root, connector, root 457 drivers/gpu/drm/drm_debugfs.c struct dentry *root; root 464 drivers/gpu/drm/drm_debugfs.c root = debugfs_create_dir(name, minor->debugfs_root); root 467 drivers/gpu/drm/drm_debugfs.c crtc->debugfs_entry = root; root 144 drivers/gpu/drm/drm_internal.h struct dentry *root); root 153 drivers/gpu/drm/drm_internal.h struct dentry *root) root 215 drivers/gpu/drm/drm_mm.c #define RB_INSERT(root, member, expr) do { \ root 216 drivers/gpu/drm/drm_mm.c struct rb_node **link = &root.rb_node, *rb = NULL; \ root 226 drivers/gpu/drm/drm_mm.c rb_insert_color(&node->member, &root); \ root 237 drivers/gpu/drm/drm_mm.c static void insert_hole_size(struct rb_root_cached *root, root 240 drivers/gpu/drm/drm_mm.c struct rb_node **link = &root->rb_root.rb_node, *rb = NULL; root 255 drivers/gpu/drm/drm_mm.c rb_insert_color_cached(&node->rb_hole_size, root, first); root 127 drivers/gpu/drm/i915/i915_active.c struct rb_root root; root 135 drivers/gpu/drm/i915/i915_active.c root = ref->tree; root 146 drivers/gpu/drm/i915/i915_active.c rbtree_postorder_for_each_entry_safe(it, n, &root, node) { root 139 drivers/gpu/drm/i915/i915_buddy.c struct i915_buddy_block *root; root 146 drivers/gpu/drm/i915/i915_buddy.c root = i915_block_alloc(NULL, order, offset); root 147 drivers/gpu/drm/i915/i915_buddy.c if (!root) root 150 drivers/gpu/drm/i915/i915_buddy.c mark_free(mm, root); root 153 drivers/gpu/drm/i915/i915_buddy.c GEM_BUG_ON(i915_buddy_block_size(mm, root) < chunk_size); root 155 drivers/gpu/drm/i915/i915_buddy.c mm->roots[i] = root; root 4603 drivers/gpu/drm/i915/i915_debugfs.c struct dentry *root = connector->debugfs_entry; root 4607 drivers/gpu/drm/i915/i915_debugfs.c if (!root) root 4612 drivers/gpu/drm/i915/i915_debugfs.c debugfs_create_file("i915_dpcd", S_IRUGO, root, root 4616 drivers/gpu/drm/i915/i915_debugfs.c debugfs_create_file("i915_panel_timings", S_IRUGO, root, root 4618 drivers/gpu/drm/i915/i915_debugfs.c debugfs_create_file("i915_psr_sink_status", S_IRUGO, root, root 4625 drivers/gpu/drm/i915/i915_debugfs.c debugfs_create_file("i915_hdcp_sink_capability", S_IRUGO, root, root 4632 drivers/gpu/drm/i915/i915_debugfs.c debugfs_create_file("i915_dsc_fec_support", S_IRUGO, root, root 91 drivers/gpu/drm/i915/i915_syncmap.c void i915_syncmap_init(struct i915_syncmap **root) root 95 drivers/gpu/drm/i915/i915_syncmap.c BUILD_BUG_ON(KSYNCMAP > BITS_PER_TYPE((*root)->bitmap)); root 96 drivers/gpu/drm/i915/i915_syncmap.c *root = NULL; root 154 drivers/gpu/drm/i915/i915_syncmap.c bool i915_syncmap_is_later(struct i915_syncmap **root, u64 id, u32 seqno) root 159 drivers/gpu/drm/i915/i915_syncmap.c p = *root; root 189 drivers/gpu/drm/i915/i915_syncmap.c *root = p; root 230 drivers/gpu/drm/i915/i915_syncmap.c static noinline int __sync_set(struct i915_syncmap **root, u64 id, u32 seqno) root 232 drivers/gpu/drm/i915/i915_syncmap.c struct i915_syncmap *p = *root; root 336 drivers/gpu/drm/i915/i915_syncmap.c *root = p; root 353 drivers/gpu/drm/i915/i915_syncmap.c int i915_syncmap_set(struct i915_syncmap **root, u64 id, u32 seqno) root 355 drivers/gpu/drm/i915/i915_syncmap.c struct i915_syncmap *p = *root; root 366 drivers/gpu/drm/i915/i915_syncmap.c return __sync_set(root, id, seqno); root 395 drivers/gpu/drm/i915/i915_syncmap.c void i915_syncmap_free(struct i915_syncmap **root) root 399 drivers/gpu/drm/i915/i915_syncmap.c p = *root; root 407 drivers/gpu/drm/i915/i915_syncmap.c *root = NULL; root 33 drivers/gpu/drm/i915/i915_syncmap.h void i915_syncmap_init(struct i915_syncmap **root); root 34 drivers/gpu/drm/i915/i915_syncmap.h int i915_syncmap_set(struct i915_syncmap **root, u64 id, u32 seqno); root 35 drivers/gpu/drm/i915/i915_syncmap.h bool i915_syncmap_is_later(struct i915_syncmap **root, u64 id, u32 seqno); root 36 drivers/gpu/drm/i915/i915_syncmap.h void i915_syncmap_free(struct i915_syncmap **root); root 181 drivers/gpu/drm/i915/selftests/i915_buddy.c struct i915_buddy_block *root; root 198 drivers/gpu/drm/i915/selftests/i915_buddy.c root = NULL; root 206 drivers/gpu/drm/i915/selftests/i915_buddy.c root = mm->roots[i]; root 207 drivers/gpu/drm/i915/selftests/i915_buddy.c if (!root) { root 213 drivers/gpu/drm/i915/selftests/i915_buddy.c err = igt_check_block(mm, root); root 215 drivers/gpu/drm/i915/selftests/i915_buddy.c if (!i915_buddy_block_is_free(root)) { root 220 drivers/gpu/drm/i915/selftests/i915_buddy.c order = i915_buddy_block_order(root); root 236 drivers/gpu/drm/i915/selftests/i915_buddy.c offset = i915_buddy_block_offset(root); root 247 drivers/gpu/drm/i915/selftests/i915_buddy.c if (block != root) { root 255 drivers/gpu/drm/i915/selftests/i915_buddy.c prev = root; root 256 drivers/gpu/drm/i915/selftests/i915_buddy.c total += i915_buddy_block_size(mm, root); root 273 drivers/gpu/drm/i915/selftests/i915_buddy.c if (root) { root 275 drivers/gpu/drm/i915/selftests/i915_buddy.c igt_dump_block(mm, root); root 41 drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h struct rb_root root; root 26 drivers/gpu/drm/nouveau/nvkm/core/mm.c #define node(root, dir) ((root)->nl_entry.dir == &mm->nodes) ? NULL : \ root 27 drivers/gpu/drm/nouveau/nvkm/core/mm.c list_entry((root)->nl_entry.dir, struct nvkm_mm_node, nl_entry) root 200 drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c const struct nvkm_disp_oclass *root = disp->func->root(disp); root 201 drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c oclass->base = root->base; root 202 drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c oclass->engn = root; root 36 drivers/gpu/drm/nouveau/nvkm/engine/disp/g84.c .root = &g84_disp_root_oclass, root 36 drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c .root = &g94_disp_root_oclass, root 262 drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c .root = &gf119_disp_root_oclass, root 37 drivers/gpu/drm/nouveau/nvkm/engine/disp/gk104.c .root = &gk104_disp_root_oclass, root 37 drivers/gpu/drm/nouveau/nvkm/engine/disp/gk110.c .root = &gk110_disp_root_oclass, root 37 drivers/gpu/drm/nouveau/nvkm/engine/disp/gm107.c .root = &gm107_disp_root_oclass, root 37 drivers/gpu/drm/nouveau/nvkm/engine/disp/gm200.c .root = &gm200_disp_root_oclass, root 37 drivers/gpu/drm/nouveau/nvkm/engine/disp/gp100.c .root = &gp100_disp_root_oclass, root 64 drivers/gpu/drm/nouveau/nvkm/engine/disp/gp102.c .root = &gp102_disp_root_oclass, root 36 drivers/gpu/drm/nouveau/nvkm/engine/disp/gt200.c .root = >200_disp_root_oclass, root 36 drivers/gpu/drm/nouveau/nvkm/engine/disp/gt215.c .root = >215_disp_root_oclass, root 419 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c .root = &gv100_disp_root_oclass, root 34 drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp77.c .root = &g94_disp_root_oclass, root 34 drivers/gpu/drm/nouveau/nvkm/engine/disp/mcp89.c .root = >215_disp_root_oclass, root 63 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv04.c .root = nv04_disp_root, root 42 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c return nv50_disp(base)->func->root; root 152 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c .root = nv50_disp_root_, root 764 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c .root = &nv50_disp_root_oclass, root 62 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h const struct nvkm_disp_oclass *root; root 20 drivers/gpu/drm/nouveau/nvkm/engine/disp/priv.h const struct nvkm_disp_oclass *(*root)(struct nvkm_disp *); root 42 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c struct nv04_disp_root *root = nv04_disp_root(object); root 58 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c if (!(head = nvkm_head_find(root->disp, id))) root 81 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c struct nv04_disp_root *root; root 83 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c if (!(root = kzalloc(sizeof(*root), GFP_KERNEL))) root 85 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c root->disp = disp; root 86 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c *pobject = &root->object; root 88 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv04.c nvkm_object_ctor(&nv04_disp_root, oclass, &root->object); root 43 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c struct nv50_disp_root *root = nv50_disp_root(object); root 44 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c struct nv50_disp *disp = root->disp; root 290 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c struct nv50_disp_root *root = nv50_disp_root(object); root 292 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c if (root->func->user[index].ctor) { root 293 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c sclass->base = root->func->user[index].base; root 294 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c sclass->priv = root->func->user + index; root 305 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c struct nv50_disp_root *root = nv50_disp_root(object); root 306 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c return root; root 323 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c struct nv50_disp_root *root; root 325 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c if (!(root = kzalloc(sizeof(*root), GFP_KERNEL))) root 327 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c *pobject = &root->object; root 329 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c nvkm_object_ctor(&nv50_disp_root_, oclass, &root->object); root 330 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c root->func = func; root 331 drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c root->disp = disp; root 141 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c .root = &tu102_disp_root_oclass, root 829 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c rb_erase(&vma->tree, &vmm->root); root 843 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c struct rb_node **ptr = &vmm->root.rb_node; root 859 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c rb_insert_color(&vma->tree, &vmm->root); root 865 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c struct rb_node *node = vmm->root.rb_node; root 879 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c #define node(root, dir) (((root)->head.dir == &vmm->list) ? NULL : \ root 880 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c list_entry((root)->head.dir, struct nvkm_vma, head)) root 986 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c while ((node = rb_first(&vmm->root))) { root 1091 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c vmm->root = RB_ROOT; root 890 drivers/gpu/drm/omapdrm/dss/dss.c dss->debugfs.root = dir; root 897 drivers/gpu/drm/omapdrm/dss/dss.c debugfs_remove_recursive(dss->debugfs.root); root 933 drivers/gpu/drm/omapdrm/dss/dss.c entry->dentry = debugfs_create_file(name, 0444, dss->debugfs.root, root 250 drivers/gpu/drm/omapdrm/dss/dss.h struct dentry *root; root 29 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c bool root; root 109 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c static void __init omapdss_add_to_list(struct device_node *node, bool root) root 114 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c n->root = root; root 131 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c static void __init omapdss_walk_device(struct device_node *node, bool root) root 135 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c omapdss_add_to_list(node, root); root 29 drivers/gpu/drm/pl111/pl111_vexpress.c struct device_node *root; root 42 drivers/gpu/drm/pl111/pl111_vexpress.c root = of_find_node_by_path("/"); root 43 drivers/gpu/drm/pl111/pl111_vexpress.c if (!root) root 46 drivers/gpu/drm/pl111/pl111_vexpress.c for_each_available_child_of_node(root, child) { root 59 drivers/gpu/drm/pl111/pl111_vexpress.c of_node_put(root); root 5684 drivers/gpu/drm/radeon/ci_dpm.c struct pci_dev *root = rdev->pdev->bus->self; root 5693 drivers/gpu/drm/radeon/ci_dpm.c speed_cap = pcie_get_speed_cap(root); root 9505 drivers/gpu/drm/radeon/cik.c struct pci_dev *root = rdev->pdev->bus->self; root 9524 drivers/gpu/drm/radeon/cik.c speed_cap = pcie_get_speed_cap(root); root 9549 drivers/gpu/drm/radeon/cik.c bridge_pos = pci_pcie_cap(root); root 9564 drivers/gpu/drm/radeon/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 9568 drivers/gpu/drm/radeon/cik.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 9593 drivers/gpu/drm/radeon/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 9596 drivers/gpu/drm/radeon/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &bridge_cfg2); root 9610 drivers/gpu/drm/radeon/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); root 9613 drivers/gpu/drm/radeon/cik.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 9621 drivers/gpu/drm/radeon/cik.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &tmp16); root 9624 drivers/gpu/drm/radeon/cik.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, tmp16); root 9744 drivers/gpu/drm/radeon/cik.c struct pci_dev *root = rdev->pdev->bus->self; root 9748 drivers/gpu/drm/radeon/cik.c pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); root 1067 drivers/gpu/drm/radeon/radeon_ttm.c struct dentry *root = minor->debugfs_root; root 1070 drivers/gpu/drm/radeon/radeon_ttm.c root, rdev, root 1074 drivers/gpu/drm/radeon/radeon_ttm.c root, rdev, &radeon_ttm_gtt_fops); root 7088 drivers/gpu/drm/radeon/si.c struct pci_dev *root = rdev->pdev->bus->self; root 7107 drivers/gpu/drm/radeon/si.c speed_cap = pcie_get_speed_cap(root); root 7132 drivers/gpu/drm/radeon/si.c bridge_pos = pci_pcie_cap(root); root 7147 drivers/gpu/drm/radeon/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 7151 drivers/gpu/drm/radeon/si.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 7176 drivers/gpu/drm/radeon/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); root 7179 drivers/gpu/drm/radeon/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &bridge_cfg2); root 7193 drivers/gpu/drm/radeon/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); root 7196 drivers/gpu/drm/radeon/si.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); root 7204 drivers/gpu/drm/radeon/si.c pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &tmp16); root 7207 drivers/gpu/drm/radeon/si.c pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, tmp16); root 7378 drivers/gpu/drm/radeon/si.c struct pci_dev *root = rdev->pdev->bus->self; root 7382 drivers/gpu/drm/radeon/si.c pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); root 6908 drivers/gpu/drm/radeon/si_dpm.c struct pci_dev *root = rdev->pdev->bus->self; root 6920 drivers/gpu/drm/radeon/si_dpm.c speed_cap = pcie_get_speed_cap(root); root 1495 drivers/gpu/drm/tegra/dc.c struct dentry *root; root 1500 drivers/gpu/drm/tegra/dc.c root = crtc->debugfs_entry; root 1502 drivers/gpu/drm/tegra/dc.c root = NULL; root 1513 drivers/gpu/drm/tegra/dc.c err = drm_debugfs_create_files(dc->debugfs_files, count, root, minor); root 235 drivers/gpu/drm/tegra/dsi.c struct dentry *root = connector->debugfs_entry; root 247 drivers/gpu/drm/tegra/dsi.c err = drm_debugfs_create_files(dsi->debugfs_files, count, root, minor); root 1065 drivers/gpu/drm/tegra/hdmi.c struct dentry *root = connector->debugfs_entry; root 1077 drivers/gpu/drm/tegra/hdmi.c err = drm_debugfs_create_files(hdmi->debugfs_files, count, root, minor); root 1463 drivers/gpu/drm/tegra/sor.c struct dentry *root = connector->debugfs_entry; root 1475 drivers/gpu/drm/tegra/sor.c err = drm_debugfs_create_files(sor->debugfs_files, count, root, minor); root 1449 drivers/gpu/drm/vmwgfx/device_include/svga_reg.h } root; root 147 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->obj.root.x = x; root 148 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->obj.root.y = y; root 149 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c sou->base.set_gui_x = cmd->obj.root.x; root 150 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c sou->base.set_gui_y = cmd->obj.root.y; root 1226 drivers/hid/wacom_sys.c struct kobject *root; root 1232 drivers/hid/wacom_sys.c struct kobject *kobj = devres->root; root 1240 drivers/hid/wacom_sys.c struct kobject *root, root 1253 drivers/hid/wacom_sys.c devres->root = root; root 1255 drivers/hid/wacom_sys.c error = sysfs_create_group(devres->root, group); root 132 drivers/hwmon/asus_atk0110.c struct dentry *root; root 801 drivers/hwmon/asus_atk0110.c data->debugfs.root = d; root 806 drivers/hwmon/asus_atk0110.c debugfs_remove_recursive(data->debugfs.root); root 112 drivers/i2c/muxes/i2c-mux-gpio.c struct i2c_adapter *root; root 152 drivers/i2c/muxes/i2c-mux-gpio.c root = i2c_root_adapter(&parent->dev); root 185 drivers/i2c/muxes/i2c-mux-gpio.c muxc->mux_locked = i2c_root_adapter(gpio_dev) == root; root 37 drivers/i2c/muxes/i2c-mux-pinctrl.c struct i2c_adapter *root = NULL; root 45 drivers/i2c/muxes/i2c-mux-pinctrl.c if (!root) root 46 drivers/i2c/muxes/i2c-mux-pinctrl.c root = pin_root; root 47 drivers/i2c/muxes/i2c-mux-pinctrl.c else if (root != pin_root) root 51 drivers/i2c/muxes/i2c-mux-pinctrl.c return root; root 80 drivers/i2c/muxes/i2c-mux-pinctrl.c struct i2c_adapter *root; root 140 drivers/i2c/muxes/i2c-mux-pinctrl.c root = i2c_root_adapter(&muxc->parent->dev); root 144 drivers/i2c/muxes/i2c-mux-pinctrl.c if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) { root 915 drivers/ide/pmac.c struct device_node *root = of_find_node_by_path("/"); root 916 drivers/ide/pmac.c const char *model = of_get_property(root, "model", NULL); root 918 drivers/ide/pmac.c of_node_put(root); root 339 drivers/infiniband/core/umem_odp.c struct ib_umem_odp *ib_umem_odp_alloc_child(struct ib_umem_odp *root, root 350 drivers/infiniband/core/umem_odp.c if (WARN_ON(!root->is_implicit_odp)) root 357 drivers/infiniband/core/umem_odp.c umem->ibdev = root->umem.ibdev; root 360 drivers/infiniband/core/umem_odp.c umem->writable = root->umem.writable; root 361 drivers/infiniband/core/umem_odp.c umem->owning_mm = root->umem.owning_mm; root 769 drivers/infiniband/core/umem_odp.c int rbt_ib_umem_for_each_in_range(struct rb_root_cached *root, root 782 drivers/infiniband/core/umem_odp.c for (node = interval_tree_iter_first(root, start, last - 1); root 1243 drivers/infiniband/hw/hfi1/debugfs.c struct dentry *root; root 1251 drivers/infiniband/hw/hfi1/debugfs.c root = debugfs_create_dir(name, hfi1_dbg_root); root 1252 drivers/infiniband/hw/hfi1/debugfs.c ibd->hfi1_ibdev_dbg = root; root 1257 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("opcode_stats", 0444, root, ibd, root 1259 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("tx_opcode_stats", 0444, root, ibd, root 1261 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("ctx_stats", 0444, root, ibd, &_ctx_stats_file_ops); root 1262 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("qp_stats", 0444, root, ibd, &_qp_stats_file_ops); root 1263 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("sdes", 0444, root, ibd, &_sdes_file_ops); root 1264 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("rcds", 0444, root, ibd, &_rcds_file_ops); root 1265 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("pios", 0444, root, ibd, &_pios_file_ops); root 1266 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file("sdma_cpu_list", 0444, root, ibd, root 1271 drivers/infiniband/hw/hfi1/debugfs.c debugfs_create_file(cntr_ops[i].name, 0444, root, dd, root 1285 drivers/infiniband/hw/hfi1/debugfs.c root, ppd, &port_cntr_ops[i].ops); root 57 drivers/infiniband/hw/hfi1/mmu_rb.c struct rb_root_cached root; root 107 drivers/infiniband/hw/hfi1/mmu_rb.c handlr->root = RB_ROOT_CACHED; root 148 drivers/infiniband/hw/hfi1/mmu_rb.c while ((node = rb_first_cached(&handler->root))) { root 150 drivers/infiniband/hw/hfi1/mmu_rb.c rb_erase_cached(node, &handler->root); root 175 drivers/infiniband/hw/hfi1/mmu_rb.c __mmu_int_rb_insert(mnode, &handler->root); root 180 drivers/infiniband/hw/hfi1/mmu_rb.c __mmu_int_rb_remove(mnode, &handler->root); root 197 drivers/infiniband/hw/hfi1/mmu_rb.c node = __mmu_int_rb_iter_first(&handler->root, addr, root 200 drivers/infiniband/hw/hfi1/mmu_rb.c for (node = __mmu_int_rb_iter_first(&handler->root, addr, root 225 drivers/infiniband/hw/hfi1/mmu_rb.c __mmu_int_rb_remove(node, &handler->root); root 249 drivers/infiniband/hw/hfi1/mmu_rb.c __mmu_int_rb_remove(rbnode, &handler->root); root 278 drivers/infiniband/hw/hfi1/mmu_rb.c __mmu_int_rb_remove(node, &handler->root); root 290 drivers/infiniband/hw/hfi1/mmu_rb.c struct rb_root_cached *root = &handler->root; root 296 drivers/infiniband/hw/hfi1/mmu_rb.c for (node = __mmu_int_rb_iter_first(root, range->start, range->end-1); root 303 drivers/infiniband/hw/hfi1/mmu_rb.c __mmu_int_rb_remove(node, root); root 428 drivers/infiniband/hw/i40iw/i40iw_pble.c struct i40iw_pble_info *root = &lvl2->root; root 440 drivers/infiniband/hw/i40iw/i40iw_pble.c if (root->addr) root 441 drivers/infiniband/hw/i40iw/i40iw_pble.c gen_pool_free(pool, root->addr, (root->cnt << 3)); root 461 drivers/infiniband/hw/i40iw/i40iw_pble.c struct i40iw_pble_info *root = &lvl2->root; root 475 drivers/infiniband/hw/i40iw/i40iw_pble.c root->addr = gen_pool_alloc(pool, (total << 3)); root 476 drivers/infiniband/hw/i40iw/i40iw_pble.c if (!root->addr) { root 481 drivers/infiniband/hw/i40iw/i40iw_pble.c root->idx = fpm_to_idx(pble_rsrc, root 482 drivers/infiniband/hw/i40iw/i40iw_pble.c (u64)gen_pool_virt_to_phys(pool, root->addr)); root 483 drivers/infiniband/hw/i40iw/i40iw_pble.c root->cnt = total; root 484 drivers/infiniband/hw/i40iw/i40iw_pble.c addr = (u64 *)root->addr; root 62 drivers/infiniband/hw/i40iw/i40iw_pble.h struct i40iw_pble_info root; root 1706 drivers/infiniband/hw/i40iw/i40iw_verbs.c stag_info->first_pm_pbl_index = palloc->level2.root.idx; root 384 drivers/infiniband/hw/mlx5/cong.c !dev->port[port_num].dbg_cc_params->root) root 387 drivers/infiniband/hw/mlx5/cong.c debugfs_remove_recursive(dev->port[port_num].dbg_cc_params->root); root 416 drivers/infiniband/hw/mlx5/cong.c dbg_cc_params->root = debugfs_create_dir("cc_params", root 425 drivers/infiniband/hw/mlx5/cong.c 0600, dbg_cc_params->root, root 695 drivers/infiniband/hw/mlx5/mlx5_ib.h struct dentry *root; root 788 drivers/infiniband/hw/mlx5/mlx5_ib.h struct dentry *root; root 1354 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_get_flow_trees(const struct uverbs_object_tree_def **root); root 573 drivers/infiniband/hw/mlx5/mr.c debugfs_remove_recursive(dev->cache.root); root 574 drivers/infiniband/hw/mlx5/mr.c dev->cache.root = NULL; root 587 drivers/infiniband/hw/mlx5/mr.c cache->root = debugfs_create_dir("mr_cache", dev->mdev->priv.dbg_root); root 592 drivers/infiniband/hw/mlx5/mr.c dir = debugfs_create_dir(ent->name, cache->root); root 243 drivers/infiniband/hw/qib/qib_debugfs.c struct dentry *root; root 247 drivers/infiniband/hw/qib/qib_debugfs.c root = debugfs_create_dir(name, qib_dbg_root); root 248 drivers/infiniband/hw/qib/qib_debugfs.c ibd->qib_ibdev_dbg = root; root 250 drivers/infiniband/hw/qib/qib_debugfs.c debugfs_create_file("opcode_stats", 0400, root, ibd, root 252 drivers/infiniband/hw/qib/qib_debugfs.c debugfs_create_file("ctx_stats", 0400, root, ibd, &_ctx_stats_file_ops); root 253 drivers/infiniband/hw/qib/qib_debugfs.c debugfs_create_file("qp_stats", 0400, root, ibd, &_qp_stats_file_ops); root 464 drivers/infiniband/hw/qib/qib_fs.c struct dentry *dir, *root; root 468 drivers/infiniband/hw/qib/qib_fs.c root = dget(sb->s_root); root 469 drivers/infiniband/hw/qib/qib_fs.c inode_lock(d_inode(root)); root 471 drivers/infiniband/hw/qib/qib_fs.c dir = lookup_one_len(unit, root, strlen(unit)); root 495 drivers/infiniband/hw/qib/qib_fs.c ret = simple_rmdir(d_inode(root), dir); root 500 drivers/infiniband/hw/qib/qib_fs.c inode_unlock(d_inode(root)); root 501 drivers/infiniband/hw/qib/qib_fs.c dput(root); root 542 drivers/infiniband/hw/qib/qib_fs.c qib_super = fc->root->d_sb; root 141 drivers/infiniband/hw/qib/qib_user_sdma.c qib_user_sdma_rb_search(struct rb_root *root, pid_t pid) root 144 drivers/infiniband/hw/qib/qib_user_sdma.c struct rb_node *node = root->rb_node; root 160 drivers/infiniband/hw/qib/qib_user_sdma.c qib_user_sdma_rb_insert(struct rb_root *root, struct qib_user_sdma_rb_node *new) root 162 drivers/infiniband/hw/qib/qib_user_sdma.c struct rb_node **node = &(root->rb_node); root 178 drivers/infiniband/hw/qib/qib_user_sdma.c rb_insert_color(&new->node, root); root 229 drivers/infiniband/hw/usnic/usnic_uiom.c usnic_uiom_remove_interval(&pd->root, vpn_start, root 381 drivers/infiniband/hw/usnic/usnic_uiom.c &pd->root, root 397 drivers/infiniband/hw/usnic/usnic_uiom.c err = usnic_uiom_insert_interval(&pd->root, vpn_start, vpn_last, root 60 drivers/infiniband/hw/usnic/usnic_uiom.h struct rb_root_cached root; root 103 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c find_intervals_intersection_sorted(struct rb_root_cached *root, root 111 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c for (node = usnic_uiom_interval_tree_iter_first(root, start, last); root 121 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c struct rb_root_cached *root, root 131 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c find_intervals_intersection_sorted(root, start, last, root 178 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c int usnic_uiom_insert_interval(struct rb_root_cached *root, unsigned long start, root 189 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c find_intervals_intersection_sorted(root, start, last, root 233 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c usnic_uiom_interval_tree_remove(interval, root); root 238 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c usnic_uiom_interval_tree_insert(interval, root); root 249 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c void usnic_uiom_remove_interval(struct rb_root_cached *root, root 255 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c for (interval = usnic_uiom_interval_tree_iter_first(root, start, last); root 265 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.c usnic_uiom_interval_tree_remove(interval, root); root 51 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h struct rb_root_cached *root); root 54 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h struct rb_root_cached *root); root 56 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h usnic_uiom_interval_tree_iter_first(struct rb_root_cached *root, root 66 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h int usnic_uiom_insert_interval(struct rb_root_cached *root, root 74 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h void usnic_uiom_remove_interval(struct rb_root_cached *root, root 84 drivers/infiniband/hw/usnic/usnic_uiom_interval_tree.h struct rb_root_cached *root, root 108 drivers/input/serio/i8042-sparcio.h struct device_node *root = of_find_node_by_path("/"); root 109 drivers/input/serio/i8042-sparcio.h const char *name = of_get_property(root, "name", NULL); root 139 drivers/input/serio/i8042-sparcio.h struct device_node *root = of_find_node_by_path("/"); root 140 drivers/input/serio/i8042-sparcio.h const char *name = of_get_property(root, "name", NULL); root 602 drivers/input/serio/serio.c static void serio_reconnect_subtree(struct serio *root) root 604 drivers/input/serio/serio.c struct serio *s = root; root 626 drivers/input/serio/serio.c while (s != root) { root 637 drivers/input/serio/serio.c } while (s != root); root 1414 drivers/iommu/amd_iommu.c static struct page *free_sub_pt(unsigned long root, int mode, root 1422 drivers/iommu/amd_iommu.c freelist = free_pt_page(root, freelist); root 1425 drivers/iommu/amd_iommu.c freelist = free_pt_l2(root, freelist); root 1428 drivers/iommu/amd_iommu.c freelist = free_pt_l3(root, freelist); root 1431 drivers/iommu/amd_iommu.c freelist = free_pt_l4(root, freelist); root 1434 drivers/iommu/amd_iommu.c freelist = free_pt_l5(root, freelist); root 1437 drivers/iommu/amd_iommu.c freelist = free_pt_l6(root, freelist); root 1448 drivers/iommu/amd_iommu.c unsigned long root = (unsigned long)domain->pt_root; root 1454 drivers/iommu/amd_iommu.c freelist = free_sub_pt(root, domain->mode, freelist); root 3486 drivers/iommu/amd_iommu.c static u64 *__get_gcr3_pte(u64 *root, int level, int pasid, bool alloc) root 3494 drivers/iommu/amd_iommu.c pte = &root[index]; root 3503 drivers/iommu/amd_iommu.c root = (void *)get_zeroed_page(GFP_ATOMIC); root 3504 drivers/iommu/amd_iommu.c if (root == NULL) root 3507 drivers/iommu/amd_iommu.c *pte = iommu_virt_to_phys(root) | GCR3_VALID; root 3510 drivers/iommu/amd_iommu.c root = iommu_phys_to_virt(*pte & PAGE_MASK); root 157 drivers/iommu/amd_iommu_v2.c struct pasid_state **root, **ptr; root 161 drivers/iommu/amd_iommu_v2.c root = dev_state->states; root 166 drivers/iommu/amd_iommu_v2.c ptr = &root[index]; root 180 drivers/iommu/amd_iommu_v2.c root = (struct pasid_state **)*ptr; root 699 drivers/iommu/intel-iommu.c struct root_entry *root = &iommu->root_entry[bus]; root 703 drivers/iommu/intel-iommu.c entry = &root->lo; root 707 drivers/iommu/intel-iommu.c entry = &root->hi; root 1192 drivers/iommu/intel-iommu.c struct root_entry *root; root 1195 drivers/iommu/intel-iommu.c root = (struct root_entry *)alloc_pgtable_page(iommu->node); root 1196 drivers/iommu/intel-iommu.c if (!root) { root 1202 drivers/iommu/intel-iommu.c __iommu_flush_cache(iommu, root, ROOT_SIZE); root 1205 drivers/iommu/intel-iommu.c iommu->root_entry = root; root 154 drivers/iommu/iova.c iova_insert_rbtree(struct rb_root *root, struct iova *iova, root 159 drivers/iommu/iova.c new = (start) ? &start : &(root->rb_node); root 177 drivers/iommu/iova.c rb_insert_color(&iova->node, root); root 59 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_device *root; root 230 drivers/iommu/ipmmu-vmsa.c return mmu->root == mmu; root 246 drivers/iommu/ipmmu-vmsa.c struct ipmmu_vmsa_device *root = NULL; root 248 drivers/iommu/ipmmu-vmsa.c return driver_for_each_device(&ipmmu_driver.driver, NULL, &root, root 249 drivers/iommu/ipmmu-vmsa.c __ipmmu_check_device) == 0 ? root : NULL; root 270 drivers/iommu/ipmmu-vmsa.c return ipmmu_read(domain->mmu->root, root 277 drivers/iommu/ipmmu-vmsa.c ipmmu_write(domain->mmu->root, root 284 drivers/iommu/ipmmu-vmsa.c if (domain->mmu != domain->mmu->root) root 288 drivers/iommu/ipmmu-vmsa.c ipmmu_write(domain->mmu->root, root 493 drivers/iommu/ipmmu-vmsa.c domain->cfg.iommu_dev = domain->mmu->root->dev; root 498 drivers/iommu/ipmmu-vmsa.c ret = ipmmu_domain_allocate_context(domain->mmu->root, domain); root 507 drivers/iommu/ipmmu-vmsa.c ipmmu_domain_free_context(domain->mmu->root, root 529 drivers/iommu/ipmmu-vmsa.c ipmmu_domain_free_context(domain->mmu->root, domain->context_id); root 1095 drivers/iommu/ipmmu-vmsa.c mmu->root = mmu; root 1097 drivers/iommu/ipmmu-vmsa.c mmu->root = ipmmu_find_root(); root 1102 drivers/iommu/ipmmu-vmsa.c if (!mmu->root) root 1199 drivers/iommu/ipmmu-vmsa.c ipmmu_utlb_enable(mmu->root->domains[mmu->utlb_ctx[i]], i); root 192 drivers/irqchip/irq-atmel-aic-common.c struct device_node *root = of_find_node_by_path("/"); root 195 drivers/irqchip/irq-atmel-aic-common.c if (!root) root 198 drivers/irqchip/irq-atmel-aic-common.c match = of_match_node(matches, root); root 205 drivers/irqchip/irq-atmel-aic-common.c of_node_put(root); root 298 drivers/mailbox/bcm-flexrm-mailbox.c struct dentry *root; root 1621 drivers/mailbox/bcm-flexrm-mailbox.c mbox->root = debugfs_create_dir(dev_name(mbox->dev), NULL); root 1624 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_create_devm_seqfile(mbox->dev, "config", mbox->root, root 1628 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_create_devm_seqfile(mbox->dev, "stats", mbox->root, root 1660 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_remove_recursive(mbox->root); root 1674 drivers/mailbox/bcm-flexrm-mailbox.c debugfs_remove_recursive(mbox->root); root 662 drivers/md/bcache/bcache.h struct btree *root; root 146 drivers/md/bcache/btree.c struct btree *_b = (c)->root; \ root 149 drivers/md/bcache/btree.c if (_b == (c)->root && \ root 570 drivers/md/bcache/btree.c #define mca_reserve(c) (((c->root && c->root->level) \ root 571 drivers/md/bcache/btree.c ? c->root->level : 1) * 8 + 16) root 1097 drivers/md/bcache/btree.c BUG_ON(b == b->c->root); root 1216 drivers/md/bcache/btree.c unsigned int i, reserve = (c->root->level - b->level) * 2 + 1; root 2250 drivers/md/bcache/btree.c op->lock = b->c->root->level + 1; root 2252 drivers/md/bcache/btree.c } else if (op->lock <= b->c->root->level) { root 2253 drivers/md/bcache/btree.c op->lock = b->c->root->level + 1; root 2377 drivers/md/bcache/btree.c b->c->root = b; root 784 drivers/md/bcache/journal.c w->data->btree_level = c->root->level; root 786 drivers/md/bcache/journal.c bkey_copy(&w->data->btree_root, &c->root->key); root 1626 drivers/md/bcache/super.c if (!IS_ERR_OR_NULL(c->root)) root 1627 drivers/md/bcache/super.c list_add(&c->root->list, &c->btree_cache); root 1895 drivers/md/bcache/super.c c->root = bch_btree_node_get(c, NULL, k, root 1898 drivers/md/bcache/super.c if (IS_ERR_OR_NULL(c->root)) root 1901 drivers/md/bcache/super.c list_del_init(&c->root->list); root 1902 drivers/md/bcache/super.c rw_unlock(true, c->root); root 1991 drivers/md/bcache/super.c c->root = __bch_btree_node_alloc(c, NULL, 0, true, NULL); root 1992 drivers/md/bcache/super.c if (IS_ERR_OR_NULL(c->root)) root 1995 drivers/md/bcache/super.c mutex_lock(&c->root->write_lock); root 1996 drivers/md/bcache/super.c bkey_copy_key(&c->root->key, &MAX_KEY); root 1997 drivers/md/bcache/super.c bch_btree_node_write(c->root, &cl); root 1998 drivers/md/bcache/super.c mutex_unlock(&c->root->write_lock); root 2000 drivers/md/bcache/super.c bch_btree_set_root(c->root); root 2001 drivers/md/bcache/super.c rw_unlock(true, c->root); root 644 drivers/md/bcache/sysfs.c b = c->root; root 646 drivers/md/bcache/sysfs.c } while (b != c->root); root 713 drivers/md/bcache/sysfs.c sysfs_print(tree_depth, c->root->level); root 470 drivers/md/bcache/util.h #define RB_INSERT(root, new, member, cmp) \ root 473 drivers/md/bcache/util.h struct rb_node **n = &(root)->rb_node, *parent = NULL; \ root 489 drivers/md/bcache/util.h rb_insert_color(&(new)->member, root); \ root 495 drivers/md/bcache/util.h #define RB_SEARCH(root, search, member, cmp) \ root 497 drivers/md/bcache/util.h struct rb_node *n = (root)->rb_node; \ root 515 drivers/md/bcache/util.h #define RB_GREATER(root, search, member, cmp) \ root 517 drivers/md/bcache/util.h struct rb_node *n = (root)->rb_node; \ root 533 drivers/md/bcache/util.h #define RB_FIRST(root, type, member) \ root 534 drivers/md/bcache/util.h container_of_or_null(rb_first(root), type, member) root 536 drivers/md/bcache/util.h #define RB_LAST(root, type, member) \ root 537 drivers/md/bcache/util.h container_of_or_null(rb_last(root), type, member) root 119 drivers/md/dm-cache-metadata.c dm_block_t root; root 370 drivers/md/dm-cache-metadata.c disk_super->mapping_root = cpu_to_le64(cmd->root); root 403 drivers/md/dm-cache-metadata.c r = dm_array_empty(&cmd->info, &cmd->root); root 583 drivers/md/dm-cache-metadata.c cmd->root = le64_to_cpu(disk_super->mapping_root); root 692 drivers/md/dm-cache-metadata.c disk_super->mapping_root = cpu_to_le64(cmd->root); root 889 drivers/md/dm-cache-metadata.c r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(b), &value); root 1066 drivers/md/dm-cache-metadata.c r = dm_array_resize(&cmd->info, cmd->root, from_cblock(cmd->cache_blocks), root 1068 drivers/md/dm-cache-metadata.c &null_mapping, &cmd->root); root 1224 drivers/md/dm-cache-metadata.c r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), root 1225 drivers/md/dm-cache-metadata.c &value, &cmd->root); root 1251 drivers/md/dm-cache-metadata.c r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), root 1252 drivers/md/dm-cache-metadata.c &value, &cmd->root); root 1417 drivers/md/dm-cache-metadata.c r = dm_array_cursor_begin(&cmd->info, cmd->root, &cmd->mapping_cursor); root 1521 drivers/md/dm-cache-metadata.c return dm_array_walk(&cmd->info, cmd->root, __dump_mapping, NULL); root 1549 drivers/md/dm-cache-metadata.c r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(cblock), &value); root 1562 drivers/md/dm-cache-metadata.c r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), root 1563 drivers/md/dm-cache-metadata.c &value, &cmd->root); root 35 drivers/md/dm-dust.c static struct badblock *dust_rb_search(struct rb_root *root, sector_t blk) root 37 drivers/md/dm-dust.c struct rb_node *node = root->rb_node; root 53 drivers/md/dm-dust.c static bool dust_rb_insert(struct rb_root *root, struct badblock *new) root 56 drivers/md/dm-dust.c struct rb_node **link = &root->rb_node, *parent = NULL; root 72 drivers/md/dm-dust.c rb_insert_color(&new->node, root); root 30 drivers/md/dm-era-target.c dm_block_t root; root 53 drivers/md/dm-era-target.c unsigned nr_bits, dm_block_t *root) root 57 drivers/md/dm-era-target.c r = dm_bitset_empty(info, root); root 61 drivers/md/dm-era-target.c return dm_bitset_resize(info, *root, 0, nr_bits, false, root); root 75 drivers/md/dm-era-target.c ws->md.root = INVALID_WRITESET_ROOT; root 94 drivers/md/dm-era-target.c r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); root 112 drivers/md/dm-era-target.c dm_block_t old = m->root; root 118 drivers/md/dm-era-target.c int r = dm_bitset_test_bit(info, m->root, block, &m->root, result); root 124 drivers/md/dm-era-target.c BUG_ON(m->root != old); root 138 drivers/md/dm-era-target.c r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); root 158 drivers/md/dm-era-target.c __le64 root; root 356 drivers/md/dm-era-target.c disk->root = cpu_to_le64(core->root); root 362 drivers/md/dm-era-target.c core->root = le64_to_cpu(disk->root); root 372 drivers/md/dm-era-target.c b = le64_to_cpu(ws_d.root); root 384 drivers/md/dm-era-target.c b = le64_to_cpu(ws_d.root); root 790 drivers/md/dm-era-target.c md->writesets[0].md.root = INVALID_WRITESET_ROOT; root 791 drivers/md/dm-era-target.c md->writesets[1].md.root = INVALID_WRITESET_ROOT; root 865 drivers/md/dm-era-target.c r = dm_bitset_flush(&md->bitset_info, md->current_writeset->md.root, root 866 drivers/md/dm-era-target.c &md->current_writeset->md.root); root 873 drivers/md/dm-era-target.c md->current_writeset->md.root = INVALID_WRITESET_ROOT; root 917 drivers/md/dm-era-target.c if (md->current_writeset->md.root != INVALID_WRITESET_ROOT) { root 954 drivers/md/dm-era-target.c if (md->current_writeset->md.root != SUPERBLOCK_LOCATION) { root 955 drivers/md/dm-era-target.c r = dm_bitset_flush(&md->bitset_info, md->current_writeset->md.root, root 956 drivers/md/dm-era-target.c &md->current_writeset->md.root); root 184 drivers/md/dm-thin-metadata.c dm_block_t root; root 356 drivers/md/dm-thin-metadata.c uint64_t root; root 359 drivers/md/dm-thin-metadata.c root = le64_to_cpu(root_le); root 360 drivers/md/dm-thin-metadata.c dm_tm_inc(info->tm, root); root 367 drivers/md/dm-thin-metadata.c uint64_t root; root 370 drivers/md/dm-thin-metadata.c root = le64_to_cpu(root_le); root 371 drivers/md/dm-thin-metadata.c if (dm_btree_del(info, root)) root 561 drivers/md/dm-thin-metadata.c disk_super->data_mapping_root = cpu_to_le64(pmd->root); root 597 drivers/md/dm-thin-metadata.c r = dm_btree_empty(&pmd->info, &pmd->root); root 778 drivers/md/dm-thin-metadata.c pmd->root = le64_to_cpu(disk_super->data_mapping_root); root 868 drivers/md/dm-thin-metadata.c disk_super->data_mapping_root = cpu_to_le64(pmd->root); root 1071 drivers/md/dm-thin-metadata.c r = dm_btree_insert(&pmd->tl_info, pmd->root, &key, &value, &pmd->root); root 1079 drivers/md/dm-thin-metadata.c dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root); root 1138 drivers/md/dm-thin-metadata.c r = dm_btree_lookup(&pmd->tl_info, pmd->root, &key, &value); root 1150 drivers/md/dm-thin-metadata.c r = dm_btree_insert(&pmd->tl_info, pmd->root, &key, &value, &pmd->root); root 1171 drivers/md/dm-thin-metadata.c dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root); root 1214 drivers/md/dm-thin-metadata.c r = dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root); root 1502 drivers/md/dm-thin-metadata.c r = dm_btree_lookup(info, pmd->root, keys, &value); root 1536 drivers/md/dm-thin-metadata.c r = dm_btree_lookup_next(&pmd->info, pmd->root, keys, vblock, &value); root 1618 drivers/md/dm-thin-metadata.c r = dm_btree_insert_notify(&pmd->info, pmd->root, keys, &value, root 1619 drivers/md/dm-thin-metadata.c &pmd->root, &inserted); root 1649 drivers/md/dm-thin-metadata.c r = dm_btree_remove(&pmd->info, pmd->root, keys, &pmd->root); root 1671 drivers/md/dm-thin-metadata.c r = dm_btree_lookup(&pmd->tl_info, pmd->root, keys, &value); root 1681 drivers/md/dm-thin-metadata.c r = dm_btree_remove(&pmd->tl_info, pmd->root, keys, &pmd->root); root 1715 drivers/md/dm-thin-metadata.c return dm_btree_insert(&pmd->tl_info, pmd->root, keys, &value, &pmd->root); root 1970 drivers/md/dm-thin-metadata.c r = dm_btree_lookup(&pmd->tl_info, pmd->root, &td->id, &value_le); root 328 drivers/md/dm-zoned-metadata.c struct rb_root *root = &zmd->mblk_rbtree; root 329 drivers/md/dm-zoned-metadata.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 341 drivers/md/dm-zoned-metadata.c rb_insert_color(&mblk->node, root); root 351 drivers/md/dm-zoned-metadata.c struct rb_root *root = &zmd->mblk_rbtree; root 352 drivers/md/dm-zoned-metadata.c struct rb_node *node = root->rb_node; root 2340 drivers/md/dm-zoned-metadata.c struct rb_root *root; root 2380 drivers/md/dm-zoned-metadata.c root = &zmd->mblk_rbtree; root 2381 drivers/md/dm-zoned-metadata.c rbtree_postorder_for_each_entry_safe(mblk, next, root, node) { root 253 drivers/md/persistent-data/dm-array.c static int lookup_ablock(struct dm_array_info *info, dm_block_t root, root 261 drivers/md/persistent-data/dm-array.c r = dm_btree_lookup(&info->btree_info, root, &key, &block_le); root 272 drivers/md/persistent-data/dm-array.c struct dm_block *block, dm_block_t *root) root 277 drivers/md/persistent-data/dm-array.c return dm_btree_insert(&info->btree_info, *root, &index, &block_le, root); root 304 drivers/md/persistent-data/dm-array.c dm_block_t *root) root 316 drivers/md/persistent-data/dm-array.c r = insert_ablock(info, index, block, root); root 327 drivers/md/persistent-data/dm-array.c static int shadow_ablock(struct dm_array_info *info, dm_block_t *root, root 336 drivers/md/persistent-data/dm-array.c r = dm_btree_lookup(&info->btree_info, *root, &key, &block_le); root 345 drivers/md/persistent-data/dm-array.c return __reinsert_ablock(info, index, *block, b, root); root 354 drivers/md/persistent-data/dm-array.c const void *value, dm_block_t *root) root 365 drivers/md/persistent-data/dm-array.c r = insert_ablock(info, block_index, block, root); root 374 drivers/md/persistent-data/dm-array.c dm_block_t *root) root 379 drivers/md/persistent-data/dm-array.c r = insert_new_ablock(info, size_of_block, max_entries, begin_block, max_entries, value, root); root 398 drivers/md/persistent-data/dm-array.c dm_block_t root; root 444 drivers/md/persistent-data/dm-array.c r = dm_btree_remove(&resize->info->btree_info, resize->root, root 445 drivers/md/persistent-data/dm-array.c &key, &resize->root); root 490 drivers/md/persistent-data/dm-array.c r = shadow_ablock(resize->info, &resize->root, root 511 drivers/md/persistent-data/dm-array.c r = shadow_ablock(resize->info, &resize->root, root 528 drivers/md/persistent-data/dm-array.c resize->value, &resize->root); root 548 drivers/md/persistent-data/dm-array.c &resize->root); root 649 drivers/md/persistent-data/dm-array.c int dm_array_empty(struct dm_array_info *info, dm_block_t *root) root 651 drivers/md/persistent-data/dm-array.c return dm_btree_empty(&info->btree_info, root); root 655 drivers/md/persistent-data/dm-array.c static int array_resize(struct dm_array_info *info, dm_block_t root, root 663 drivers/md/persistent-data/dm-array.c *new_root = root; root 668 drivers/md/persistent-data/dm-array.c resize.root = root; root 683 drivers/md/persistent-data/dm-array.c *new_root = resize.root; root 687 drivers/md/persistent-data/dm-array.c int dm_array_resize(struct dm_array_info *info, dm_block_t root, root 692 drivers/md/persistent-data/dm-array.c int r = array_resize(info, root, old_size, new_size, value, new_root); root 721 drivers/md/persistent-data/dm-array.c int dm_array_new(struct dm_array_info *info, dm_block_t *root, root 729 drivers/md/persistent-data/dm-array.c r = dm_array_empty(info, root); root 750 drivers/md/persistent-data/dm-array.c r = insert_ablock(info, block_index, block, root); root 762 drivers/md/persistent-data/dm-array.c int dm_array_del(struct dm_array_info *info, dm_block_t root) root 764 drivers/md/persistent-data/dm-array.c return dm_btree_del(&info->btree_info, root); root 768 drivers/md/persistent-data/dm-array.c int dm_array_get_value(struct dm_array_info *info, dm_block_t root, root 780 drivers/md/persistent-data/dm-array.c r = lookup_ablock(info, root, index / max_entries, &block, &ab); root 796 drivers/md/persistent-data/dm-array.c static int array_set_value(struct dm_array_info *info, dm_block_t root, root 811 drivers/md/persistent-data/dm-array.c r = shadow_ablock(info, &root, index / max_entries, &block, &ab); root 814 drivers/md/persistent-data/dm-array.c *new_root = root; root 837 drivers/md/persistent-data/dm-array.c int dm_array_set_value(struct dm_array_info *info, dm_block_t root, root 843 drivers/md/persistent-data/dm-array.c r = array_set_value(info, root, index, value, new_root); root 885 drivers/md/persistent-data/dm-array.c int dm_array_walk(struct dm_array_info *info, dm_block_t root, root 895 drivers/md/persistent-data/dm-array.c return dm_btree_walk(&info->btree_info, root, walk_ablock, &wi); root 930 drivers/md/persistent-data/dm-array.c int dm_array_cursor_begin(struct dm_array_info *info, dm_block_t root, root 937 drivers/md/persistent-data/dm-array.c r = dm_btree_cursor_begin(&info->btree_info, root, true, &c->cursor); root 92 drivers/md/persistent-data/dm-array.h int dm_array_empty(struct dm_array_info *info, dm_block_t *root); root 109 drivers/md/persistent-data/dm-array.h int dm_array_resize(struct dm_array_info *info, dm_block_t root, root 130 drivers/md/persistent-data/dm-array.h int dm_array_new(struct dm_array_info *info, dm_block_t *root, root 137 drivers/md/persistent-data/dm-array.h int dm_array_del(struct dm_array_info *info, dm_block_t root); root 149 drivers/md/persistent-data/dm-array.h int dm_array_get_value(struct dm_array_info *info, dm_block_t root, root 167 drivers/md/persistent-data/dm-array.h int dm_array_set_value(struct dm_array_info *info, dm_block_t root, root 179 drivers/md/persistent-data/dm-array.h int dm_array_walk(struct dm_array_info *info, dm_block_t root, root 205 drivers/md/persistent-data/dm-array.h dm_block_t root, struct dm_array_cursor *c); root 36 drivers/md/persistent-data/dm-bitset.c int dm_bitset_empty(struct dm_disk_bitset *info, dm_block_t *root) root 38 drivers/md/persistent-data/dm-bitset.c return dm_array_empty(&info->array_info, root); root 72 drivers/md/persistent-data/dm-bitset.c int dm_bitset_new(struct dm_disk_bitset *info, dm_block_t *root, root 80 drivers/md/persistent-data/dm-bitset.c return dm_array_new(&info->array_info, root, dm_div_up(size, 64), pack_bits, &p); root 84 drivers/md/persistent-data/dm-bitset.c int dm_bitset_resize(struct dm_disk_bitset *info, dm_block_t root, root 93 drivers/md/persistent-data/dm-bitset.c return dm_array_resize(&info->array_info, root, old_blocks, new_blocks, root 98 drivers/md/persistent-data/dm-bitset.c int dm_bitset_del(struct dm_disk_bitset *info, dm_block_t root) root 100 drivers/md/persistent-data/dm-bitset.c return dm_array_del(&info->array_info, root); root 104 drivers/md/persistent-data/dm-bitset.c int dm_bitset_flush(struct dm_disk_bitset *info, dm_block_t root, root 116 drivers/md/persistent-data/dm-bitset.c r = dm_array_set_value(&info->array_info, root, info->current_index, root 128 drivers/md/persistent-data/dm-bitset.c static int read_bits(struct dm_disk_bitset *info, dm_block_t root, root 134 drivers/md/persistent-data/dm-bitset.c r = dm_array_get_value(&info->array_info, root, array_index, &value); root 146 drivers/md/persistent-data/dm-bitset.c static int get_array_entry(struct dm_disk_bitset *info, dm_block_t root, root 156 drivers/md/persistent-data/dm-bitset.c r = dm_bitset_flush(info, root, new_root); root 161 drivers/md/persistent-data/dm-bitset.c return read_bits(info, root, array_index); root 164 drivers/md/persistent-data/dm-bitset.c int dm_bitset_set_bit(struct dm_disk_bitset *info, dm_block_t root, root 170 drivers/md/persistent-data/dm-bitset.c r = get_array_entry(info, root, index, new_root); root 181 drivers/md/persistent-data/dm-bitset.c int dm_bitset_clear_bit(struct dm_disk_bitset *info, dm_block_t root, root 187 drivers/md/persistent-data/dm-bitset.c r = get_array_entry(info, root, index, new_root); root 198 drivers/md/persistent-data/dm-bitset.c int dm_bitset_test_bit(struct dm_disk_bitset *info, dm_block_t root, root 204 drivers/md/persistent-data/dm-bitset.c r = get_array_entry(info, root, index, new_root); root 230 drivers/md/persistent-data/dm-bitset.c dm_block_t root, uint32_t nr_entries, root 242 drivers/md/persistent-data/dm-bitset.c r = dm_array_cursor_begin(&info->array_info, root, &c->cursor); root 108 drivers/md/persistent-data/dm-bitset.h int dm_bitset_new(struct dm_disk_bitset *info, dm_block_t *root, root 128 drivers/md/persistent-data/dm-bitset.h int dm_bitset_del(struct dm_disk_bitset *info, dm_block_t root); root 140 drivers/md/persistent-data/dm-bitset.h int dm_bitset_set_bit(struct dm_disk_bitset *info, dm_block_t root, root 153 drivers/md/persistent-data/dm-bitset.h int dm_bitset_clear_bit(struct dm_disk_bitset *info, dm_block_t root, root 167 drivers/md/persistent-data/dm-bitset.h int dm_bitset_test_bit(struct dm_disk_bitset *info, dm_block_t root, root 177 drivers/md/persistent-data/dm-bitset.h int dm_bitset_flush(struct dm_disk_bitset *info, dm_block_t root, root 195 drivers/md/persistent-data/dm-bitset.h dm_block_t root, uint32_t nr_entries, root 82 drivers/md/persistent-data/dm-btree-internal.h dm_block_t root; root 147 drivers/md/persistent-data/dm-btree-remove.c dm_block_t root; root 150 drivers/md/persistent-data/dm-btree-remove.c root = value64(parent, index); root 152 drivers/md/persistent-data/dm-btree-remove.c r = dm_tm_shadow_block(info->tm, root, &btree_node_validator, root 470 drivers/md/persistent-data/dm-btree-remove.c struct dm_btree_value_type *vt, dm_block_t root, root 477 drivers/md/persistent-data/dm-btree-remove.c r = shadow_step(s, root, vt); root 512 drivers/md/persistent-data/dm-btree-remove.c root = value64(n, i); root 518 drivers/md/persistent-data/dm-btree-remove.c int dm_btree_remove(struct dm_btree_info *info, dm_block_t root, root 533 drivers/md/persistent-data/dm-btree-remove.c root, keys[level], (unsigned *)&index); root 539 drivers/md/persistent-data/dm-btree-remove.c root = value64(n, index); root 562 drivers/md/persistent-data/dm-btree-remove.c struct dm_btree_value_type *vt, dm_block_t root, root 569 drivers/md/persistent-data/dm-btree-remove.c r = shadow_step(s, root, vt); root 608 drivers/md/persistent-data/dm-btree-remove.c root = value64(n, i); root 614 drivers/md/persistent-data/dm-btree-remove.c static int remove_one(struct dm_btree_info *info, dm_block_t root, root 629 drivers/md/persistent-data/dm-btree-remove.c root, keys[level], (unsigned *) &index); root 634 drivers/md/persistent-data/dm-btree-remove.c root = value64(n, index); root 638 drivers/md/persistent-data/dm-btree-remove.c root, keys[last_level], &index); root 671 drivers/md/persistent-data/dm-btree-remove.c int dm_btree_remove_leaves(struct dm_btree_info *info, dm_block_t root, root 679 drivers/md/persistent-data/dm-btree-remove.c r = remove_one(info, root, first_key, end_key, &root, nr_removed); root 684 drivers/md/persistent-data/dm-btree-remove.c *new_root = root; root 213 drivers/md/persistent-data/dm-btree-spine.c s->root = dm_block_location(s->nodes[0]); root 242 drivers/md/persistent-data/dm-btree-spine.c return s->root; root 126 drivers/md/persistent-data/dm-btree.c int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root) root 148 drivers/md/persistent-data/dm-btree.c *root = dm_block_location(b); root 270 drivers/md/persistent-data/dm-btree.c int dm_btree_del(struct dm_btree_info *info, dm_block_t root) root 287 drivers/md/persistent-data/dm-btree.c r = push_frame(s, root, 0); root 374 drivers/md/persistent-data/dm-btree.c int dm_btree_lookup(struct dm_btree_info *info, dm_block_t root, root 397 drivers/md/persistent-data/dm-btree.c r = btree_lookup_raw(&spine, root, keys[level], root 411 drivers/md/persistent-data/dm-btree.c root = le64_to_cpu(internal_value_le); root 419 drivers/md/persistent-data/dm-btree.c static int dm_btree_lookup_next_single(struct dm_btree_info *info, dm_block_t root, root 427 drivers/md/persistent-data/dm-btree.c r = bn_read_lock(info, root, &node); root 470 drivers/md/persistent-data/dm-btree.c int dm_btree_lookup_next(struct dm_btree_info *info, dm_block_t root, root 480 drivers/md/persistent-data/dm-btree.c r = btree_lookup_raw(&spine, root, keys[level], root 491 drivers/md/persistent-data/dm-btree.c root = le64_to_cpu(internal_value_le); root 494 drivers/md/persistent-data/dm-btree.c r = dm_btree_lookup_next_single(info, root, keys[level], rkey, value_le); root 692 drivers/md/persistent-data/dm-btree.c static int btree_insert_raw(struct shadow_spine *s, dm_block_t root, root 700 drivers/md/persistent-data/dm-btree.c r = shadow_step(s, root, vt); root 744 drivers/md/persistent-data/dm-btree.c root = value64(node, i); root 762 drivers/md/persistent-data/dm-btree.c static int insert(struct dm_btree_info *info, dm_block_t root, root 769 drivers/md/persistent-data/dm-btree.c dm_block_t block = root; root 849 drivers/md/persistent-data/dm-btree.c int dm_btree_insert(struct dm_btree_info *info, dm_block_t root, root 853 drivers/md/persistent-data/dm-btree.c return insert(info, root, keys, value, new_root, NULL); root 857 drivers/md/persistent-data/dm-btree.c int dm_btree_insert_notify(struct dm_btree_info *info, dm_block_t root, root 862 drivers/md/persistent-data/dm-btree.c return insert(info, root, keys, value, new_root, inserted); root 905 drivers/md/persistent-data/dm-btree.c static int dm_btree_find_key(struct dm_btree_info *info, dm_block_t root, root 913 drivers/md/persistent-data/dm-btree.c r = find_key(&spine, root, find_highest, result_keys + level, root 914 drivers/md/persistent-data/dm-btree.c level == info->levels - 1 ? NULL : &root); root 929 drivers/md/persistent-data/dm-btree.c int dm_btree_find_highest_key(struct dm_btree_info *info, dm_block_t root, root 932 drivers/md/persistent-data/dm-btree.c return dm_btree_find_key(info, root, true, result_keys); root 936 drivers/md/persistent-data/dm-btree.c int dm_btree_find_lowest_key(struct dm_btree_info *info, dm_block_t root, root 939 drivers/md/persistent-data/dm-btree.c return dm_btree_find_key(info, root, false, result_keys); root 984 drivers/md/persistent-data/dm-btree.c int dm_btree_walk(struct dm_btree_info *info, dm_block_t root, root 989 drivers/md/persistent-data/dm-btree.c return walk_node(info, root, fn, context); root 1099 drivers/md/persistent-data/dm-btree.c int dm_btree_cursor_begin(struct dm_btree_info *info, dm_block_t root, root 1105 drivers/md/persistent-data/dm-btree.c c->root = root; root 1109 drivers/md/persistent-data/dm-btree.c r = push_node(c, root); root 94 drivers/md/persistent-data/dm-btree.h int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root); root 100 drivers/md/persistent-data/dm-btree.h int dm_btree_del(struct dm_btree_info *info, dm_block_t root); root 109 drivers/md/persistent-data/dm-btree.h int dm_btree_lookup(struct dm_btree_info *info, dm_block_t root, root 116 drivers/md/persistent-data/dm-btree.h int dm_btree_lookup_next(struct dm_btree_info *info, dm_block_t root, root 122 drivers/md/persistent-data/dm-btree.h int dm_btree_insert(struct dm_btree_info *info, dm_block_t root, root 131 drivers/md/persistent-data/dm-btree.h int dm_btree_insert_notify(struct dm_btree_info *info, dm_block_t root, root 141 drivers/md/persistent-data/dm-btree.h int dm_btree_remove(struct dm_btree_info *info, dm_block_t root, root 150 drivers/md/persistent-data/dm-btree.h int dm_btree_remove_leaves(struct dm_btree_info *info, dm_block_t root, root 159 drivers/md/persistent-data/dm-btree.h int dm_btree_find_lowest_key(struct dm_btree_info *info, dm_block_t root, root 167 drivers/md/persistent-data/dm-btree.h int dm_btree_find_highest_key(struct dm_btree_info *info, dm_block_t root, root 175 drivers/md/persistent-data/dm-btree.h int dm_btree_walk(struct dm_btree_info *info, dm_block_t root, root 196 drivers/md/persistent-data/dm-btree.h dm_block_t root; root 208 drivers/md/persistent-data/dm-btree.h int dm_btree_cursor_begin(struct dm_btree_info *info, dm_block_t root, root 23 drivers/md/persistent-data/dm-space-map-disk.h void *root, size_t len); root 222 drivers/md/persistent-data/dm-transaction-manager.c int dm_tm_commit(struct dm_transaction_manager *tm, struct dm_block *root) root 228 drivers/md/persistent-data/dm-transaction-manager.c dm_bm_unlock(root); root 396 drivers/media/dvb-frontends/mxl5xx.c u32 root; root 405 drivers/media/dvb-frontends/mxl5xx.c root = gold2root(gold); root 407 drivers/media/dvb-frontends/mxl5xx.c buf[25] = (root >> 24) & 0xff; root 408 drivers/media/dvb-frontends/mxl5xx.c buf[24] = (root >> 16) & 0xff; root 409 drivers/media/dvb-frontends/mxl5xx.c buf[23] = (root >> 8) & 0xff; root 410 drivers/media/dvb-frontends/mxl5xx.c buf[22] = root & 0xff; root 211 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 227 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 372 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 416 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 481 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 559 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 607 drivers/media/pci/tw5864/tw5864-video.c sprintf(cap->bus_info, "PCI:%s", pci_name(input->root->pci)); root 636 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 694 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 711 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 845 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 867 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 1064 drivers/media/pci/tw5864/tw5864-video.c dev->inputs[i].root = dev; root 1095 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 1114 drivers/media/pci/tw5864/tw5864-video.c input->vidq.dev = &input->root->pci->dev; root 1120 drivers/media/pci/tw5864/tw5864-video.c input->vdev.v4l2_dev = &input->root->v4l2_dev; root 1163 drivers/media/pci/tw5864/tw5864-video.c dev_info(&input->root->pci->dev, "Registered video device %s\n", root 1364 drivers/media/pci/tw5864/tw5864-video.c struct tw5864_dev *dev = input->root; root 86 drivers/media/pci/tw5864/tw5864.h struct tw5864_dev *root; root 74 drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.h struct dentry *root; root 228 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c struct dentry *root; root 231 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c root = debugfs_create_dir("c8sectpfe", NULL); root 232 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c if (!root) root 235 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c fei->root = root; root 245 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c file = debugfs_create_regset32("registers", S_IRUGO, root, root 257 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c debugfs_remove_recursive(root); root 262 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c debugfs_remove_recursive(fei->root); root 263 drivers/media/platform/sti/c8sectpfe/c8sectpfe-debugfs.c fei->root = NULL; root 1057 drivers/memory/tegra/tegra124-emc.c struct dentry *root, *file; root 1060 drivers/memory/tegra/tegra124-emc.c root = debugfs_create_dir("emc", NULL); root 1061 drivers/memory/tegra/tegra124-emc.c if (!root) { root 1072 drivers/memory/tegra/tegra124-emc.c file = debugfs_create_file("rate", S_IRUGO | S_IWUSR, root, clk, root 1077 drivers/memory/tegra/tegra124-emc.c file = debugfs_create_file("supported_rates", S_IRUGO, root, emc, root 177 drivers/mfd/qcom-pm8xxx.c unsigned int root; root 182 drivers/mfd/qcom-pm8xxx.c ret = regmap_read(chip->regmap, SSBI_REG_ADDR_IRQ_ROOT, &root); root 189 drivers/mfd/qcom-pm8xxx.c masters = root >> 1; root 321 drivers/misc/genwqe/card_debugfs.c struct dentry *root; root 328 drivers/misc/genwqe/card_debugfs.c root = debugfs_create_dir(card_name, cd->debugfs_genwqe); root 331 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("ddcb_info", S_IRUGO, root, cd, &ddcb_info_fops); root 332 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("info", S_IRUGO, root, cd, &info_fops); root 333 drivers/misc/genwqe/card_debugfs.c debugfs_create_x64("err_inject", 0666, root, &cd->err_inject); root 334 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32("ddcb_software_timeout", 0666, root, root 336 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32("kill_timeout", 0666, root, &cd->kill_timeout); root 340 drivers/misc/genwqe/card_debugfs.c cd->debugfs_root = root; root 344 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_regs", S_IRUGO, root, cd, &curr_regs_fops); root 345 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_dbg_uid0", S_IRUGO, root, cd, root 347 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_dbg_uid1", S_IRUGO, root, cd, root 349 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("curr_dbg_uid2", S_IRUGO, root, cd, root 351 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_regs", S_IRUGO, root, cd, &prev_regs_fops); root 352 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_dbg_uid0", S_IRUGO, root, cd, root 354 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_dbg_uid1", S_IRUGO, root, cd, root 356 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("prev_dbg_uid2", S_IRUGO, root, cd, root 361 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32(name, 0666, root, root 365 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("jobtimer", S_IRUGO, root, cd, &jtimer_fops); root 366 drivers/misc/genwqe/card_debugfs.c debugfs_create_file("queue_working_time", S_IRUGO, root, cd, root 368 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32("skip_recovery", 0666, root, &cd->skip_recovery); root 369 drivers/misc/genwqe/card_debugfs.c debugfs_create_u32("use_platform_recovery", 0666, root, root 372 drivers/misc/genwqe/card_debugfs.c cd->debugfs_root = root; root 966 drivers/misc/habanalabs/debugfs.c dev_entry->root = debugfs_create_dir(dev_name(hdev->dev), root 971 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 976 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 982 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 988 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 993 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 998 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1003 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1009 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1015 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1021 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1027 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1035 drivers/misc/habanalabs/debugfs.c dev_entry->root, root 1048 drivers/misc/habanalabs/debugfs.c debugfs_remove_recursive(entry->root); root 994 drivers/misc/habanalabs/habanalabs.h struct dentry *root; root 112 drivers/misc/ibmasm/ibmasmfs.c struct inode *root; root 120 drivers/misc/ibmasm/ibmasmfs.c root = ibmasmfs_make_inode (sb, S_IFDIR | 0500); root 121 drivers/misc/ibmasm/ibmasmfs.c if (!root) root 124 drivers/misc/ibmasm/ibmasmfs.c root->i_op = &simple_dir_inode_operations; root 125 drivers/misc/ibmasm/ibmasmfs.c root->i_fop = ibmasmfs_dir_ops; root 127 drivers/misc/ibmasm/ibmasmfs.c sb->s_root = d_make_root(root); root 2809 drivers/mmc/core/block.c struct dentry *root; root 2814 drivers/mmc/core/block.c root = card->debugfs_root; root 2818 drivers/mmc/core/block.c debugfs_create_file_unsafe("status", 0400, root, root 2827 drivers/mmc/core/block.c debugfs_create_file("ext_csd", S_IRUSR, root, card, root 227 drivers/mmc/core/debugfs.c struct dentry *root; root 229 drivers/mmc/core/debugfs.c root = debugfs_create_dir(mmc_hostname(host), NULL); root 230 drivers/mmc/core/debugfs.c host->debugfs_root = root; root 232 drivers/mmc/core/debugfs.c debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops); root 233 drivers/mmc/core/debugfs.c debugfs_create_x32("caps", S_IRUSR, root, &host->caps); root 234 drivers/mmc/core/debugfs.c debugfs_create_x32("caps2", S_IRUSR, root, &host->caps2); root 235 drivers/mmc/core/debugfs.c debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, root 242 drivers/mmc/core/debugfs.c fault_create_debugfs_attr("fail_mmc_request", root, root 255 drivers/mmc/core/debugfs.c struct dentry *root; root 260 drivers/mmc/core/debugfs.c root = debugfs_create_dir(mmc_card_id(card), host->debugfs_root); root 261 drivers/mmc/core/debugfs.c card->debugfs_root = root; root 263 drivers/mmc/core/debugfs.c debugfs_create_x32("state", S_IRUSR, root, &card->state); root 578 drivers/mmc/host/atmel-mci.c struct dentry *root; root 580 drivers/mmc/host/atmel-mci.c root = mmc->debugfs_root; root 581 drivers/mmc/host/atmel-mci.c if (!root) root 584 drivers/mmc/host/atmel-mci.c debugfs_create_file("regs", S_IRUSR, root, host, &atmci_regs_fops); root 585 drivers/mmc/host/atmel-mci.c debugfs_create_file("req", S_IRUSR, root, slot, &atmci_req_fops); root 586 drivers/mmc/host/atmel-mci.c debugfs_create_u32("state", S_IRUSR, root, (u32 *)&host->state); root 587 drivers/mmc/host/atmel-mci.c debugfs_create_x32("pending_events", S_IRUSR, root, root 589 drivers/mmc/host/atmel-mci.c debugfs_create_x32("completed_events", S_IRUSR, root, root 171 drivers/mmc/host/dw_mmc.c struct dentry *root; root 173 drivers/mmc/host/dw_mmc.c root = mmc->debugfs_root; root 174 drivers/mmc/host/dw_mmc.c if (!root) root 177 drivers/mmc/host/dw_mmc.c debugfs_create_file("regs", S_IRUSR, root, host, &dw_mci_regs_fops); root 178 drivers/mmc/host/dw_mmc.c debugfs_create_file("req", S_IRUSR, root, slot, &dw_mci_req_fops); root 179 drivers/mmc/host/dw_mmc.c debugfs_create_u32("state", S_IRUSR, root, (u32 *)&host->state); root 180 drivers/mmc/host/dw_mmc.c debugfs_create_x32("pending_events", S_IRUSR, root, root 182 drivers/mmc/host/dw_mmc.c debugfs_create_x32("completed_events", S_IRUSR, root, root 1452 drivers/mmc/host/s3cmci.c struct dentry *root; root 1454 drivers/mmc/host/s3cmci.c root = debugfs_create_dir(dev_name(dev), NULL); root 1455 drivers/mmc/host/s3cmci.c host->debug_root = root; root 1457 drivers/mmc/host/s3cmci.c debugfs_create_file("state", 0444, root, host, &s3cmci_state_fops); root 1458 drivers/mmc/host/s3cmci.c debugfs_create_file("regs", 0444, root, host, &s3cmci_regs_fops); root 1719 drivers/mtd/devices/docg3.c struct dentry *root = floor->dbg.dfs_dir; root 1722 drivers/mtd/devices/docg3.c if (IS_ERR_OR_NULL(root)) { root 1730 drivers/mtd/devices/docg3.c debugfs_create_file("docg3_flashcontrol", S_IRUSR, root, docg3, root 1732 drivers/mtd/devices/docg3.c debugfs_create_file("docg3_asic_mode", S_IRUSR, root, docg3, root 1734 drivers/mtd/devices/docg3.c debugfs_create_file("docg3_device_id", S_IRUSR, root, docg3, root 1736 drivers/mtd/devices/docg3.c debugfs_create_file("docg3_protection", S_IRUSR, root, docg3, root 385 drivers/mtd/mtdcore.c struct dentry *root, *dent; root 390 drivers/mtd/mtdcore.c root = debugfs_create_dir(dev_name(dev), dfs_dir_mtd); root 391 drivers/mtd/mtdcore.c if (IS_ERR_OR_NULL(root)) { root 396 drivers/mtd/mtdcore.c mtd->dbg.dfs_dir = root; root 399 drivers/mtd/mtdcore.c dent = debugfs_create_file("partid", 0400, root, mtd, root 406 drivers/mtd/mtdcore.c dent = debugfs_create_file("partname", 0400, root, mtd, root 86 drivers/mtd/mtdsuper.c BUG_ON(fc->root); root 87 drivers/mtd/mtdsuper.c fc->root = dget(sb->s_root); root 71 drivers/mtd/mtdswap.c struct rb_root *root; root 85 drivers/mtd/mtdswap.c struct rb_root root; root 160 drivers/mtd/mtdswap.c #define TREE_ROOT(d, name) (&d->trees[MTDSWAP_ ## name].root) root 194 drivers/mtd/mtdswap.c if (eb->root) { root 195 drivers/mtd/mtdswap.c tp = container_of(eb->root, struct mtdswap_tree, root); root 199 drivers/mtd/mtdswap.c rb_erase(&eb->rb, eb->root); root 203 drivers/mtd/mtdswap.c static void __mtdswap_rb_add(struct rb_root *root, struct swap_eb *eb) root 208 drivers/mtd/mtdswap.c p = &root->rb_node; root 219 drivers/mtd/mtdswap.c rb_insert_color(&eb->rb, root); root 224 drivers/mtd/mtdswap.c struct rb_root *root; root 226 drivers/mtd/mtdswap.c if (eb->root == &d->trees[idx].root) root 230 drivers/mtd/mtdswap.c root = &d->trees[idx].root; root 231 drivers/mtd/mtdswap.c __mtdswap_rb_add(root, eb); root 232 drivers/mtd/mtdswap.c eb->root = root; root 236 drivers/mtd/mtdswap.c static struct rb_node *mtdswap_rb_index(struct rb_root *root, unsigned int idx) root 241 drivers/mtd/mtdswap.c p = rb_first(root); root 259 drivers/mtd/mtdswap.c eb->root = NULL; root 578 drivers/mtd/mtdswap.c eb->root = NULL; root 767 drivers/mtd/mtdswap.c if (d->trees[idx].root.rb_node != NULL) root 805 drivers/mtd/mtdswap.c struct rb_root *root; root 809 drivers/mtd/mtdswap.c root = &d->trees[i].root; root 810 drivers/mtd/mtdswap.c if (root->rb_node == NULL) root 813 drivers/mtd/mtdswap.c wear = d->max_erase_count - MTDSWAP_ECNT_MIN(root); root 860 drivers/mtd/mtdswap.c rp = &d->trees[idx].root; root 864 drivers/mtd/mtdswap.c eb->root = NULL; root 1186 drivers/mtd/mtdswap.c struct rb_root *root = &d->trees[i].root; root 1188 drivers/mtd/mtdswap.c if (root->rb_node) { root 1190 drivers/mtd/mtdswap.c min[i] = MTDSWAP_ECNT_MIN(root); root 1191 drivers/mtd/mtdswap.c max[i] = MTDSWAP_ECNT_MAX(root); root 1259 drivers/mtd/mtdswap.c struct dentry *root = d->mtd->dbg.dfs_dir; root 1265 drivers/mtd/mtdswap.c if (IS_ERR_OR_NULL(root)) root 1268 drivers/mtd/mtdswap.c dent = debugfs_create_file("mtdswap_stats", S_IRUSR, root, d, root 1294 drivers/mtd/mtdswap.c d->trees[i].root = RB_ROOT; root 497 drivers/mtd/nand/raw/nandsim.c struct dentry *root = nsmtd->dbg.dfs_dir; root 504 drivers/mtd/nand/raw/nandsim.c if (IS_ERR_OR_NULL(root)) { root 512 drivers/mtd/nand/raw/nandsim.c root, dev, &nandsim_fops); root 590 drivers/mtd/ubi/attach.c p = &av->root.rb_node; root 705 drivers/mtd/ubi/attach.c rb_insert_color(&aeb->u.rb, &av->root); root 1281 drivers/mtd/ubi/attach.c struct rb_node *this = av->root.rb_node; root 1416 drivers/mtd/ubi/attach.c ubi_rb_for_each_entry(rb2, aeb, &av->root, u.rb) root 1717 drivers/mtd/ubi/attach.c ubi_rb_for_each_entry(rb2, aeb, &av->root, u.rb) { root 1790 drivers/mtd/ubi/attach.c ubi_rb_for_each_entry(rb2, aeb, &av->root, u.rb) { root 1877 drivers/mtd/ubi/attach.c ubi_rb_for_each_entry(rb2, aeb, &av->root, u.rb) root 1564 drivers/mtd/ubi/eba.c ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) root 1571 drivers/mtd/ubi/eba.c ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) root 1648 drivers/mtd/ubi/eba.c ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { root 26 drivers/mtd/ubi/fastmap-wl.c static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root) root 32 drivers/mtd/ubi/fastmap-wl.c ubi_rb_for_each_entry(p, e, root, u.rb) { root 60 drivers/mtd/ubi/fastmap-wl.c static int anchor_pebs_available(struct rb_root *root) root 65 drivers/mtd/ubi/fastmap-wl.c ubi_rb_for_each_entry(p, e, root, u.rb) root 376 drivers/mtd/ubi/fastmap-wl.c struct rb_root *root) { root 379 drivers/mtd/ubi/fastmap-wl.c e = rb_entry(rb_next(root->rb_node), root 208 drivers/mtd/ubi/fastmap.c struct rb_node **p = &av->root.rb_node, *parent = NULL; root 229 drivers/mtd/ubi/fastmap.c rb_insert_color(&aeb->u.rb, &av->root); root 246 drivers/mtd/ubi/fastmap.c struct rb_node **p = &av->root.rb_node, *parent = NULL; root 322 drivers/mtd/ubi/fastmap.c rb_insert_color(&new_aeb->u.rb, &av->root); root 377 drivers/mtd/ubi/fastmap.c ubi_rb_for_each_entry(node2, aeb, &av->root, u.rb) { root 379 drivers/mtd/ubi/fastmap.c rb_erase(&aeb->u.rb, &av->root); root 531 drivers/mtd/ubi/fastmap.c ubi_rb_for_each_entry(rb2, aeb, &av->root, u.rb) root 718 drivers/mtd/ubi/ubi.h struct rb_root root; root 1038 drivers/mtd/ubi/ubi.h #define ubi_rb_for_each_entry(rb, pos, root, member) \ root 1039 drivers/mtd/ubi/ubi.h for (rb = rb_first(root), \ root 1056 drivers/mtd/ubi/ubi.h rb_erase(&aeb->u.rb, &av->root); root 399 drivers/mtd/ubi/vtbl.c ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) { root 127 drivers/mtd/ubi/wl.c struct ubi_wl_entry *e, struct rb_root *root); root 139 drivers/mtd/ubi/wl.c static void wl_tree_add(struct ubi_wl_entry *e, struct rb_root *root) root 143 drivers/mtd/ubi/wl.c p = &root->rb_node; root 164 drivers/mtd/ubi/wl.c rb_insert_color(&e->u.rb, root); root 236 drivers/mtd/ubi/wl.c static int in_wl_tree(struct ubi_wl_entry *e, struct rb_root *root) root 240 drivers/mtd/ubi/wl.c p = root->rb_node; root 319 drivers/mtd/ubi/wl.c struct rb_root *root, int diff) root 325 drivers/mtd/ubi/wl.c e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); root 328 drivers/mtd/ubi/wl.c p = root->rb_node; root 362 drivers/mtd/ubi/wl.c struct rb_root *root) root 366 drivers/mtd/ubi/wl.c first = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); root 367 drivers/mtd/ubi/wl.c last = rb_entry(rb_last(root), struct ubi_wl_entry, u.rb); root 370 drivers/mtd/ubi/wl.c e = rb_entry(root->rb_node, struct ubi_wl_entry, u.rb); root 375 drivers/mtd/ubi/wl.c e = may_reserve_for_fm(ubi, e, root); root 377 drivers/mtd/ubi/wl.c e = find_wl_entry(ubi, root, WL_FREE_MAX_DIFF/2); root 1585 drivers/mtd/ubi/wl.c static void tree_destroy(struct ubi_device *ubi, struct rb_root *root) root 1590 drivers/mtd/ubi/wl.c rb = root->rb_node; root 1794 drivers/mtd/ubi/wl.c ubi_rb_for_each_entry(rb2, aeb, &av->root, u.rb) { root 1984 drivers/mtd/ubi/wl.c struct ubi_wl_entry *e, struct rb_root *root) root 1989 drivers/mtd/ubi/wl.c if (in_wl_tree(e, root)) root 1993 drivers/mtd/ubi/wl.c e->pnum, e->ec, root); root 5 drivers/mtd/ubi/wl.h static int anchor_pebs_available(struct rb_root *root); root 7 drivers/mtd/ubi/wl.h static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root); root 18 drivers/mtd/ubi/wl.h struct rb_root *root); root 25 drivers/mtd/ubi/wl.h struct rb_root *root) { root 611 drivers/net/ethernet/cavium/liquidio/octeon_network.h static inline struct list_head *lio_list_delete_head(struct list_head *root) root 615 drivers/net/ethernet/cavium/liquidio/octeon_network.h if (root->prev == root && root->next == root) root 618 drivers/net/ethernet/cavium/liquidio/octeon_network.h node = root->next; root 3309 drivers/net/ethernet/intel/ice/ice_common.c node = ice_sched_find_node_by_teid(pi->root, q_teids[i]); root 1347 drivers/net/ethernet/intel/ice/ice_dcb.c cmd->port_teid = pi->root->info.node_teid; root 1373 drivers/net/ethernet/intel/ice/ice_dcb.c for (i = 0; i < pi->root->num_children; i++) { root 1374 drivers/net/ethernet/intel/ice/ice_dcb.c teid1 = le32_to_cpu(pi->root->children[i]->info.node_teid); root 1383 drivers/net/ethernet/intel/ice/ice_dcb.c pi->root->children[i]->in_use = false; root 1391 drivers/net/ethernet/intel/ice/ice_dcb.c for (i = 0; i < pi->root->num_children; i++) { root 1392 drivers/net/ethernet/intel/ice/ice_dcb.c tc_node = pi->root->children[i]; root 1402 drivers/net/ethernet/intel/ice/ice_dcb.c if (i < pi->root->num_children) root 1411 drivers/net/ethernet/intel/ice/ice_dcb.c node = ice_sched_find_node_by_teid(pi->root, teid2); root 18 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_sched_node *root; root 26 drivers/net/ethernet/intel/ice/ice_sched.c root = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*root), GFP_KERNEL); root 27 drivers/net/ethernet/intel/ice/ice_sched.c if (!root) root 31 drivers/net/ethernet/intel/ice/ice_sched.c root->children = devm_kcalloc(ice_hw_to_dev(hw), hw->max_children[0], root 32 drivers/net/ethernet/intel/ice/ice_sched.c sizeof(*root), GFP_KERNEL); root 33 drivers/net/ethernet/intel/ice/ice_sched.c if (!root->children) { root 34 drivers/net/ethernet/intel/ice/ice_sched.c devm_kfree(ice_hw_to_dev(hw), root); root 38 drivers/net/ethernet/intel/ice/ice_sched.c memcpy(&root->info, info, sizeof(*info)); root 39 drivers/net/ethernet/intel/ice/ice_sched.c pi->root = root; root 164 drivers/net/ethernet/intel/ice/ice_sched.c parent = ice_sched_find_node_by_teid(pi->root, root 287 drivers/net/ethernet/intel/ice/ice_sched.c if (!pi || !pi->root) root 289 drivers/net/ethernet/intel/ice/ice_sched.c for (i = 0; i < pi->root->num_children; i++) root 290 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->root->children[i]->tc_num == tc) root 291 drivers/net/ethernet/intel/ice/ice_sched.c return pi->root->children[i]; root 595 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->root) { root 596 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, pi->root); root 597 drivers/net/ethernet/intel/ice/ice_sched.c pi->root = NULL; root 880 drivers/net/ethernet/intel/ice/ice_sched.c node = pi->root; root 911 drivers/net/ethernet/intel/ice/ice_sched.c node = pi->root; root 1011 drivers/net/ethernet/intel/ice/ice_sched.c if (pi->root) root 1019 drivers/net/ethernet/intel/ice/ice_sched.c if (status && pi->root) { root 1020 drivers/net/ethernet/intel/ice/ice_sched.c ice_free_sched_node(pi, pi->root); root 1021 drivers/net/ethernet/intel/ice/ice_sched.c pi->root = NULL; root 347 drivers/net/ethernet/intel/ice/ice_type.h struct ice_sched_node *root; /* Root Node per Port */ root 235 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static void *res_tracker_lookup(struct rb_root *root, u64 res_id) root 237 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct rb_node *node = root->rb_node; root 253 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c static int res_tracker_insert(struct rb_root *root, struct res_common *res) root 255 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 273 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rb_insert_color(&res->node, root); root 1286 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct rb_root *root = &tracker->res_tree[type]; root 1309 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c err = res_tracker_insert(root, res_arr[i]); root 1322 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c rb_erase(&res_arr[i]->node, root); root 5029 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c struct rb_root *root = &tracker->res_tree[RES_FS_RULE]; root 5035 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (p = rb_first(root); p; p = rb_next(p)) { root 178 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c stats->root = debugfs_create_dir(namep, *cmd); root 180 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c debugfs_create_file("average", 0400, stats->root, stats, root 182 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c debugfs_create_u64("n", 0400, stats->root, &stats->n); root 416 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c struct dentry *root, struct mlx5_rsc_debug **dbg, root 431 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c d->root = debugfs_create_dir(resn, root); root 435 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c debugfs_create_file(field[i], 0400, d->root, &d->fields[i], root 445 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c debugfs_remove_recursive(d->root); root 860 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c _rule_search(struct rb_root *root, struct fs_fte *fte) root 862 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct rb_node *node = root->rb_node; root 891 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c static inline int _rule_insert(struct rb_root *root, root 894 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct rb_node **new = &root->rb_node, *parent = NULL; root 913 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c rb_insert_color(&rule->node, root); root 933 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c struct rb_root *root = &ipsec_dev->rules_rb; root 936 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c rb_erase(&rule->node, root); root 1316 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c static void destroy_rules_rb(struct rb_root *root) root 1320 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c rbtree_postorder_for_each_entry_safe(r, tmp, root, node) { root 1321 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c rb_erase(&r->node, root); root 268 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c node->root = node; root 270 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c node->root = parent->root; root 381 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct fs_node *root; root 384 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = node->root; root 386 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (WARN_ON(root->type != FS_TYPE_NAMESPACE)) { root 391 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c ns = container_of(root, struct mlx5_flow_namespace, node); root 397 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(node); root 399 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root) root 400 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c return root->dev->priv.steering; root 406 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(node); root 408 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root) root 409 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c return root->dev; root 425 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 432 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&ft->node); root 436 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->destroy_flow_table(root, ft); root 457 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 467 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&ft->node); root 468 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_fte(root, ft, fg, fte->modify_mask, fte); root 510 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 523 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&ft->node); root 525 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->delete_fte(root, ft, fte); root 554 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 564 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&ft->node); root 565 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (fg->node.active && root->cmds->destroy_flow_group(root, ft, fg)) root 743 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c static struct mlx5_flow_table *find_closest_ft_recursive(struct fs_node *root, root 758 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (!root || root->type == FS_TYPE_PRIO_CHAINS) root 761 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c list_for_each_advance_continue(iter, &root->children, reverse) { root 810 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&prio->node); root 817 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->modify_flow_table(root, iter, ft); root 850 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&prio->node); root 856 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root->root_ft) root 857 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c min_level = root->root_ft->level; root 862 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (list_empty(&root->underlay_qpns)) { root 865 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_root_ft(root, ft, qpn, false); root 867 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c list_for_each_entry(uqp, &root->underlay_qpns, list) { root 869 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_root_ft(root, ft, root 877 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mlx5_core_warn(root->dev, root 881 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->root_ft = ft; root 889 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 904 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&ft->node); root 905 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_fte(root, ft, fg, root 1008 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&ns->node); root 1015 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (!root) { root 1020 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_lock(&root->chain_lock); root 1037 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->table_type, root 1048 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->create_flow_table(root, ft, log_table_sz, next_ft); root 1052 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = connect_flow_table(root->dev, ft, fs_prio); root 1061 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 1065 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->cmds->destroy_flow_table(root, ft); root 1069 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 1139 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&ft->node); root 1163 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->create_flow_group(root, ft, fg_in, fg); root 1285 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 1301 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&fg->node); root 1303 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->create_fte(root, ft, fg, fte); root 1305 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_fte(root, ft, fg, modify_mask, fte); root 1370 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&ft->node); root 1400 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->create_flow_group(root, ft, in, fg); root 1866 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&ft->node); root 1879 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_lock(&root->chain_lock); root 1888 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 1904 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 1957 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&ft->node); root 1963 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root->root_ft != ft) root 1968 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->root_ft = NULL; root 1972 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (list_empty(&root->underlay_qpns)) { root 1975 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_root_ft(root, new_root_ft, root 1978 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c list_for_each_entry(uqp, &root->underlay_qpns, list) { root 1980 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_root_ft(root, root 1989 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mlx5_core_warn(root->dev, root 1993 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->root_ft = new_root_ft; root 2032 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = find_root(&ft->node); root 2035 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_lock(&root->chain_lock); root 2038 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 2044 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 2819 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = dev->priv.steering->root_ns; root 2827 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_lock(&root->chain_lock); root 2829 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (!root->root_ft) { root 2834 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_root_ft(root, root->root_ft, underlay_qpn, root 2843 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c list_add_tail(&new_uqp->list, &root->underlay_qpns); root 2845 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 2850 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 2858 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root = dev->priv.steering->root_ns; root 2863 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_lock(&root->chain_lock); root 2864 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c list_for_each_entry(uqp, &root->underlay_qpns, list) { root 2878 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->update_root_ft(root, root->root_ft, underlay_qpn, root 2885 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 2891 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mutex_unlock(&root->chain_lock); root 2916 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 2920 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = get_root_namespace(dev, ns_type); root 2921 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (!root) root 2929 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->modify_header_alloc(root, ns_type, num_actions, root 2943 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 2945 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = get_root_namespace(dev, modify_hdr->ns_type); root 2946 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (WARN_ON(!root)) root 2948 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->cmds->modify_header_dealloc(root, modify_hdr); root 2960 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 2963 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = get_root_namespace(dev, ns_type); root 2964 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (!root) root 2973 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = root->cmds->packet_reformat_alloc(root, reformat_type, size, root 2988 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 2990 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = get_root_namespace(dev, pkt_reformat->ns_type); root 2991 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (WARN_ON(!root)) root 2993 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->cmds->packet_reformat_dealloc(root, pkt_reformat); root 3017 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c struct mlx5_flow_root_namespace *root; root 3021 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root = find_root(&ns->node); root 3022 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (&root->ns != ns) root 3026 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root->table_type != FS_FT_FDB) root 3029 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root->mode == mode) root 3039 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c err = cmds->create_ns(root); root 3041 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c mlx5_core_err(root->dev, "Failed to create flow namespace (%d)\n", root 3046 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->cmds->destroy_ns(root); root 3047 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->cmds = cmds; root 3048 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->mode = mode; root 127 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h struct fs_node *root; root 277 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h #define fs_list_for_each_entry(pos, root) \ root 278 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h list_for_each_entry(pos, root, node.list) root 280 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h #define fs_list_for_each_entry_safe(pos, tmp, root) \ root 281 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h list_for_each_entry_safe(pos, tmp, root, node.list) root 78 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c struct rb_root *root = &dev->priv.page_root; root 79 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c struct rb_node **new = &root->rb_node; root 108 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c rb_insert_color(&nfp->rb_node, root); root 116 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c struct rb_root *root = &dev->priv.page_root; root 117 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c struct rb_node *tmp = root->rb_node; root 1422 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct pci_dev *root = pdev->bus->self; root 1426 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (!root) root 1433 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (pci_pcie_type(root) != PCI_EXP_TYPE_ROOT_PORT) root 1436 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c aer_pos = pci_find_ext_capability(root, PCI_EXT_CAP_ID_ERR); root 1440 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c pci_write_config_dword(root, aer_pos + PCI_ERR_COR_MASK, 0xffff); root 19 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c struct device_node *root, *np = dev->of_node; root 26 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c root = of_find_node_by_path("/"); root 27 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c if (root) { root 28 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c prop = of_find_property(root, "compatible", NULL); root 30 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c of_node_put(root); root 595 drivers/of/base.c struct device_node *root; root 598 drivers/of/base.c root = of_find_node_by_path("/"); root 599 drivers/of/base.c if (root) { root 600 drivers/of/base.c rc = of_device_is_compatible(root, compat); root 601 drivers/of/base.c of_node_put(root); root 292 drivers/of/fdt.c struct device_node *root; root 312 drivers/of/fdt.c root = dad; root 331 drivers/of/fdt.c if (!dryrun && !root) root 332 drivers/of/fdt.c root = nps[depth+1]; root 345 drivers/of/fdt.c reverse_nodes(root); root 417 drivers/of/platform.c int of_platform_bus_probe(struct device_node *root, root 424 drivers/of/platform.c root = root ? of_node_get(root) : of_find_node_by_path("/"); root 425 drivers/of/platform.c if (!root) root 429 drivers/of/platform.c pr_debug(" starting at: %pOF\n", root); root 432 drivers/of/platform.c if (of_match_node(matches, root)) { root 433 drivers/of/platform.c rc = of_platform_bus_create(root, matches, NULL, parent, false); root 434 drivers/of/platform.c } else for_each_child_of_node(root, child) { root 444 drivers/of/platform.c of_node_put(root); root 468 drivers/of/platform.c int of_platform_populate(struct device_node *root, root 476 drivers/of/platform.c root = root ? of_node_get(root) : of_find_node_by_path("/"); root 477 drivers/of/platform.c if (!root) root 481 drivers/of/platform.c pr_debug(" starting at: %pOF\n", root); root 483 drivers/of/platform.c for_each_child_of_node(root, child) { root 490 drivers/of/platform.c of_node_set_flag(root, OF_POPULATED_BUS); root 492 drivers/of/platform.c of_node_put(root); root 497 drivers/of/platform.c int of_platform_default_populate(struct device_node *root, root 501 drivers/of/platform.c return of_platform_populate(root, of_default_bus_match_table, lookup, root 35 drivers/oprofile/oprof.h void oprofile_create_files(struct dentry *root); root 178 drivers/oprofile/oprofile_files.c void oprofile_create_files(struct dentry *root) root 186 drivers/oprofile/oprofile_files.c oprofilefs_create_file(root, "enable", &enable_fops); root 187 drivers/oprofile/oprofile_files.c oprofilefs_create_file_perm(root, "dump", &dump_fops, 0666); root 188 drivers/oprofile/oprofile_files.c oprofilefs_create_file(root, "buffer", &event_buffer_fops); root 189 drivers/oprofile/oprofile_files.c oprofilefs_create_ulong(root, "buffer_size", &oprofile_buffer_size); root 190 drivers/oprofile/oprofile_files.c oprofilefs_create_ulong(root, "buffer_watershed", &oprofile_buffer_watershed); root 191 drivers/oprofile/oprofile_files.c oprofilefs_create_ulong(root, "cpu_buffer_size", &oprofile_cpu_buffer_size); root 192 drivers/oprofile/oprofile_files.c oprofilefs_create_file(root, "cpu_type", &cpu_type_fops); root 193 drivers/oprofile/oprofile_files.c oprofilefs_create_file(root, "backtrace_depth", &depth_fops); root 194 drivers/oprofile/oprofile_files.c oprofilefs_create_file(root, "pointer_size", &pointer_size_fops); root 196 drivers/oprofile/oprofile_files.c oprofilefs_create_file(root, "time_slice", &timeout_fops); root 198 drivers/oprofile/oprofile_files.c oprofile_create_stats_files(root); root 200 drivers/oprofile/oprofile_files.c oprofile_ops.create_files(root); root 142 drivers/oprofile/oprofile_perf.c static int oprofile_perf_create_files(struct dentry *root) root 151 drivers/oprofile/oprofile_perf.c dir = oprofilefs_mkdir(root, buf); root 41 drivers/oprofile/oprofile_stats.c void oprofile_create_stats_files(struct dentry *root) root 49 drivers/oprofile/oprofile_stats.c dir = oprofilefs_mkdir(root, "stats"); root 31 drivers/oprofile/oprofile_stats.h void oprofile_create_stats_files(struct dentry *root); root 136 drivers/oprofile/oprofilefs.c static int __oprofilefs_create_file(struct dentry *root, char const *name, root 142 drivers/oprofile/oprofilefs.c if (!root) root 145 drivers/oprofile/oprofilefs.c inode_lock(d_inode(root)); root 146 drivers/oprofile/oprofilefs.c dentry = d_alloc_name(root, name); root 148 drivers/oprofile/oprofilefs.c inode_unlock(d_inode(root)); root 151 drivers/oprofile/oprofilefs.c inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); root 154 drivers/oprofile/oprofilefs.c inode_unlock(d_inode(root)); root 160 drivers/oprofile/oprofilefs.c inode_unlock(d_inode(root)); root 165 drivers/oprofile/oprofilefs.c int oprofilefs_create_ulong(struct dentry *root, root 168 drivers/oprofile/oprofilefs.c return __oprofilefs_create_file(root, name, root 173 drivers/oprofile/oprofilefs.c int oprofilefs_create_ro_ulong(struct dentry *root, root 176 drivers/oprofile/oprofilefs.c return __oprofilefs_create_file(root, name, root 195 drivers/oprofile/oprofilefs.c int oprofilefs_create_ro_atomic(struct dentry *root, root 198 drivers/oprofile/oprofilefs.c return __oprofilefs_create_file(root, name, root 203 drivers/oprofile/oprofilefs.c int oprofilefs_create_file(struct dentry *root, root 206 drivers/oprofile/oprofilefs.c return __oprofilefs_create_file(root, name, fops, 0644, NULL); root 210 drivers/oprofile/oprofilefs.c int oprofilefs_create_file_perm(struct dentry *root, root 213 drivers/oprofile/oprofilefs.c return __oprofilefs_create_file(root, name, fops, perm, NULL); root 64 drivers/parisc/eisa.c struct eisa_root_device root; root 369 drivers/parisc/eisa.c eisa_dev.root.dev = &dev->dev; root 370 drivers/parisc/eisa.c dev_set_drvdata(&dev->dev, &eisa_dev.root); root 371 drivers/parisc/eisa.c eisa_dev.root.bus_base_addr = 0; root 372 drivers/parisc/eisa.c eisa_dev.root.res = &eisa_dev.hba.io_space; root 373 drivers/parisc/eisa.c eisa_dev.root.slots = result; root 374 drivers/parisc/eisa.c eisa_dev.root.dma_mask = 0xffffffff; /* wild guess */ root 375 drivers/parisc/eisa.c if (eisa_root_register (&eisa_dev.root)) { root 571 drivers/parisc/lba_pci.c truncate_pat_collision(struct resource *root, struct resource *new) root 575 drivers/parisc/lba_pci.c struct resource *tmp = root->child; root 577 drivers/parisc/lba_pci.c if (end <= start || start < root->start || !tmp) root 1888 drivers/parisc/sba_iommu.c struct proc_dir_entry *root; root 1958 drivers/parisc/sba_iommu.c root = proc_mckinley_root; root 1963 drivers/parisc/sba_iommu.c root = proc_runway_root; root 1967 drivers/parisc/sba_iommu.c proc_create_single("sba_iommu", 0, root, sba_proc_info); root 1968 drivers/parisc/sba_iommu.c proc_create_single("sba_iommu-bitmap", 0, root, sba_proc_bitmap_info); root 47 drivers/pci/controller/dwc/pcie-al.c struct acpi_pci_root *root = acpi_driver_data(adev); root 60 drivers/pci/controller/dwc/pcie-al.c ret = acpi_get_rc_resources(dev, "AMZN0001", root->segment, res); root 63 drivers/pci/controller/dwc/pcie-al.c root->segment); root 80 drivers/pci/controller/dwc/pcie-hisi.c struct acpi_pci_root *root = acpi_driver_data(adev); root 93 drivers/pci/controller/dwc/pcie-hisi.c ret = acpi_get_rc_resources(dev, "HISI0081", root->segment, res); root 354 drivers/pci/controller/pci-thunder-pem.c static void thunder_pem_legacy_fw(struct acpi_pci_root *root, root 357 drivers/pci/controller/pci-thunder-pem.c int node = acpi_get_node(root->device->handle); root 363 drivers/pci/controller/pci-thunder-pem.c index = root->segment - PEM_MIN_DOM_IN_NODE; root 374 drivers/pci/controller/pci-thunder-pem.c struct acpi_pci_root *root = acpi_driver_data(adev); root 382 drivers/pci/controller/pci-thunder-pem.c ret = acpi_get_rc_resources(dev, "CAVA02B", root->segment, res_pem); root 389 drivers/pci/controller/pci-thunder-pem.c thunder_pem_legacy_fw(root, res_pem); root 395 drivers/pci/controller/pci-thunder-pem.c thunder_pem_reserve_range(dev, root->segment, res_pem); root 399 drivers/pci/controller/pci-thunder-pem.c thunder_pem_reserve_range(dev, root->segment, &cfg->res); root 512 drivers/pci/endpoint/pci-ep-cfs.c struct config_group *root = &pci_ep_cfs_subsys.su_group; root 514 drivers/pci/endpoint/pci-ep-cfs.c config_group_init(root); root 519 drivers/pci/endpoint/pci-ep-cfs.c ret, root->cg_item.ci_namebuf); root 523 drivers/pci/endpoint/pci-ep-cfs.c functions_group = configfs_register_default_group(root, "functions", root 533 drivers/pci/endpoint/pci-ep-cfs.c configfs_register_default_group(root, "controllers", root 71 drivers/pci/hotplug/acpi_pcihp.c const struct acpi_pci_root *root; root 82 drivers/pci/hotplug/acpi_pcihp.c root = acpi_pci_find_root(ACPI_HANDLE(&host->dev)); root 83 drivers/pci/hotplug/acpi_pcihp.c if (!root) root 90 drivers/pci/hotplug/acpi_pcihp.c if (root->osc_support_set) { root 184 drivers/pci/hotplug/cpqphp_sysfs.c static struct dentry *root; root 188 drivers/pci/hotplug/cpqphp_sysfs.c if (!root) root 189 drivers/pci/hotplug/cpqphp_sysfs.c root = debugfs_create_dir("cpqhp", NULL); root 194 drivers/pci/hotplug/cpqphp_sysfs.c debugfs_remove(root); root 200 drivers/pci/hotplug/cpqphp_sysfs.c S_IRUGO, root, ctrl, &debug_ops); root 298 drivers/pci/p2pdma.c struct pci_dev *root = pci_get_slot(host->bus, PCI_DEVFN(0, 0)); root 302 drivers/pci/p2pdma.c if (!root) root 305 drivers/pci/p2pdma.c vendor = root->vendor; root 306 drivers/pci/p2pdma.c device = root->device; root 307 drivers/pci/p2pdma.c pci_dev_put(root); root 829 drivers/pci/pci-acpi.c struct acpi_pci_root *root; root 832 drivers/pci/pci-acpi.c root = acpi_driver_data(adev); root 833 drivers/pci/pci-acpi.c pci_pme_wakeup_bus(root->bus); root 941 drivers/pci/pci-acpi.c struct pci_dev *root; root 951 drivers/pci/pci-acpi.c root = pci_find_pcie_root_port(dev); root 952 drivers/pci/pci-acpi.c if (!root) root 955 drivers/pci/pci-acpi.c adev = ACPI_COMPANION(&root->dev); root 956 drivers/pci/pci-acpi.c if (root == dev) { root 961 drivers/pci/pci-acpi.c if (!adev && !pci_dev_is_added(root)) root 962 drivers/pci/pci-acpi.c adev = acpi_pci_find_companion(&root->dev); root 52 drivers/pci/pcie/aspm.c struct pcie_link_state *root; /* pointer to the root port link */ root 883 drivers/pci/pcie/aspm.c link->root = link; root 894 drivers/pci/pcie/aspm.c link->root = link->parent->root; root 970 drivers/pci/pcie/aspm.c static void pcie_update_aspm_capable(struct pcie_link_state *root) root 973 drivers/pci/pcie/aspm.c BUG_ON(root->parent); root 975 drivers/pci/pcie/aspm.c if (link->root != root) root 982 drivers/pci/pcie/aspm.c if (link->root != root) root 997 drivers/pci/pcie/aspm.c struct pcie_link_state *link, *root, *parent_link; root 1012 drivers/pci/pcie/aspm.c root = link->root; root 1023 drivers/pci/pcie/aspm.c pcie_update_aspm_capable(root); root 1044 drivers/pci/pcie/aspm.c pcie_update_aspm_capable(link->root); root 1213 drivers/pci/pcie/aspm.c struct pcie_link_state *link, *root = pdev->link_state->root; root 1227 drivers/pci/pcie/aspm.c if (link->root != root) root 2001 drivers/pci/probe.c struct pci_dev *root; root 2014 drivers/pci/probe.c root = pci_find_pcie_root_port(dev); root 2015 drivers/pci/probe.c if (!root) root 2018 drivers/pci/probe.c if (root->dev_flags & PCI_DEV_FLAGS_NO_RELAXED_ORDERING) { root 133 drivers/pci/setup-res.c struct resource *root, *conflict; root 149 drivers/pci/setup-res.c root = pci_find_parent_resource(dev, res); root 150 drivers/pci/setup-res.c if (!root) { root 157 drivers/pci/setup-res.c conflict = request_resource_conflict(root, res); root 197 drivers/pci/setup-res.c struct resource *root, *conflict; root 210 drivers/pci/setup-res.c root = pci_find_parent_resource(dev, res); root 211 drivers/pci/setup-res.c if (!root) { root 213 drivers/pci/setup-res.c root = &ioport_resource; root 215 drivers/pci/setup-res.c root = &iomem_resource; root 220 drivers/pci/setup-res.c conflict = request_resource_conflict(root, res); root 629 drivers/pcmcia/yenta_socket.c static int yenta_search_one_res(struct resource *root, struct resource *res, root 640 drivers/pcmcia/yenta_socket.c unsigned long avail = root->end - root->start; root 659 drivers/pcmcia/yenta_socket.c if (allocate_resource(root, res, size, start, end, align, root 674 drivers/pcmcia/yenta_socket.c struct resource *root; root 677 drivers/pcmcia/yenta_socket.c pci_bus_for_each_resource(socket->dev->bus, root, i) { root 678 drivers/pcmcia/yenta_socket.c if (!root) root 681 drivers/pcmcia/yenta_socket.c if ((res->flags ^ root->flags) & root 685 drivers/pcmcia/yenta_socket.c if (yenta_search_one_res(root, res, min)) root 261 drivers/platform/x86/acer-wmi.c struct dentry *root; root 2119 drivers/platform/x86/acer-wmi.c debugfs_remove_recursive(interface->debug.root); root 2124 drivers/platform/x86/acer-wmi.c interface->debug.root = debugfs_create_dir("acer-wmi", NULL); root 2126 drivers/platform/x86/acer-wmi.c debugfs_create_u32("devices", S_IRUGO, interface->debug.root, root 145 drivers/platform/x86/asus-wmi.c struct dentry *root; root 2377 drivers/platform/x86/asus-wmi.c debugfs_remove_recursive(asus->debug.root); root 2384 drivers/platform/x86/asus-wmi.c asus->debug.root = debugfs_create_dir(asus->driver->name, NULL); root 2386 drivers/platform/x86/asus-wmi.c debugfs_create_x32("method_id", S_IRUGO | S_IWUSR, asus->debug.root, root 2389 drivers/platform/x86/asus-wmi.c debugfs_create_x32("dev_id", S_IRUGO | S_IWUSR, asus->debug.root, root 2392 drivers/platform/x86/asus-wmi.c debugfs_create_x32("ctrl_param", S_IRUGO | S_IWUSR, asus->debug.root, root 2400 drivers/platform/x86/asus-wmi.c asus->debug.root, node, root 310 drivers/platform/x86/samsung-laptop.c struct dentry *root; root 1276 drivers/platform/x86/samsung-laptop.c debugfs_remove_recursive(samsung->debug.root); root 1281 drivers/platform/x86/samsung-laptop.c struct dentry *root; root 1283 drivers/platform/x86/samsung-laptop.c root = debugfs_create_dir("samsung-laptop", NULL); root 1284 drivers/platform/x86/samsung-laptop.c samsung->debug.root = root; root 1295 drivers/platform/x86/samsung-laptop.c debugfs_create_u16("command", S_IRUGO | S_IWUSR, root, root 1297 drivers/platform/x86/samsung-laptop.c debugfs_create_u32("d0", S_IRUGO | S_IWUSR, root, root 1299 drivers/platform/x86/samsung-laptop.c debugfs_create_u32("d1", S_IRUGO | S_IWUSR, root, root 1301 drivers/platform/x86/samsung-laptop.c debugfs_create_u16("d2", S_IRUGO | S_IWUSR, root, root 1303 drivers/platform/x86/samsung-laptop.c debugfs_create_u8("d3", S_IRUGO | S_IWUSR, root, root 1305 drivers/platform/x86/samsung-laptop.c debugfs_create_blob("data", S_IRUGO | S_IWUSR, root, root 1307 drivers/platform/x86/samsung-laptop.c debugfs_create_blob("f0000_segment", S_IRUSR | S_IWUSR, root, root 1309 drivers/platform/x86/samsung-laptop.c debugfs_create_file("call", S_IFREG | S_IRUGO, root, samsung, root 1311 drivers/platform/x86/samsung-laptop.c debugfs_create_blob("sdiag", S_IRUGO | S_IWUSR, root, root 550 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(cmos, root, "\\UCMS", /* R50, R50e, R50p, R51, */ root 4965 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(vid, root, root 4974 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(vid2, root, "\\_SB.PCI0.AGPB.VID"); /* G41 */ root 5531 drivers/platform/x86/thinkpad_acpi.c TPACPI_HANDLE(lght, root, "\\LGHT"); /* A21e, A2xm/p, T20-22, X20-21 */ root 72 drivers/ptp/ptp_qoriq_debugfs.c struct dentry *root; root 74 drivers/ptp/ptp_qoriq_debugfs.c root = debugfs_create_dir(dev_name(ptp_qoriq->dev), NULL); root 75 drivers/ptp/ptp_qoriq_debugfs.c if (IS_ERR(root)) root 77 drivers/ptp/ptp_qoriq_debugfs.c if (!root) root 80 drivers/ptp/ptp_qoriq_debugfs.c ptp_qoriq->debugfs_root = root; root 82 drivers/ptp/ptp_qoriq_debugfs.c if (!debugfs_create_file_unsafe("fiper1-loopback", 0600, root, root 85 drivers/ptp/ptp_qoriq_debugfs.c if (!debugfs_create_file_unsafe("fiper2-loopback", 0600, root, root 91 drivers/ptp/ptp_qoriq_debugfs.c debugfs_remove_recursive(root); root 1910 drivers/scsi/libsas/sas_expander.c static int sas_discover_bfs_by_root_level(struct domain_device *root, root 1913 drivers/scsi/libsas/sas_expander.c struct expander_device *ex_root = &root->ex_dev; root 609 drivers/soc/amlogic/meson-clk-measure.c struct dentry *root, *clks; root 638 drivers/soc/amlogic/meson-clk-measure.c root = debugfs_create_dir("meson-clk-msr", NULL); root 639 drivers/soc/amlogic/meson-clk-measure.c clks = debugfs_create_dir("clks", root); root 641 drivers/soc/amlogic/meson-clk-measure.c debugfs_create_file("measure_summary", 0444, root, root 27 drivers/soc/bcm/brcmstb/common.c struct device_node *root; root 29 drivers/soc/bcm/brcmstb/common.c root = of_find_node_by_path("/"); root 30 drivers/soc/bcm/brcmstb/common.c if (!root) root 33 drivers/soc/bcm/brcmstb/common.c match = of_match_node(brcmstb_machine_match, root); root 34 drivers/soc/bcm/brcmstb/common.c of_node_put(root); root 31 drivers/soc/fsl/guts.c static struct device_node *root; root 161 drivers/soc/fsl/guts.c root = of_find_node_by_path("/"); root 162 drivers/soc/fsl/guts.c if (of_property_read_string(root, "model", &machine)) root 163 drivers/soc/fsl/guts.c of_property_read_string_index(root, "compatible", 0, &machine); root 200 drivers/soc/fsl/guts.c of_node_put(root); root 52 drivers/soc/samsung/exynos-chipid.c struct device_node *root; root 74 drivers/soc/samsung/exynos-chipid.c root = of_find_node_by_path("/"); root 75 drivers/soc/samsung/exynos-chipid.c of_property_read_string(root, "model", &soc_dev_attr->machine); root 76 drivers/soc/samsung/exynos-chipid.c of_node_put(root); root 23 drivers/soc/tegra/common.c struct device_node *root; root 25 drivers/soc/tegra/common.c root = of_find_node_by_path("/"); root 26 drivers/soc/tegra/common.c if (!root) root 29 drivers/soc/tegra/common.c match = of_match_node(tegra_machine_match, root); root 30 drivers/soc/tegra/common.c of_node_put(root); root 332 drivers/soundwire/cadence_master.c void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root) root 334 drivers/soundwire/cadence_master.c debugfs_create_file("cdns-registers", 0400, root, cdns, &cdns_reg_fops); root 167 drivers/soundwire/cadence_master.h void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root); root 262 drivers/soundwire/intel.c struct dentry *root = sdw->cdns.bus.debugfs; root 264 drivers/soundwire/intel.c if (!root) root 267 drivers/soundwire/intel.c sdw->debugfs = debugfs_create_dir("intel-sdw", root); root 3536 drivers/staging/exfat/exfat_super.c static int exfat_show_options(struct seq_file *m, struct dentry *root) root 3538 drivers/staging/exfat/exfat_super.c struct exfat_sb_info *sbi = EXFAT_SB(root->d_sb); root 60 drivers/staging/greybus/camera.c struct dentry *root; root 1176 drivers/staging/greybus/camera.c gcam->debugfs.root = debugfs_create_dir(dirname, gb_debugfs_get()); root 1191 drivers/staging/greybus/camera.c gcam->debugfs.root, gcam, root 1200 drivers/staging/greybus/camera.c debugfs_remove_recursive(gcam->debugfs.root); root 41 drivers/staging/greybus/loopback.c struct dentry *root; root 1029 drivers/staging/greybus/loopback.c gb->file = debugfs_create_file(name, S_IFREG | 0444, gb_dev.root, gb, root 1149 drivers/staging/greybus/loopback.c gb_dev.root = debugfs_create_dir("gb_loopback", NULL); root 1164 drivers/staging/greybus/loopback.c debugfs_remove_recursive(gb_dev.root); root 1171 drivers/staging/greybus/loopback.c debugfs_remove_recursive(gb_dev.root); root 1488 drivers/thermal/tegra/soctherm.c struct dentry *root; root 1490 drivers/thermal/tegra/soctherm.c root = debugfs_create_dir("soctherm", NULL); root 1492 drivers/thermal/tegra/soctherm.c tegra->debugfs_dir = root; root 1494 drivers/thermal/tegra/soctherm.c debugfs_create_file("reg_contents", 0644, root, pdev, ®s_fops); root 293 drivers/usb/dwc2/debugfs.c struct dentry *root; root 296 drivers/usb/dwc2/debugfs.c root = hsotg->debug_root; root 299 drivers/usb/dwc2/debugfs.c debugfs_create_file("state", 0444, root, hsotg, &state_fops); root 300 drivers/usb/dwc2/debugfs.c debugfs_create_file("testmode", 0644, root, hsotg, &testmode_fops); root 301 drivers/usb/dwc2/debugfs.c debugfs_create_file("fifo", 0444, root, hsotg, &fifo_fops); root 309 drivers/usb/dwc2/debugfs.c debugfs_create_file(ep->name, 0444, root, ep, &ep_fops); root 317 drivers/usb/dwc2/debugfs.c debugfs_create_file(ep->name, 0444, root, ep, &ep_fops); root 771 drivers/usb/dwc2/debugfs.c struct dentry *root; root 773 drivers/usb/dwc2/debugfs.c root = debugfs_create_dir(dev_name(hsotg->dev), NULL); root 774 drivers/usb/dwc2/debugfs.c hsotg->debug_root = root; root 776 drivers/usb/dwc2/debugfs.c debugfs_create_file("params", 0444, root, hsotg, ¶ms_fops); root 777 drivers/usb/dwc2/debugfs.c debugfs_create_file("hw_params", 0444, root, hsotg, &hw_params_fops); root 778 drivers/usb/dwc2/debugfs.c debugfs_create_file("dr_mode", 0444, root, hsotg, &dr_mode_fops); root 794 drivers/usb/dwc2/debugfs.c debugfs_create_regset32("regdump", 0444, root, hsotg->regset); root 1175 drivers/usb/dwc3/core.h struct dentry *root; root 907 drivers/usb/dwc3/debugfs.c struct dentry *root; root 919 drivers/usb/dwc3/debugfs.c root = debugfs_create_dir(dev_name(dwc->dev), NULL); root 920 drivers/usb/dwc3/debugfs.c dwc->root = root; root 922 drivers/usb/dwc3/debugfs.c debugfs_create_regset32("regdump", S_IRUGO, root, dwc->regset); root 924 drivers/usb/dwc3/debugfs.c debugfs_create_file("lsp_dump", S_IRUGO | S_IWUSR, root, dwc, root 928 drivers/usb/dwc3/debugfs.c debugfs_create_file("mode", S_IRUGO | S_IWUSR, root, dwc, root 934 drivers/usb/dwc3/debugfs.c debugfs_create_file("testmode", S_IRUGO | S_IWUSR, root, dwc, root 936 drivers/usb/dwc3/debugfs.c debugfs_create_file("link_state", S_IRUGO | S_IWUSR, root, dwc, root 938 drivers/usb/dwc3/debugfs.c dwc3_debugfs_create_endpoint_dirs(dwc, root); root 944 drivers/usb/dwc3/debugfs.c debugfs_remove_recursive(dwc->root); root 226 drivers/usb/gadget/udc/atmel_usba_udc.c struct dentry *root; root 229 drivers/usb/gadget/udc/atmel_usba_udc.c root = debugfs_create_dir(udc->gadget.name, NULL); root 230 drivers/usb/gadget/udc/atmel_usba_udc.c udc->debugfs_root = root; root 236 drivers/usb/gadget/udc/atmel_usba_udc.c debugfs_create_file_size("regs", 0400, root, udc, root 2246 drivers/usb/gadget/udc/bcm63xx_udc.c struct dentry *root; root 2251 drivers/usb/gadget/udc/bcm63xx_udc.c root = debugfs_create_dir(udc->gadget.name, NULL); root 2252 drivers/usb/gadget/udc/bcm63xx_udc.c udc->debugfs_root = root; root 2254 drivers/usb/gadget/udc/bcm63xx_udc.c debugfs_create_file("usbd", 0400, root, udc, &bcm63xx_usbd_dbg_fops); root 2255 drivers/usb/gadget/udc/bcm63xx_udc.c debugfs_create_file("iudma", 0400, root, udc, &bcm63xx_iudma_dbg_fops); root 208 drivers/usb/gadget/udc/pxa27x_udc.c struct dentry *root; root 210 drivers/usb/gadget/udc/pxa27x_udc.c root = debugfs_create_dir(udc->gadget.name, NULL); root 211 drivers/usb/gadget/udc/pxa27x_udc.c udc->debugfs_root = root; root 213 drivers/usb/gadget/udc/pxa27x_udc.c debugfs_create_file("udcstate", 0400, root, udc, &state_dbg_fops); root 214 drivers/usb/gadget/udc/pxa27x_udc.c debugfs_create_file("queues", 0400, root, udc, &queues_dbg_fops); root 215 drivers/usb/gadget/udc/pxa27x_udc.c debugfs_create_file("epstate", 0400, root, udc, &eps_dbg_fops); root 849 drivers/usb/host/fotg210-hcd.c struct dentry *root; root 851 drivers/usb/host/fotg210-hcd.c root = debugfs_create_dir(bus->bus_name, fotg210_debug_root); root 852 drivers/usb/host/fotg210-hcd.c fotg210->debug_dir = root; root 854 drivers/usb/host/fotg210-hcd.c debugfs_create_file("async", S_IRUGO, root, bus, &debug_async_fops); root 855 drivers/usb/host/fotg210-hcd.c debugfs_create_file("periodic", S_IRUGO, root, bus, root 857 drivers/usb/host/fotg210-hcd.c debugfs_create_file("registers", S_IRUGO, root, bus, root 420 drivers/usb/host/imx21-dbg.c struct dentry *root; root 422 drivers/usb/host/imx21-dbg.c root = debugfs_create_dir(dev_name(imx21->dev), NULL); root 423 drivers/usb/host/imx21-dbg.c imx21->debug_root = root; root 425 drivers/usb/host/imx21-dbg.c debugfs_create_file("status", S_IRUGO, root, imx21, &debug_status_fops); root 426 drivers/usb/host/imx21-dbg.c debugfs_create_file("dmem", S_IRUGO, root, imx21, &debug_dmem_fops); root 427 drivers/usb/host/imx21-dbg.c debugfs_create_file("etd", S_IRUGO, root, imx21, &debug_etd_fops); root 428 drivers/usb/host/imx21-dbg.c debugfs_create_file("statistics", S_IRUGO, root, imx21, root 430 drivers/usb/host/imx21-dbg.c debugfs_create_file("isoc", S_IRUGO, root, imx21, &debug_isoc_fops); root 765 drivers/usb/host/ohci-dbg.c struct dentry *root; root 767 drivers/usb/host/ohci-dbg.c root = debugfs_create_dir(bus->bus_name, ohci_debug_root); root 768 drivers/usb/host/ohci-dbg.c ohci->debug_dir = root; root 770 drivers/usb/host/ohci-dbg.c debugfs_create_file("async", S_IRUGO, root, ohci, &debug_async_fops); root 771 drivers/usb/host/ohci-dbg.c debugfs_create_file("periodic", S_IRUGO, root, ohci, root 773 drivers/usb/host/ohci-dbg.c debugfs_create_file("registers", S_IRUGO, root, ohci, root 454 drivers/usb/host/xhci-debugfs.c epriv->root = xhci_debugfs_create_ring_dir(xhci, root 457 drivers/usb/host/xhci-debugfs.c spriv->root); root 472 drivers/usb/host/xhci-debugfs.c debugfs_remove_recursive(epriv->root); root 487 drivers/usb/host/xhci-debugfs.c priv->root = debugfs_create_dir(priv->name, xhci->debugfs_slots); root 492 drivers/usb/host/xhci-debugfs.c "ep00", priv->root); root 494 drivers/usb/host/xhci-debugfs.c xhci_debugfs_create_context_files(xhci, priv->root, slot_id); root 508 drivers/usb/host/xhci-debugfs.c debugfs_remove_recursive(priv->root); root 93 drivers/usb/host/xhci-debugfs.h struct dentry *root; root 98 drivers/usb/host/xhci-debugfs.h struct dentry *root; root 523 drivers/usb/mtu3/mtu3_debugfs.c struct dentry *root = ssusb->dbgfs_root; root 525 drivers/usb/mtu3/mtu3_debugfs.c debugfs_create_file("mode", 0644, root, ssusb, &ssusb_mode_fops); root 526 drivers/usb/mtu3/mtu3_debugfs.c debugfs_create_file("vbus", 0644, root, ssusb, &ssusb_vbus_fops); root 326 drivers/usb/musb/musb_debugfs.c struct dentry *root; root 328 drivers/usb/musb/musb_debugfs.c root = debugfs_create_dir(dev_name(musb->controller), NULL); root 329 drivers/usb/musb/musb_debugfs.c musb->debugfs_root = root; root 331 drivers/usb/musb/musb_debugfs.c debugfs_create_file("regdump", S_IRUGO, root, musb, &musb_regdump_fops); root 332 drivers/usb/musb/musb_debugfs.c debugfs_create_file("testmode", S_IRUGO | S_IWUSR, root, musb, root 334 drivers/usb/musb/musb_debugfs.c debugfs_create_file("softconnect", S_IRUGO | S_IWUSR, root, musb, root 410 drivers/usb/musb/musb_dsps.c struct dentry *root; root 414 drivers/usb/musb/musb_dsps.c root = debugfs_create_dir(buf, NULL); root 415 drivers/usb/musb/musb_dsps.c glue->dbgfs_root = root; root 421 drivers/usb/musb/musb_dsps.c debugfs_create_regset32("regdump", S_IRUGO, root, &glue->regset); root 737 drivers/video/fbdev/aty/radeon_monitor.c struct device_node *root; root 741 drivers/video/fbdev/aty/radeon_monitor.c root = of_find_node_by_path("/"); root 742 drivers/video/fbdev/aty/radeon_monitor.c if (root && model) { root 744 drivers/video/fbdev/aty/radeon_monitor.c cp = of_get_property(root, "model", &len); root 747 drivers/video/fbdev/aty/radeon_monitor.c of_node_put(root); root 29 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c bool root; root 111 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c static void __init omapdss_add_to_list(struct device_node *node, bool root) root 117 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c n->root = root; root 134 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c static void __init omapdss_walk_device(struct device_node *node, bool root) root 138 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c omapdss_add_to_list(node, root); root 207 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c if (!n->root) root 42 drivers/xen/xenbus/xenbus.h char *root; root 498 drivers/xen/xenbus/xenbus_probe.c dir = xenbus_directory(XBT_NIL, bus->root, type, &dir_n); root 518 drivers/xen/xenbus/xenbus_probe.c dir = xenbus_directory(XBT_NIL, bus->root, "", &dir_n); root 561 drivers/xen/xenbus/xenbus_probe.c const char *p, *root; root 580 drivers/xen/xenbus/xenbus_probe.c root = kasprintf(GFP_KERNEL, "%.*s", rootlen, node); root 581 drivers/xen/xenbus/xenbus_probe.c if (!root) root 584 drivers/xen/xenbus/xenbus_probe.c dev = xenbus_device_find(root, &bus->bus); root 586 drivers/xen/xenbus/xenbus_probe.c xenbus_probe_node(bus, type, root); root 590 drivers/xen/xenbus/xenbus_probe.c kfree(root); root 120 drivers/xen/xenbus/xenbus_probe_backend.c if (add_uevent_var(env, "XENBUS_BASE_PATH=%s", bus->root)) root 163 drivers/xen/xenbus/xenbus_probe_backend.c nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, domid); root 190 drivers/xen/xenbus/xenbus_probe_backend.c .root = "backend", root 66 drivers/xen/xenbus/xenbus_probe_frontend.c nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name); root 138 drivers/xen/xenbus/xenbus_probe_frontend.c .root = "device", root 106 fs/9p/v9fs.c int v9fs_show_options(struct seq_file *m, struct dentry *root) root 108 fs/9p/v9fs.c struct v9fs_session_info *v9ses = root->d_sb->s_fs_info; root 127 fs/9p/v9fs.h extern int v9fs_show_options(struct seq_file *m, struct dentry *root); root 112 fs/9p/vfs_super.c struct dentry *root = NULL; root 150 fs/9p/vfs_super.c root = d_make_root(inode); root 151 fs/9p/vfs_super.c if (!root) { root 155 fs/9p/vfs_super.c sb->s_root = root; root 163 fs/9p/vfs_super.c d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); root 164 fs/9p/vfs_super.c v9fs_stat2inode_dotl(st, d_inode(root), 0); root 174 fs/9p/vfs_super.c d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); root 175 fs/9p/vfs_super.c v9fs_stat2inode(st, d_inode(root), sb, 0); root 183 fs/9p/vfs_super.c v9fs_fid_add(root, fid); root 147 fs/adfs/super.c static int adfs_show_options(struct seq_file *seq, struct dentry *root) root 149 fs/adfs/super.c struct adfs_sb_info *asb = ADFS_SB(root->d_sb); root 386 fs/adfs/super.c struct inode *root; root 482 fs/adfs/super.c root_obj.parent_id = root_obj.indaddr = le32_to_cpu(dr->root); root 511 fs/adfs/super.c root = adfs_iget(sb, &root_obj); root 512 fs/adfs/super.c sb->s_root = d_make_root(root); root 29 fs/affs/super.c static int affs_show_options(struct seq_file *m, struct dentry *root); root 190 fs/affs/super.c parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, root 201 fs/affs/super.c *root = -1; root 253 fs/affs/super.c if (match_int(&args[0], root)) root 295 fs/affs/super.c static int affs_show_options(struct seq_file *m, struct dentry *root) root 297 fs/affs/super.c struct super_block *sb = root->d_sb; root 191 fs/afs/dynroot.c struct dentry *root, *subdir; root 198 fs/afs/dynroot.c root = sb->s_root; root 199 fs/afs/dynroot.c inode_lock(root->d_inode); root 200 fs/afs/dynroot.c subdir = lookup_one_len(cell->name, root, cell->name_len); root 210 fs/afs/dynroot.c inode_unlock(root->d_inode); root 221 fs/afs/dynroot.c struct dentry *root, *subdir; root 226 fs/afs/dynroot.c root = sb->s_root; root 227 fs/afs/dynroot.c inode_lock(root->d_inode); root 230 fs/afs/dynroot.c subdir = try_lookup_one_len(cell->name, root, cell->name_len); root 245 fs/afs/dynroot.c inode_unlock(root->d_inode); root 284 fs/afs/dynroot.c struct dentry *root = sb->s_root, *subdir, *tmp; root 292 fs/afs/dynroot.c inode_lock(root->d_inode); root 295 fs/afs/dynroot.c list_for_each_entry_safe(subdir, tmp, &root->d_subdirs, d_child) { root 302 fs/afs/dynroot.c inode_unlock(root->d_inode); root 398 fs/afs/inode.c struct inode *afs_iget_pseudo_dir(struct super_block *sb, bool root) root 417 fs/afs/inode.c if (root) { root 444 fs/afs/inode.c if (root) { root 459 fs/afs/inode.c if (!root) { root 38 fs/afs/super.c static int afs_show_devname(struct seq_file *m, struct dentry *root); root 39 fs/afs/super.c static int afs_show_options(struct seq_file *m, struct dentry *root); root 161 fs/afs/super.c static int afs_show_devname(struct seq_file *m, struct dentry *root) root 163 fs/afs/super.c struct afs_super_info *as = AFS_FS_S(root->d_sb); root 195 fs/afs/super.c static int afs_show_options(struct seq_file *m, struct dentry *root) root 197 fs/afs/super.c struct afs_super_info *as = AFS_FS_S(root->d_sb); root 202 fs/afs/super.c if (test_bit(AFS_VNODE_AUTOCELL, &AFS_FS_I(d_inode(root))->flags)) root 584 fs/afs/super.c fc->root = dget(sb->s_root); root 98 fs/autofs/expire.c struct dentry *root) root 100 fs/autofs/expire.c struct autofs_sb_info *sbi = autofs_sbi(root->d_sb); root 104 fs/autofs/expire.c spin_lock(&root->d_lock); root 105 fs/autofs/expire.c q = positive_after(root, prev); root 106 fs/autofs/expire.c spin_unlock(&root->d_lock); root 116 fs/autofs/expire.c struct dentry *root) root 118 fs/autofs/expire.c struct autofs_sb_info *sbi = autofs_sbi(root->d_sb); root 122 fs/autofs/expire.c return dget(root); root 130 fs/autofs/expire.c if (ret || p == root) root 279 fs/autofs/expire.c struct dentry *root = dget(sb->s_root); root 283 fs/autofs/expire.c if (!root) root 288 fs/autofs/expire.c if (!autofs_direct_busy(mnt, root, timeout, how)) { root 290 fs/autofs/expire.c ino = autofs_dentry_ino(root); root 299 fs/autofs/expire.c if (!autofs_direct_busy(mnt, root, timeout, how)) { root 304 fs/autofs/expire.c return root; root 311 fs/autofs/expire.c dput(root); root 426 fs/autofs/expire.c struct dentry *root = sb->s_root; root 432 fs/autofs/expire.c if (!root) root 438 fs/autofs/expire.c while ((dentry = get_next_positive_subdir(dentry, root))) { root 61 fs/autofs/inode.c static int autofs_show_options(struct seq_file *m, struct dentry *root) root 63 fs/autofs/inode.c struct autofs_sb_info *sbi = autofs_sbi(root->d_sb); root 64 fs/autofs/inode.c struct inode *root_inode = d_inode(root->d_sb->s_root); root 132 fs/autofs/inode.c struct inode *root, int *pgrp, bool *pgrp_set, root 142 fs/autofs/inode.c root->i_uid = current_uid(); root 143 fs/autofs/inode.c root->i_gid = current_gid(); root 172 fs/autofs/inode.c root->i_uid = uid; root 180 fs/autofs/inode.c root->i_gid = gid; root 223 fs/autofs/inode.c struct dentry *root; root 272 fs/autofs/inode.c root = d_make_root(root_inode); root 273 fs/autofs/inode.c if (!root) { root 279 fs/autofs/inode.c root->d_fsdata = ino; root 316 fs/autofs/inode.c __managed_dentry_set_managed(root); root 338 fs/autofs/inode.c s->s_root = root; root 350 fs/autofs/inode.c dput(root); root 181 fs/autofs/waitq.c struct dentry *root = sbi->sb->s_root; root 195 fs/autofs/waitq.c for (tmp = dentry ; tmp != root ; tmp = tmp->d_parent) root 210 fs/autofs/waitq.c for (tmp = dentry->d_parent; tmp != root ; tmp = tmp->d_parent) { root 768 fs/befs/linuxvfs.c static int befs_show_options(struct seq_file *m, struct dentry *root) root 770 fs/befs/linuxvfs.c struct befs_sb_info *befs_sb = BEFS_SB(root->d_sb); root 813 fs/befs/linuxvfs.c struct inode *root; root 898 fs/befs/linuxvfs.c root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir))); root 899 fs/befs/linuxvfs.c if (IS_ERR(root)) { root 900 fs/befs/linuxvfs.c ret = PTR_ERR(root); root 903 fs/befs/linuxvfs.c sb->s_root = d_make_root(root); root 653 fs/binfmt_misc.c struct dentry *root; root 668 fs/binfmt_misc.c root = file_inode(file)->i_sb->s_root; root 669 fs/binfmt_misc.c inode_lock(d_inode(root)); root 674 fs/binfmt_misc.c inode_unlock(d_inode(root)); root 697 fs/binfmt_misc.c struct dentry *root = sb->s_root, *dentry; root 705 fs/binfmt_misc.c inode_lock(d_inode(root)); root 706 fs/binfmt_misc.c dentry = lookup_one_len(e->name, root, strlen(e->name)); root 756 fs/binfmt_misc.c inode_unlock(d_inode(root)); root 784 fs/binfmt_misc.c struct dentry *root; root 797 fs/binfmt_misc.c root = file_inode(file)->i_sb->s_root; root 798 fs/binfmt_misc.c inode_lock(d_inode(root)); root 803 fs/binfmt_misc.c inode_unlock(d_inode(root)); root 115 fs/btrfs/backref.c struct rb_root_cached root; root 119 fs/btrfs/backref.c #define PREFTREE_INIT { .root = RB_ROOT_CACHED, .count = 0 } root 228 fs/btrfs/backref.c struct rb_root_cached *root; root 235 fs/btrfs/backref.c root = &preftree->root; root 236 fs/btrfs/backref.c p = &root->rb_root.rb_node; root 277 fs/btrfs/backref.c rb_insert_color_cached(&newref->rbnode, root, leftmost); root 289 fs/btrfs/backref.c &preftree->root.rb_root, rbnode) root 292 fs/btrfs/backref.c preftree->root = RB_ROOT_CACHED; root 412 fs/btrfs/backref.c static int add_all_parents(struct btrfs_root *root, struct btrfs_path *path, root 443 fs/btrfs/backref.c ret = btrfs_next_leaf(root, path); root 445 fs/btrfs/backref.c ret = btrfs_next_old_leaf(root, path, time_seq); root 487 fs/btrfs/backref.c ret = btrfs_next_item(root, path); root 489 fs/btrfs/backref.c ret = btrfs_next_old_item(root, path, time_seq); root 509 fs/btrfs/backref.c struct btrfs_root *root; root 523 fs/btrfs/backref.c root = btrfs_get_fs_root(fs_info, &root_key, false); root 524 fs/btrfs/backref.c if (IS_ERR(root)) { root 526 fs/btrfs/backref.c ret = PTR_ERR(root); root 537 fs/btrfs/backref.c root_level = btrfs_header_level(root->commit_root); root 539 fs/btrfs/backref.c root_level = btrfs_header_level(root->node); root 541 fs/btrfs/backref.c root_level = btrfs_old_root_level(root, time_seq); root 550 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, root, &ref->key_for_search, path, root 553 fs/btrfs/backref.c ret = btrfs_search_old_slot(root, &ref->key_for_search, path, root 577 fs/btrfs/backref.c ret = add_all_parents(root, path, parents, ref, level, time_seq, root 632 fs/btrfs/backref.c while ((rnode = rb_first_cached(&preftrees->indirect.root))) { root 642 fs/btrfs/backref.c rb_erase_cached(&ref->rbnode, &preftrees->indirect.root); root 722 fs/btrfs/backref.c while ((node = rb_first_cached(&tree->root))) { root 724 fs/btrfs/backref.c rb_erase_cached(node, &tree->root); root 803 fs/btrfs/backref.c ret = add_indirect_ref(fs_info, preftrees, ref->root, root 838 fs/btrfs/backref.c ret = add_indirect_ref(fs_info, preftrees, ref->root, root 961 fs/btrfs/backref.c u64 root; root 975 fs/btrfs/backref.c root = btrfs_extent_data_ref_root(leaf, dref); root 977 fs/btrfs/backref.c ret = add_indirect_ref(fs_info, preftrees, root, root 1059 fs/btrfs/backref.c u64 root; root 1074 fs/btrfs/backref.c root = btrfs_extent_data_ref_root(leaf, dref); root 1075 fs/btrfs/backref.c ret = add_indirect_ref(fs_info, preftrees, root, root 1236 fs/btrfs/backref.c WARN_ON(!RB_EMPTY_ROOT(&preftrees.indirect_missing_keys.root.rb_root)); root 1243 fs/btrfs/backref.c WARN_ON(!RB_EMPTY_ROOT(&preftrees.indirect.root.rb_root)); root 1252 fs/btrfs/backref.c node = rb_first_cached(&preftrees.direct.root); root 1468 fs/btrfs/backref.c int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr, root 1471 fs/btrfs/backref.c struct btrfs_fs_info *fs_info = root->fs_info; root 1478 fs/btrfs/backref.c .root_objectid = root->root_key.objectid, root 1486 fs/btrfs/backref.c trans = btrfs_join_transaction_nostart(root); root 1530 fs/btrfs/backref.c int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid, root 1546 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 1563 fs/btrfs/backref.c ret = btrfs_next_leaf(root, path); root 1866 fs/btrfs/backref.c u64 root, u64 extent_item_objectid, root 1876 fs/btrfs/backref.c eie->offset, root); root 1877 fs/btrfs/backref.c ret = iterate(eie->inum, eie->offset, root, ctx); root 19 fs/btrfs/backref.h typedef int (iterate_extent_inodes_t)(u64 inum, u64 offset, u64 root, root 56 fs/btrfs/backref.h int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid, root 60 fs/btrfs/backref.h int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr, root 142 fs/btrfs/block-group.c WARN_ON(!RB_EMPTY_ROOT(&cache->full_stripe_locks_root.root)); root 863 fs/btrfs/block-group.c struct btrfs_root *root = fs_info->extent_root; root 1102 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 1108 fs/btrfs/block-group.c ret = btrfs_del_item(trans, root, path); root 1433 fs/btrfs/block-group.c struct btrfs_root *root = fs_info->extent_root; root 1441 fs/btrfs/block-group.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); root 1449 fs/btrfs/block-group.c ret = btrfs_next_leaf(root, path); root 1463 fs/btrfs/block-group.c em_tree = &root->fs_info->mapping_tree; root 2152 fs/btrfs/block-group.c struct btrfs_root *root = fs_info->tree_root; root 2201 fs/btrfs/block-group.c ret = btrfs_update_inode(trans, root, inode); root 118 fs/btrfs/block-rsv.c int btrfs_block_rsv_add(struct btrfs_root *root, root 127 fs/btrfs/block-rsv.c ret = btrfs_reserve_metadata_bytes(root, block_rsv, num_bytes, flush); root 151 fs/btrfs/block-rsv.c int btrfs_block_rsv_refill(struct btrfs_root *root, root 172 fs/btrfs/block-rsv.c ret = btrfs_reserve_metadata_bytes(root, block_rsv, num_bytes, flush); root 360 fs/btrfs/block-rsv.c const struct btrfs_root *root) root 362 fs/btrfs/block-rsv.c struct btrfs_fs_info *fs_info = root->fs_info; root 365 fs/btrfs/block-rsv.c if (test_bit(BTRFS_ROOT_REF_COWS, &root->state) || root 366 fs/btrfs/block-rsv.c (root == fs_info->csum_root && trans->adding_csums) || root 367 fs/btrfs/block-rsv.c (root == fs_info->uuid_root)) root 371 fs/btrfs/block-rsv.c block_rsv = root->block_rsv; root 380 fs/btrfs/block-rsv.c struct btrfs_root *root, root 383 fs/btrfs/block-rsv.c struct btrfs_fs_info *fs_info = root->fs_info; root 389 fs/btrfs/block-rsv.c block_rsv = get_block_rsv(trans, root); root 421 fs/btrfs/block-rsv.c ret = btrfs_reserve_metadata_bytes(root, block_rsv, blocksize, root 60 fs/btrfs/block-rsv.h int btrfs_block_rsv_add(struct btrfs_root *root, root 64 fs/btrfs/block-rsv.h int btrfs_block_rsv_refill(struct btrfs_root *root, root 83 fs/btrfs/block-rsv.h struct btrfs_root *root, root 38 fs/btrfs/btrfs_inode.h struct btrfs_root *root; root 206 fs/btrfs/btrfs_inode.h const struct btrfs_root *root) root 208 fs/btrfs/btrfs_inode.h u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); root 219 fs/btrfs/btrfs_inode.h unsigned long h = btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root); root 245 fs/btrfs/btrfs_inode.h struct btrfs_root *root = inode->root; root 247 fs/btrfs/btrfs_inode.h if (root == root->fs_info->tree_root && root 267 fs/btrfs/btrfs_inode.h trace_btrfs_inode_mod_outstanding_extents(inode->root, btrfs_ino(inode), root 278 fs/btrfs/btrfs_inode.h inode->last_sub_trans <= inode->root->last_log_commit) { root 347 fs/btrfs/btrfs_inode.h struct btrfs_root *root = inode->root; root 348 fs/btrfs/btrfs_inode.h struct btrfs_super_block *sb = root->fs_info->super_copy; root 352 fs/btrfs/btrfs_inode.h if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) root 353 fs/btrfs/btrfs_inode.h btrfs_warn_rl(root->fs_info, root 355 fs/btrfs/btrfs_inode.h root->root_key.objectid, btrfs_ino(inode), root 361 fs/btrfs/btrfs_inode.h btrfs_warn_rl(root->fs_info, root 363 fs/btrfs/btrfs_inode.h root->root_key.objectid, btrfs_ino(inode), root 78 fs/btrfs/compression.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 19 fs/btrfs/ctree.c *root, struct btrfs_path *path, int level); root 20 fs/btrfs/ctree.c static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 29 fs/btrfs/ctree.c static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, root 126 fs/btrfs/ctree.c struct extent_buffer *btrfs_root_node(struct btrfs_root *root) root 132 fs/btrfs/ctree.c eb = rcu_dereference(root->node); root 154 fs/btrfs/ctree.c struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) root 159 fs/btrfs/ctree.c eb = btrfs_root_node(root); root 161 fs/btrfs/ctree.c if (eb == root->node) root 173 fs/btrfs/ctree.c struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) root 178 fs/btrfs/ctree.c eb = btrfs_root_node(root); root 180 fs/btrfs/ctree.c if (eb == root->node) root 192 fs/btrfs/ctree.c static void add_root_to_dirty_list(struct btrfs_root *root) root 194 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 196 fs/btrfs/ctree.c if (test_bit(BTRFS_ROOT_DIRTY, &root->state) || root 197 fs/btrfs/ctree.c !test_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state)) root 201 fs/btrfs/ctree.c if (!test_and_set_bit(BTRFS_ROOT_DIRTY, &root->state)) { root 203 fs/btrfs/ctree.c if (root->root_key.objectid == BTRFS_EXTENT_TREE_OBJECTID) root 204 fs/btrfs/ctree.c list_move_tail(&root->dirty_list, root 207 fs/btrfs/ctree.c list_move(&root->dirty_list, root 219 fs/btrfs/ctree.c struct btrfs_root *root, root 223 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 229 fs/btrfs/ctree.c WARN_ON(test_bit(BTRFS_ROOT_REF_COWS, &root->state) && root 231 fs/btrfs/ctree.c WARN_ON(test_bit(BTRFS_ROOT_REF_COWS, &root->state) && root 232 fs/btrfs/ctree.c trans->transid != root->last_trans); root 240 fs/btrfs/ctree.c cow = btrfs_alloc_tree_block(trans, root, 0, new_root_objectid, root 260 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); root 262 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 0); root 865 fs/btrfs/ctree.c int btrfs_block_can_be_shared(struct btrfs_root *root, root 874 fs/btrfs/ctree.c if (test_bit(BTRFS_ROOT_REF_COWS, &root->state) && root 875 fs/btrfs/ctree.c buf != root->node && buf != root->commit_root && root 877 fs/btrfs/ctree.c btrfs_root_last_snapshot(&root->root_item) || root 885 fs/btrfs/ctree.c struct btrfs_root *root, root 890 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 914 fs/btrfs/ctree.c if (btrfs_block_can_be_shared(root, buf)) { root 927 fs/btrfs/ctree.c if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || root 939 fs/btrfs/ctree.c if ((owner == root->root_key.objectid || root 940 fs/btrfs/ctree.c root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && root 942 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, buf, 1); root 946 fs/btrfs/ctree.c if (root->root_key.objectid == root 948 fs/btrfs/ctree.c ret = btrfs_dec_ref(trans, root, buf, 0); root 951 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); root 958 fs/btrfs/ctree.c if (root->root_key.objectid == root 960 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); root 962 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 0); root 978 fs/btrfs/ctree.c if (root->root_key.objectid == root 980 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 1); root 982 fs/btrfs/ctree.c ret = btrfs_inc_ref(trans, root, cow, 0); root 985 fs/btrfs/ctree.c ret = btrfs_dec_ref(trans, root, buf, 1); root 997 fs/btrfs/ctree.c struct btrfs_root *root, root 1004 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 1023 fs/btrfs/ctree.c if (root == fs_info->extent_root || root 1024 fs/btrfs/ctree.c root == fs_info->chunk_root || root 1025 fs/btrfs/ctree.c root == fs_info->dev_root || root 1026 fs/btrfs/ctree.c root == fs_info->free_space_root) root 1029 fs/btrfs/ctree.c ret = btrfs_alloc_tree_block(trans, root, parent_start, root 1030 fs/btrfs/ctree.c root->root_key.objectid, disk_key, level, root 1050 fs/btrfs/ctree.c struct btrfs_root *root, root 1056 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 1069 fs/btrfs/ctree.c WARN_ON(test_bit(BTRFS_ROOT_REF_COWS, &root->state) && root 1071 fs/btrfs/ctree.c WARN_ON(test_bit(BTRFS_ROOT_REF_COWS, &root->state) && root 1072 fs/btrfs/ctree.c trans->transid != root->last_trans); root 1081 fs/btrfs/ctree.c if ((root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && parent) root 1084 fs/btrfs/ctree.c cow = alloc_tree_block_no_bg_flush(trans, root, parent_start, &disk_key, root 1097 fs/btrfs/ctree.c if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) root 1100 fs/btrfs/ctree.c btrfs_set_header_owner(cow, root->root_key.objectid); root 1104 fs/btrfs/ctree.c ret = update_ref_for_cow(trans, root, buf, cow, &last_ref); root 1110 fs/btrfs/ctree.c if (test_bit(BTRFS_ROOT_REF_COWS, &root->state)) { root 1111 fs/btrfs/ctree.c ret = btrfs_reloc_cow_block(trans, root, buf, cow); root 1118 fs/btrfs/ctree.c if (buf == root->node) { root 1120 fs/btrfs/ctree.c if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || root 1125 fs/btrfs/ctree.c ret = tree_mod_log_insert_root(root->node, cow, 1); root 1127 fs/btrfs/ctree.c rcu_assign_pointer(root->node, cow); root 1129 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, buf, parent_start, root 1132 fs/btrfs/ctree.c add_root_to_dirty_list(root); root 1149 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, buf, parent_start, root 1358 fs/btrfs/ctree.c get_old_root(struct btrfs_root *root, u64 time_seq) root 1360 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 1371 fs/btrfs/ctree.c eb_root = btrfs_read_lock_root_node(root); root 1432 fs/btrfs/ctree.c int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq) root 1436 fs/btrfs/ctree.c struct extent_buffer *eb_root = btrfs_root_node(root); root 1450 fs/btrfs/ctree.c struct btrfs_root *root, root 1453 fs/btrfs/ctree.c if (btrfs_is_testing(root->fs_info)) root 1472 fs/btrfs/ctree.c !(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID && root 1474 fs/btrfs/ctree.c !test_bit(BTRFS_ROOT_FORCE_COW, &root->state)) root 1485 fs/btrfs/ctree.c struct btrfs_root *root, struct extent_buffer *buf, root 1489 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 1493 fs/btrfs/ctree.c if (test_bit(BTRFS_ROOT_DELETING, &root->state)) root 1506 fs/btrfs/ctree.c if (!should_cow_block(trans, root, buf)) { root 1524 fs/btrfs/ctree.c btrfs_qgroup_trace_subtree_after_cow(trans, root, buf); root 1525 fs/btrfs/ctree.c ret = __btrfs_cow_block(trans, root, buf, parent, root 1528 fs/btrfs/ctree.c trace_btrfs_cow_block(root, buf, *cow_ret); root 1585 fs/btrfs/ctree.c struct btrfs_root *root, struct extent_buffer *parent, root 1589 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 1678 fs/btrfs/ctree.c err = __btrfs_cow_block(trans, root, cur, parent, i, root 1794 fs/btrfs/ctree.c static void root_add_used(struct btrfs_root *root, u32 size) root 1796 fs/btrfs/ctree.c spin_lock(&root->accounting_lock); root 1797 fs/btrfs/ctree.c btrfs_set_root_used(&root->root_item, root 1798 fs/btrfs/ctree.c btrfs_root_used(&root->root_item) + size); root 1799 fs/btrfs/ctree.c spin_unlock(&root->accounting_lock); root 1802 fs/btrfs/ctree.c static void root_sub_used(struct btrfs_root *root, u32 size) root 1804 fs/btrfs/ctree.c spin_lock(&root->accounting_lock); root 1805 fs/btrfs/ctree.c btrfs_set_root_used(&root->root_item, root 1806 fs/btrfs/ctree.c btrfs_root_used(&root->root_item) - size); root 1807 fs/btrfs/ctree.c spin_unlock(&root->accounting_lock); root 1843 fs/btrfs/ctree.c struct btrfs_root *root, root 1846 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 1892 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, child, mid, 0, &child); root 1899 fs/btrfs/ctree.c ret = tree_mod_log_insert_root(root->node, child, 1); root 1901 fs/btrfs/ctree.c rcu_assign_pointer(root->node, child); root 1903 fs/btrfs/ctree.c add_root_to_dirty_list(root); root 1913 fs/btrfs/ctree.c root_sub_used(root, mid->len); root 1914 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, mid, 0, 1); root 1930 fs/btrfs/ctree.c wret = btrfs_cow_block(trans, root, left, root 1945 fs/btrfs/ctree.c wret = btrfs_cow_block(trans, root, right, root 1971 fs/btrfs/ctree.c del_ptr(root, path, level + 1, pslot + 1); root 1972 fs/btrfs/ctree.c root_sub_used(root, right->len); root 1973 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, right, 0, 1); root 2016 fs/btrfs/ctree.c del_ptr(root, path, level + 1, pslot); root 2017 fs/btrfs/ctree.c root_sub_used(root, mid->len); root 2018 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, mid, 0, 1); root 2071 fs/btrfs/ctree.c struct btrfs_root *root, root 2074 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2113 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, left, parent, root 2167 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, right, root 2412 fs/btrfs/ctree.c read_block_for_search(struct btrfs_root *root, struct btrfs_path *p, root 2416 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2512 fs/btrfs/ctree.c struct btrfs_root *root, struct btrfs_path *p, root 2516 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2531 fs/btrfs/ctree.c sret = split_node(trans, root, p, level); root 2551 fs/btrfs/ctree.c sret = balance_level(trans, root, p, level); root 2620 fs/btrfs/ctree.c static struct extent_buffer *btrfs_search_slot_get_root(struct btrfs_root *root, root 2624 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2644 fs/btrfs/ctree.c b = btrfs_clone_extent_buffer(root->commit_root); root 2650 fs/btrfs/ctree.c b = root->commit_root; root 2664 fs/btrfs/ctree.c b = btrfs_root_node(root); root 2678 fs/btrfs/ctree.c b = btrfs_read_lock_root_node(root); root 2688 fs/btrfs/ctree.c b = btrfs_lock_root_node(root); root 2730 fs/btrfs/ctree.c int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2777 fs/btrfs/ctree.c b = btrfs_search_slot_get_root(root, p, write_lock_level); root 2798 fs/btrfs/ctree.c if (!should_cow_block(trans, root, b)) { root 2818 fs/btrfs/ctree.c err = btrfs_cow_block(trans, root, b, NULL, 0, root 2821 fs/btrfs/ctree.c err = btrfs_cow_block(trans, root, b, root 2867 fs/btrfs/ctree.c err = setup_nodes_for_search(trans, root, p, b, level, root 2900 fs/btrfs/ctree.c err = read_block_for_search(root, p, &b, level, root 2937 fs/btrfs/ctree.c err = split_leaf(trans, root, key, root 2976 fs/btrfs/ctree.c int btrfs_search_old_slot(struct btrfs_root *root, const struct btrfs_key *key, root 2979 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2994 fs/btrfs/ctree.c return btrfs_search_slot(NULL, root, key, p, 0, 0); root 2998 fs/btrfs/ctree.c b = get_old_root(root, time_seq); root 3042 fs/btrfs/ctree.c err = read_block_for_search(root, p, &b, level, root 3091 fs/btrfs/ctree.c int btrfs_search_slot_for_read(struct btrfs_root *root, root 3100 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, key, p, 0, 0); root 3114 fs/btrfs/ctree.c ret = btrfs_next_leaf(root, p); root 3130 fs/btrfs/ctree.c ret = btrfs_prev_leaf(root, p); root 3386 fs/btrfs/ctree.c struct btrfs_root *root, root 3389 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 3398 fs/btrfs/ctree.c BUG_ON(path->nodes[level-1] != root->node); root 3406 fs/btrfs/ctree.c c = alloc_tree_block_no_bg_flush(trans, root, 0, &lower_key, level, root 3407 fs/btrfs/ctree.c root->node->start, 0); root 3411 fs/btrfs/ctree.c root_add_used(root, fs_info->nodesize); root 3423 fs/btrfs/ctree.c old = root->node; root 3424 fs/btrfs/ctree.c ret = tree_mod_log_insert_root(root->node, c, 0); root 3426 fs/btrfs/ctree.c rcu_assign_pointer(root->node, c); root 3431 fs/btrfs/ctree.c add_root_to_dirty_list(root); root 3495 fs/btrfs/ctree.c struct btrfs_root *root, root 3498 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 3508 fs/btrfs/ctree.c if (c == root->node) { root 3519 fs/btrfs/ctree.c ret = insert_new_root(trans, root, path, level + 1); root 3523 fs/btrfs/ctree.c ret = push_nodes_for_insert(trans, root, path, level); root 3536 fs/btrfs/ctree.c split = alloc_tree_block_no_bg_flush(trans, root, 0, &disk_key, level, root 3541 fs/btrfs/ctree.c root_add_used(root, fs_info->nodesize); root 3778 fs/btrfs/ctree.c *root, struct btrfs_path *path, root 3816 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, right, upper, root 4013 fs/btrfs/ctree.c *root, struct btrfs_path *path, int min_data_size, root 4053 fs/btrfs/ctree.c ret = btrfs_cow_block(trans, root, left, root 4152 fs/btrfs/ctree.c struct btrfs_root *root, root 4170 fs/btrfs/ctree.c ret = push_leaf_right(trans, root, path, 1, space_needed, 0, slot); root 4193 fs/btrfs/ctree.c ret = push_leaf_left(trans, root, path, 1, space_needed, 0, slot); root 4212 fs/btrfs/ctree.c struct btrfs_root *root, root 4223 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4243 fs/btrfs/ctree.c wret = push_leaf_right(trans, root, path, space_needed, root 4251 fs/btrfs/ctree.c wret = push_leaf_left(trans, root, path, space_needed, root 4264 fs/btrfs/ctree.c ret = insert_new_root(trans, root, path, 1); root 4317 fs/btrfs/ctree.c right = alloc_tree_block_no_bg_flush(trans, root, 0, &disk_key, 0, root 4322 fs/btrfs/ctree.c root_add_used(root, fs_info->nodesize); root 4364 fs/btrfs/ctree.c push_for_double_split(trans, root, path, data_size); root 4372 fs/btrfs/ctree.c struct btrfs_root *root, root 4401 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 4426 fs/btrfs/ctree.c ret = split_leaf(trans, root, &key, path, ins_len, 1); root 4523 fs/btrfs/ctree.c struct btrfs_root *root, root 4529 fs/btrfs/ctree.c ret = setup_leaf_for_split(trans, root, path, root 4547 fs/btrfs/ctree.c struct btrfs_root *root, root 4557 fs/btrfs/ctree.c ret = setup_leaf_for_split(trans, root, path, root 4563 fs/btrfs/ctree.c setup_items_for_insert(root, path, new_key, &item_size, root 4745 fs/btrfs/ctree.c void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path, root 4749 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4837 fs/btrfs/ctree.c struct btrfs_root *root, root 4852 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, cpu_key, path, total_size, 1); root 4861 fs/btrfs/ctree.c setup_items_for_insert(root, path, cpu_key, data_size, root 4870 fs/btrfs/ctree.c int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 4882 fs/btrfs/ctree.c ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); root 4899 fs/btrfs/ctree.c static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, root 4926 fs/btrfs/ctree.c if (nritems == 0 && parent == root->node) { root 4927 fs/btrfs/ctree.c BUG_ON(btrfs_header_level(root->node) != 1); root 4929 fs/btrfs/ctree.c btrfs_set_header_level(root->node, 0); root 4950 fs/btrfs/ctree.c struct btrfs_root *root, root 4955 fs/btrfs/ctree.c del_ptr(root, path, 1, path->slots[1]); root 4963 fs/btrfs/ctree.c root_sub_used(root, leaf->len); root 4966 fs/btrfs/ctree.c btrfs_free_tree_block(trans, root, leaf, 0, 1); root 4973 fs/btrfs/ctree.c int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 4976 fs/btrfs/ctree.c struct btrfs_fs_info *fs_info = root->fs_info; root 5023 fs/btrfs/ctree.c if (leaf == root->node) { root 5028 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); root 5049 fs/btrfs/ctree.c wret = push_leaf_left(trans, root, path, 1, 1, root 5056 fs/btrfs/ctree.c wret = push_leaf_right(trans, root, path, 1, root 5064 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); root 5092 fs/btrfs/ctree.c int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path) root 5114 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 5153 fs/btrfs/ctree.c int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key, root 5168 fs/btrfs/ctree.c cur = btrfs_read_lock_root_node(root); root 5220 fs/btrfs/ctree.c sret = btrfs_find_next_key(root, path, min_key, level, root 5270 fs/btrfs/ctree.c int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, root 5306 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &cur_key, path, root 5340 fs/btrfs/ctree.c int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path) root 5342 fs/btrfs/ctree.c return btrfs_next_old_leaf(root, path, 0); root 5345 fs/btrfs/ctree.c int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, root 5373 fs/btrfs/ctree.c ret = btrfs_search_old_slot(root, &key, path, time_seq); root 5375 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 5437 fs/btrfs/ctree.c ret = read_block_for_search(root, path, &next, level, root 5485 fs/btrfs/ctree.c ret = read_block_for_search(root, path, &next, level, root 5520 fs/btrfs/ctree.c int btrfs_previous_item(struct btrfs_root *root, root 5532 fs/btrfs/ctree.c ret = btrfs_prev_leaf(root, path); root 5563 fs/btrfs/ctree.c int btrfs_previous_extent_item(struct btrfs_root *root, root 5574 fs/btrfs/ctree.c ret = btrfs_prev_leaf(root, path); root 229 fs/btrfs/ctree.h __le64 root; root 405 fs/btrfs/ctree.h struct rb_root root; root 437 fs/btrfs/ctree.h struct rb_root root; root 1625 fs/btrfs/ctree.h root, 64); root 1655 fs/btrfs/ctree.h BTRFS_SETGET_FUNCS(ref_root_v0, struct btrfs_extent_ref_v0, root, 64); root 1968 fs/btrfs/ctree.h static inline bool btrfs_root_readonly(const struct btrfs_root *root) root 1970 fs/btrfs/ctree.h return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_RDONLY)) != 0; root 1973 fs/btrfs/ctree.h static inline bool btrfs_root_dead(const struct btrfs_root *root) root 1975 fs/btrfs/ctree.h return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0; root 2117 fs/btrfs/ctree.h BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64); root 2413 fs/btrfs/ctree.h int btrfs_cross_ref_exist(struct btrfs_root *root, root 2416 fs/btrfs/ctree.h struct btrfs_root *root, root 2422 fs/btrfs/ctree.h struct btrfs_root *root, root 2426 fs/btrfs/ctree.h struct btrfs_root *root, u64 owner, root 2432 fs/btrfs/ctree.h int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, u64 num_bytes, root 2435 fs/btrfs/ctree.h int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2437 fs/btrfs/ctree.h int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2483 fs/btrfs/ctree.h int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, root 2501 fs/btrfs/ctree.h int btrfs_start_write_no_snapshotting(struct btrfs_root *root); root 2502 fs/btrfs/ctree.h void btrfs_end_write_no_snapshotting(struct btrfs_root *root); root 2503 fs/btrfs/ctree.h void btrfs_wait_for_snapshot_creation(struct btrfs_root *root); root 2509 fs/btrfs/ctree.h int btrfs_previous_item(struct btrfs_root *root, root 2512 fs/btrfs/ctree.h int btrfs_previous_extent_item(struct btrfs_root *root, root 2517 fs/btrfs/ctree.h struct extent_buffer *btrfs_root_node(struct btrfs_root *root); root 2518 fs/btrfs/ctree.h struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); root 2519 fs/btrfs/ctree.h struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root); root 2520 fs/btrfs/ctree.h int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, root 2523 fs/btrfs/ctree.h int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key, root 2530 fs/btrfs/ctree.h struct btrfs_root *root, struct extent_buffer *buf, root 2534 fs/btrfs/ctree.h struct btrfs_root *root, root 2537 fs/btrfs/ctree.h int btrfs_block_can_be_shared(struct btrfs_root *root, root 2542 fs/btrfs/ctree.h struct btrfs_root *root, root 2547 fs/btrfs/ctree.h struct btrfs_root *root, root 2552 fs/btrfs/ctree.h int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2555 fs/btrfs/ctree.h int btrfs_search_old_slot(struct btrfs_root *root, const struct btrfs_key *key, root 2557 fs/btrfs/ctree.h int btrfs_search_slot_for_read(struct btrfs_root *root, root 2562 fs/btrfs/ctree.h struct btrfs_root *root, struct extent_buffer *parent, root 2571 fs/btrfs/ctree.h int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2574 fs/btrfs/ctree.h struct btrfs_root *root, root 2577 fs/btrfs/ctree.h return btrfs_del_items(trans, root, path, path->slots[0], 1); root 2580 fs/btrfs/ctree.h void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path, root 2583 fs/btrfs/ctree.h int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2586 fs/btrfs/ctree.h struct btrfs_root *root, root 2592 fs/btrfs/ctree.h struct btrfs_root *root, root 2597 fs/btrfs/ctree.h return btrfs_insert_empty_items(trans, root, path, key, &data_size, 1); root 2600 fs/btrfs/ctree.h int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path); root 2601 fs/btrfs/ctree.h int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path); root 2602 fs/btrfs/ctree.h int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, root 2604 fs/btrfs/ctree.h static inline int btrfs_next_old_item(struct btrfs_root *root, root 2609 fs/btrfs/ctree.h return btrfs_next_old_leaf(root, p, time_seq); root 2612 fs/btrfs/ctree.h static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p) root 2614 fs/btrfs/ctree.h return btrfs_next_old_item(root, p, 0); root 2617 fs/btrfs/ctree.h int __must_check btrfs_drop_snapshot(struct btrfs_root *root, root 2621 fs/btrfs/ctree.h struct btrfs_root *root, root 2669 fs/btrfs/ctree.h int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq); root 2680 fs/btrfs/ctree.h int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2684 fs/btrfs/ctree.h struct btrfs_root *root, root 2687 fs/btrfs/ctree.h int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, root 2695 fs/btrfs/ctree.h struct btrfs_root *root); root 2707 fs/btrfs/ctree.h int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, root 2713 fs/btrfs/ctree.h struct btrfs_root *root, root 2719 fs/btrfs/ctree.h struct btrfs_root *root, root 2724 fs/btrfs/ctree.h btrfs_search_dir_index_item(struct btrfs_root *root, root 2728 fs/btrfs/ctree.h struct btrfs_root *root, root 2732 fs/btrfs/ctree.h struct btrfs_root *root, root 2737 fs/btrfs/ctree.h struct btrfs_root *root, root 2748 fs/btrfs/ctree.h struct btrfs_root *root, u64 offset); root 2750 fs/btrfs/ctree.h struct btrfs_root *root, u64 offset); root 2751 fs/btrfs/ctree.h int btrfs_find_orphan_item(struct btrfs_root *root, u64 offset); root 2755 fs/btrfs/ctree.h struct btrfs_root *root, root 2759 fs/btrfs/ctree.h struct btrfs_root *root, root 2763 fs/btrfs/ctree.h struct btrfs_root *root, root 2766 fs/btrfs/ctree.h *root, struct btrfs_path *path, root 2771 fs/btrfs/ctree.h struct btrfs_root *root, root 2786 fs/btrfs/ctree.h struct btrfs_root *root, u64 bytenr, u64 len); root 2792 fs/btrfs/ctree.h struct btrfs_root *root, root 2798 fs/btrfs/ctree.h struct btrfs_root *root, root 2802 fs/btrfs/ctree.h struct btrfs_root *root, root 2806 fs/btrfs/ctree.h int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end, root 2821 fs/btrfs/ctree.h void __btrfs_del_delalloc_inode(struct btrfs_root *root, root 2826 fs/btrfs/ctree.h struct btrfs_root *root, root 2836 fs/btrfs/ctree.h struct btrfs_root *root, root 2840 fs/btrfs/ctree.h int btrfs_start_delalloc_snapshot(struct btrfs_root *root); root 2871 fs/btrfs/ctree.h struct btrfs_root *root, int *new, root 2874 fs/btrfs/ctree.h struct btrfs_root *root, int *was_new); root 2879 fs/btrfs/ctree.h struct btrfs_root *root, root 2882 fs/btrfs/ctree.h struct btrfs_root *root, struct inode *inode); root 2885 fs/btrfs/ctree.h int btrfs_orphan_cleanup(struct btrfs_root *root); root 2931 fs/btrfs/ctree.h struct btrfs_root *root, struct inode *inode, root 2938 fs/btrfs/ctree.h struct btrfs_root *root, struct inode *inode, u64 start, root 2957 fs/btrfs/ctree.h struct btrfs_root *root); root 3344 fs/btrfs/ctree.h struct btrfs_root *root); root 3346 fs/btrfs/ctree.h struct btrfs_root *root); root 3347 fs/btrfs/ctree.h int btrfs_recover_relocation(struct btrfs_root *root); root 3350 fs/btrfs/ctree.h struct btrfs_root *root, struct extent_buffer *buf, root 3370 fs/btrfs/ctree.h locks_root->root = RB_ROOT; root 3393 fs/btrfs/ctree.h struct reada_control *btrfs_reada_add(struct btrfs_root *root, root 14 fs/btrfs/delalloc-space.c struct btrfs_root *root = inode->root; root 15 fs/btrfs/delalloc-space.c struct btrfs_fs_info *fs_info = root->fs_info; root 59 fs/btrfs/delalloc-space.c trans = btrfs_join_transaction(root); root 100 fs/btrfs/delalloc-space.c trans = btrfs_join_transaction(root); root 197 fs/btrfs/delalloc-space.c struct btrfs_root *root = BTRFS_I(inode)->root; root 200 fs/btrfs/delalloc-space.c len = round_up(start + len, root->fs_info->sectorsize) - root 201 fs/btrfs/delalloc-space.c round_down(start, root->fs_info->sectorsize); root 202 fs/btrfs/delalloc-space.c start = round_down(start, root->fs_info->sectorsize); root 221 fs/btrfs/delalloc-space.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 237 fs/btrfs/delalloc-space.c btrfs_qgroup_free_meta_prealloc(inode->root, qgroup_to_release); root 239 fs/btrfs/delalloc-space.c btrfs_qgroup_convert_reserved_meta(inode->root, root 303 fs/btrfs/delalloc-space.c struct btrfs_root *root = inode->root; root 304 fs/btrfs/delalloc-space.c struct btrfs_fs_info *fs_info = root->fs_info; root 349 fs/btrfs/delalloc-space.c ret = btrfs_qgroup_reserve_meta_prealloc(root, qgroup_reserve, true); root 352 fs/btrfs/delalloc-space.c ret = btrfs_reserve_metadata_bytes(root, block_rsv, meta_reserve, flush); root 371 fs/btrfs/delalloc-space.c trace_btrfs_space_reservation(root->fs_info, "delalloc", root 382 fs/btrfs/delalloc-space.c btrfs_qgroup_free_meta_prealloc(root, qgroup_reserve); root 402 fs/btrfs/delalloc-space.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 429 fs/btrfs/delalloc-space.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 42 fs/btrfs/delayed-inode.c struct btrfs_root *root, u64 inode_id) root 44 fs/btrfs/delayed-inode.c delayed_node->root = root; root 69 fs/btrfs/delayed-inode.c struct btrfs_root *root = btrfs_inode->root; root 79 fs/btrfs/delayed-inode.c spin_lock(&root->inode_lock); root 80 fs/btrfs/delayed-inode.c node = radix_tree_lookup(&root->delayed_nodes_tree, ino); root 86 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 113 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 116 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 126 fs/btrfs/delayed-inode.c struct btrfs_root *root = btrfs_inode->root; root 138 fs/btrfs/delayed-inode.c btrfs_init_delayed_node(node, root, ino); root 149 fs/btrfs/delayed-inode.c spin_lock(&root->inode_lock); root 150 fs/btrfs/delayed-inode.c ret = radix_tree_insert(&root->delayed_nodes_tree, ino, node); root 152 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 158 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 169 fs/btrfs/delayed-inode.c static void btrfs_queue_delayed_node(struct btrfs_delayed_root *root, root 173 fs/btrfs/delayed-inode.c spin_lock(&root->lock); root 176 fs/btrfs/delayed-inode.c list_move_tail(&node->p_list, &root->prepare_list); root 178 fs/btrfs/delayed-inode.c list_add_tail(&node->p_list, &root->prepare_list); root 180 fs/btrfs/delayed-inode.c list_add_tail(&node->n_list, &root->node_list); root 181 fs/btrfs/delayed-inode.c list_add_tail(&node->p_list, &root->prepare_list); root 183 fs/btrfs/delayed-inode.c root->nodes++; root 186 fs/btrfs/delayed-inode.c spin_unlock(&root->lock); root 190 fs/btrfs/delayed-inode.c static void btrfs_dequeue_delayed_node(struct btrfs_delayed_root *root, root 193 fs/btrfs/delayed-inode.c spin_lock(&root->lock); root 195 fs/btrfs/delayed-inode.c root->nodes--; root 202 fs/btrfs/delayed-inode.c spin_unlock(&root->lock); root 231 fs/btrfs/delayed-inode.c delayed_root = node->root->fs_info->delayed_root; root 260 fs/btrfs/delayed-inode.c delayed_root = delayed_node->root->fs_info->delayed_root; root 270 fs/btrfs/delayed-inode.c struct btrfs_root *root = delayed_node->root; root 272 fs/btrfs/delayed-inode.c spin_lock(&root->inode_lock); root 278 fs/btrfs/delayed-inode.c radix_tree_delete(&root->delayed_nodes_tree, root 280 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 341 fs/btrfs/delayed-inode.c struct rb_root *root, root 350 fs/btrfs/delayed-inode.c node = root->rb_node; root 405 fs/btrfs/delayed-inode.c struct rb_root_cached *root; root 411 fs/btrfs/delayed-inode.c root = &delayed_node->ins_root; root 413 fs/btrfs/delayed-inode.c root = &delayed_node->del_root; root 416 fs/btrfs/delayed-inode.c p = &root->rb_root.rb_node; root 436 fs/btrfs/delayed-inode.c rb_insert_color_cached(node, root, leftmost); root 446 fs/btrfs/delayed-inode.c atomic_inc(&delayed_node->root->fs_info->delayed_root->items); root 476 fs/btrfs/delayed-inode.c struct rb_root_cached *root; root 482 fs/btrfs/delayed-inode.c delayed_root = delayed_item->delayed_node->root->fs_info->delayed_root; root 489 fs/btrfs/delayed-inode.c root = &delayed_item->delayed_node->ins_root; root 491 fs/btrfs/delayed-inode.c root = &delayed_item->delayed_node->del_root; root 493 fs/btrfs/delayed-inode.c rb_erase_cached(&delayed_item->rb_node, root); root 548 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 553 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 581 fs/btrfs/delayed-inode.c static void btrfs_delayed_item_release_metadata(struct btrfs_root *root, root 585 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 604 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 608 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 630 fs/btrfs/delayed-inode.c ret = btrfs_qgroup_reserve_meta_prealloc(root, root 634 fs/btrfs/delayed-inode.c ret = btrfs_block_rsv_add(root, dst_rsv, num_bytes, root 644 fs/btrfs/delayed-inode.c btrfs_qgroup_free_meta_prealloc(root, num_bytes); root 653 fs/btrfs/delayed-inode.c btrfs_qgroup_free_meta_prealloc(root, fs_info->nodesize); root 683 fs/btrfs/delayed-inode.c btrfs_qgroup_free_meta_prealloc(node->root, root 686 fs/btrfs/delayed-inode.c btrfs_qgroup_convert_reserved_meta(node->root, root 695 fs/btrfs/delayed-inode.c static int btrfs_batch_insert_items(struct btrfs_root *root, root 773 fs/btrfs/delayed-inode.c setup_items_for_insert(root, path, keys, data_size, root 785 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(root, curr); root 803 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 813 fs/btrfs/delayed-inode.c ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, root 827 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(root, delayed_item); root 837 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 849 fs/btrfs/delayed-inode.c ret = btrfs_insert_delayed_item(trans, root, path, curr); root 860 fs/btrfs/delayed-inode.c btrfs_batch_insert_items(root, path, curr); root 875 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 923 fs/btrfs/delayed-inode.c ret = btrfs_del_items(trans, root, path, path->slots[0], nitems); root 928 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(root, curr); root 939 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 953 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &curr->key, path, -1, 1); root 974 fs/btrfs/delayed-inode.c btrfs_batch_delete_items(trans, root, path, curr); root 991 fs/btrfs/delayed-inode.c BUG_ON(!delayed_node->root); root 995 fs/btrfs/delayed-inode.c delayed_root = delayed_node->root->fs_info->delayed_root; root 1004 fs/btrfs/delayed-inode.c ASSERT(delayed_node->root); root 1008 fs/btrfs/delayed-inode.c delayed_root = delayed_node->root->fs_info->delayed_root; root 1013 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 1017 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 1035 fs/btrfs/delayed-inode.c ret = btrfs_lookup_inode(trans, root, path, &key, mod); root 1071 fs/btrfs/delayed-inode.c btrfs_del_item(trans, root, path); root 1089 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 1102 fs/btrfs/delayed-inode.c struct btrfs_root *root, root 1114 fs/btrfs/delayed-inode.c ret = __btrfs_update_delayed_inode(trans, root, path, node); root 1126 fs/btrfs/delayed-inode.c ret = btrfs_insert_delayed_items(trans, path, node->root, node); root 1130 fs/btrfs/delayed-inode.c ret = btrfs_delete_delayed_items(trans, path, node->root, node); root 1134 fs/btrfs/delayed-inode.c ret = btrfs_update_delayed_inode(trans, node->root, path, node); root 1228 fs/btrfs/delayed-inode.c trans->block_rsv = &delayed_node->root->fs_info->delayed_block_rsv; root 1241 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 1259 fs/btrfs/delayed-inode.c trans = btrfs_join_transaction(delayed_node->root); root 1277 fs/btrfs/delayed-inode.c ret = __btrfs_update_delayed_inode(trans, delayed_node->root, root 1319 fs/btrfs/delayed-inode.c struct btrfs_root *root; root 1340 fs/btrfs/delayed-inode.c root = delayed_node->root; root 1342 fs/btrfs/delayed-inode.c trans = btrfs_join_transaction(root); root 1351 fs/btrfs/delayed-inode.c trans->block_rsv = &root->fs_info->delayed_block_rsv; root 1357 fs/btrfs/delayed-inode.c btrfs_btree_balance_dirty_nodelay(root->fs_info); root 1469 fs/btrfs/delayed-inode.c ret = btrfs_delayed_item_reserve_metadata(trans, dir->root, delayed_item); root 1481 fs/btrfs/delayed-inode.c name_len, name, delayed_node->root->root_key.objectid, root 1505 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(node->root, item); root 1540 fs/btrfs/delayed-inode.c ret = btrfs_delayed_item_reserve_metadata(trans, dir->root, item); root 1557 fs/btrfs/delayed-inode.c index, node->root->root_key.objectid, root 1559 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(dir->root, item); root 1829 fs/btrfs/delayed-inode.c struct btrfs_root *root, struct inode *inode) root 1844 fs/btrfs/delayed-inode.c ret = btrfs_delayed_inode_reserve_metadata(trans, root, BTRFS_I(inode), root 1852 fs/btrfs/delayed-inode.c atomic_inc(&root->fs_info->delayed_root->items); root 1861 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 1905 fs/btrfs/delayed-inode.c struct btrfs_root *root = delayed_node->root; root 1906 fs/btrfs/delayed-inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 1912 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(root, curr_item); root 1920 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(root, curr_item); root 1948 fs/btrfs/delayed-inode.c void btrfs_kill_all_delayed_nodes(struct btrfs_root *root) root 1955 fs/btrfs/delayed-inode.c spin_lock(&root->inode_lock); root 1956 fs/btrfs/delayed-inode.c n = radix_tree_gang_lookup(&root->delayed_nodes_tree, root 1960 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 1973 fs/btrfs/delayed-inode.c spin_unlock(&root->inode_lock); root 45 fs/btrfs/delayed-inode.h struct btrfs_root *root; root 113 fs/btrfs/delayed-inode.h struct btrfs_root *root, struct inode *inode); root 118 fs/btrfs/delayed-inode.h void btrfs_kill_all_delayed_nodes(struct btrfs_root *root); root 208 fs/btrfs/delayed-ref.c if (ref1->root < ref2->root) root 210 fs/btrfs/delayed-ref.c if (ref1->root > ref2->root) root 228 fs/btrfs/delayed-ref.c if (ref1->root < ref2->root) root 230 fs/btrfs/delayed-ref.c if (ref1->root > ref2->root) root 278 fs/btrfs/delayed-ref.c static struct btrfs_delayed_ref_head *htree_insert(struct rb_root_cached *root, root 281 fs/btrfs/delayed-ref.c struct rb_node **p = &root->rb_root.rb_node; root 306 fs/btrfs/delayed-ref.c rb_insert_color_cached(node, root, leftmost); root 310 fs/btrfs/delayed-ref.c static struct btrfs_delayed_ref_node* tree_insert(struct rb_root_cached *root, root 313 fs/btrfs/delayed-ref.c struct rb_node **p = &root->rb_root.rb_node; root 337 fs/btrfs/delayed-ref.c rb_insert_color_cached(node, root, leftmost); root 365 fs/btrfs/delayed-ref.c struct rb_root *root = &dr->href_root.rb_root; root 369 fs/btrfs/delayed-ref.c n = root->rb_node; root 596 fs/btrfs/delayed-ref.c struct btrfs_delayed_ref_root *root, root 635 fs/btrfs/delayed-ref.c drop_delayed_ref(trans, root, href, exist); root 641 fs/btrfs/delayed-ref.c atomic_inc(&root->num_entries); root 947 fs/btrfs/delayed-ref.c is_fstree(generic_ref->tree_ref.root) && root 963 fs/btrfs/delayed-ref.c generic_ref->tree_ref.root, action, ref_type); root 964 fs/btrfs/delayed-ref.c ref->root = generic_ref->tree_ref.root; root 969 fs/btrfs/delayed-ref.c generic_ref->tree_ref.root, 0, action, false, root 1040 fs/btrfs/delayed-ref.c ref->root = ref_root; root 125 fs/btrfs/delayed-ref.h u64 root; root 132 fs/btrfs/delayed-ref.h u64 root; root 217 fs/btrfs/delayed-ref.h u64 root; root 274 fs/btrfs/delayed-ref.h int level, u64 root) root 278 fs/btrfs/delayed-ref.h generic_ref->real_root = root; root 280 fs/btrfs/delayed-ref.h generic_ref->tree_ref.root = root; root 398 fs/btrfs/dev-replace.c struct btrfs_root *root = fs_info->dev_root; root 421 fs/btrfs/dev-replace.c trans = btrfs_attach_transaction(root); root 482 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 1); root 571 fs/btrfs/dev-replace.c struct btrfs_root *root = fs_info->tree_root; root 609 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 0); root 713 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 0); root 803 fs/btrfs/dev-replace.c struct btrfs_root *root = fs_info->tree_root; root 859 fs/btrfs/dev-replace.c trans = btrfs_start_transaction(root, 0); root 20 fs/btrfs/dir-item.c struct btrfs_root *root, root 27 fs/btrfs/dir-item.c struct btrfs_fs_info *fs_info = root->fs_info; root 33 fs/btrfs/dir-item.c ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); root 56 fs/btrfs/dir-item.c struct btrfs_root *root, root 69 fs/btrfs/dir-item.c if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(root->fs_info)) root 77 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, root 114 fs/btrfs/dir-item.c struct btrfs_root *root = dir->root; root 135 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, root 157 fs/btrfs/dir-item.c if (root == root->fs_info->tree_root) { root 180 fs/btrfs/dir-item.c struct btrfs_root *root, root 195 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); root 201 fs/btrfs/dir-item.c return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); root 204 fs/btrfs/dir-item.c int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, root 224 fs/btrfs/dir-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 237 fs/btrfs/dir-item.c di = btrfs_match_dir_item_name(root->fs_info, path, name, name_len); root 252 fs/btrfs/dir-item.c sizeof(struct btrfs_item) > BTRFS_LEAF_DATA_SIZE(root->fs_info)) { root 273 fs/btrfs/dir-item.c struct btrfs_root *root, root 287 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); root 292 fs/btrfs/dir-item.c return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); root 296 fs/btrfs/dir-item.c btrfs_search_dir_index_item(struct btrfs_root *root, root 310 fs/btrfs/dir-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 319 fs/btrfs/dir-item.c ret = btrfs_next_leaf(root, path); root 333 fs/btrfs/dir-item.c di = btrfs_match_dir_item_name(root->fs_info, path, root 344 fs/btrfs/dir-item.c struct btrfs_root *root, root 357 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); root 363 fs/btrfs/dir-item.c return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); root 408 fs/btrfs/dir-item.c struct btrfs_root *root, root 423 fs/btrfs/dir-item.c ret = btrfs_del_item(trans, root, path); root 54 fs/btrfs/disk-io.c static void btrfs_destroy_ordered_extents(struct btrfs_root *root); root 57 fs/btrfs/disk-io.c static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root); root 208 fs/btrfs/disk-io.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 596 fs/btrfs/disk-io.c struct btrfs_root *root = BTRFS_I(page->mapping->host)->root; root 597 fs/btrfs/disk-io.c struct btrfs_fs_info *fs_info = root->fs_info; root 843 fs/btrfs/disk-io.c struct btrfs_root *root; root 849 fs/btrfs/disk-io.c root = BTRFS_I(bvec->bv_page->mapping->host)->root; root 850 fs/btrfs/disk-io.c ret = csum_dirty_buffer(root->fs_info, bvec->bv_page); root 954 fs/btrfs/disk-io.c fs_info = BTRFS_I(mapping->host)->root->fs_info; root 988 fs/btrfs/disk-io.c btrfs_warn(BTRFS_I(page->mapping->host)->root->fs_info, root 1121 fs/btrfs/disk-io.c static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, root 1125 fs/btrfs/disk-io.c root->node = NULL; root 1126 fs/btrfs/disk-io.c root->commit_root = NULL; root 1127 fs/btrfs/disk-io.c root->state = 0; root 1128 fs/btrfs/disk-io.c root->orphan_cleanup_state = 0; root 1130 fs/btrfs/disk-io.c root->last_trans = 0; root 1131 fs/btrfs/disk-io.c root->highest_objectid = 0; root 1132 fs/btrfs/disk-io.c root->nr_delalloc_inodes = 0; root 1133 fs/btrfs/disk-io.c root->nr_ordered_extents = 0; root 1134 fs/btrfs/disk-io.c root->inode_tree = RB_ROOT; root 1135 fs/btrfs/disk-io.c INIT_RADIX_TREE(&root->delayed_nodes_tree, GFP_ATOMIC); root 1136 fs/btrfs/disk-io.c root->block_rsv = NULL; root 1138 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->dirty_list); root 1139 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->root_list); root 1140 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->delalloc_inodes); root 1141 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->delalloc_root); root 1142 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->ordered_extents); root 1143 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->ordered_root); root 1144 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->reloc_dirty_list); root 1145 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->logged_list[0]); root 1146 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->logged_list[1]); root 1147 fs/btrfs/disk-io.c spin_lock_init(&root->inode_lock); root 1148 fs/btrfs/disk-io.c spin_lock_init(&root->delalloc_lock); root 1149 fs/btrfs/disk-io.c spin_lock_init(&root->ordered_extent_lock); root 1150 fs/btrfs/disk-io.c spin_lock_init(&root->accounting_lock); root 1151 fs/btrfs/disk-io.c spin_lock_init(&root->log_extents_lock[0]); root 1152 fs/btrfs/disk-io.c spin_lock_init(&root->log_extents_lock[1]); root 1153 fs/btrfs/disk-io.c spin_lock_init(&root->qgroup_meta_rsv_lock); root 1154 fs/btrfs/disk-io.c mutex_init(&root->objectid_mutex); root 1155 fs/btrfs/disk-io.c mutex_init(&root->log_mutex); root 1156 fs/btrfs/disk-io.c mutex_init(&root->ordered_extent_mutex); root 1157 fs/btrfs/disk-io.c mutex_init(&root->delalloc_mutex); root 1158 fs/btrfs/disk-io.c init_waitqueue_head(&root->log_writer_wait); root 1159 fs/btrfs/disk-io.c init_waitqueue_head(&root->log_commit_wait[0]); root 1160 fs/btrfs/disk-io.c init_waitqueue_head(&root->log_commit_wait[1]); root 1161 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->log_ctxs[0]); root 1162 fs/btrfs/disk-io.c INIT_LIST_HEAD(&root->log_ctxs[1]); root 1163 fs/btrfs/disk-io.c atomic_set(&root->log_commit[0], 0); root 1164 fs/btrfs/disk-io.c atomic_set(&root->log_commit[1], 0); root 1165 fs/btrfs/disk-io.c atomic_set(&root->log_writers, 0); root 1166 fs/btrfs/disk-io.c atomic_set(&root->log_batch, 0); root 1167 fs/btrfs/disk-io.c refcount_set(&root->refs, 1); root 1168 fs/btrfs/disk-io.c atomic_set(&root->will_be_snapshotted, 0); root 1169 fs/btrfs/disk-io.c atomic_set(&root->snapshot_force_cow, 0); root 1170 fs/btrfs/disk-io.c atomic_set(&root->nr_swapfiles, 0); root 1171 fs/btrfs/disk-io.c root->log_transid = 0; root 1172 fs/btrfs/disk-io.c root->log_transid_committed = -1; root 1173 fs/btrfs/disk-io.c root->last_log_commit = 0; root 1175 fs/btrfs/disk-io.c extent_io_tree_init(fs_info, &root->dirty_log_pages, root 1178 fs/btrfs/disk-io.c memset(&root->root_key, 0, sizeof(root->root_key)); root 1179 fs/btrfs/disk-io.c memset(&root->root_item, 0, sizeof(root->root_item)); root 1180 fs/btrfs/disk-io.c memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); root 1182 fs/btrfs/disk-io.c root->defrag_trans_start = fs_info->generation; root 1184 fs/btrfs/disk-io.c root->defrag_trans_start = 0; root 1185 fs/btrfs/disk-io.c root->root_key.objectid = objectid; root 1186 fs/btrfs/disk-io.c root->anon_dev = 0; root 1188 fs/btrfs/disk-io.c spin_lock_init(&root->root_item_lock); root 1189 fs/btrfs/disk-io.c btrfs_qgroup_init_swapped_blocks(&root->swapped_blocks); root 1195 fs/btrfs/disk-io.c struct btrfs_root *root = kzalloc(sizeof(*root), flags); root 1196 fs/btrfs/disk-io.c if (root) root 1197 fs/btrfs/disk-io.c root->fs_info = fs_info; root 1198 fs/btrfs/disk-io.c return root; root 1205 fs/btrfs/disk-io.c struct btrfs_root *root; root 1210 fs/btrfs/disk-io.c root = btrfs_alloc_root(fs_info, GFP_KERNEL); root 1211 fs/btrfs/disk-io.c if (!root) root 1215 fs/btrfs/disk-io.c __setup_root(root, fs_info, BTRFS_ROOT_TREE_OBJECTID); root 1216 fs/btrfs/disk-io.c root->alloc_bytenr = 0; root 1218 fs/btrfs/disk-io.c return root; root 1228 fs/btrfs/disk-io.c struct btrfs_root *root; root 1239 fs/btrfs/disk-io.c root = btrfs_alloc_root(fs_info, GFP_KERNEL); root 1241 fs/btrfs/disk-io.c if (!root) root 1244 fs/btrfs/disk-io.c __setup_root(root, fs_info, objectid); root 1245 fs/btrfs/disk-io.c root->root_key.objectid = objectid; root 1246 fs/btrfs/disk-io.c root->root_key.type = BTRFS_ROOT_ITEM_KEY; root 1247 fs/btrfs/disk-io.c root->root_key.offset = 0; root 1249 fs/btrfs/disk-io.c leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); root 1256 fs/btrfs/disk-io.c root->node = leaf; root 1259 fs/btrfs/disk-io.c root->commit_root = btrfs_root_node(root); root 1260 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 1262 fs/btrfs/disk-io.c root->root_item.flags = 0; root 1263 fs/btrfs/disk-io.c root->root_item.byte_limit = 0; root 1264 fs/btrfs/disk-io.c btrfs_set_root_bytenr(&root->root_item, leaf->start); root 1265 fs/btrfs/disk-io.c btrfs_set_root_generation(&root->root_item, trans->transid); root 1266 fs/btrfs/disk-io.c btrfs_set_root_level(&root->root_item, 0); root 1267 fs/btrfs/disk-io.c btrfs_set_root_refs(&root->root_item, 1); root 1268 fs/btrfs/disk-io.c btrfs_set_root_used(&root->root_item, leaf->len); root 1269 fs/btrfs/disk-io.c btrfs_set_root_last_snapshot(&root->root_item, 0); root 1270 fs/btrfs/disk-io.c btrfs_set_root_dirid(&root->root_item, 0); root 1273 fs/btrfs/disk-io.c memcpy(root->root_item.uuid, uuid.b, BTRFS_UUID_SIZE); root 1274 fs/btrfs/disk-io.c root->root_item.drop_level = 0; root 1279 fs/btrfs/disk-io.c ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); root 1285 fs/btrfs/disk-io.c return root; root 1290 fs/btrfs/disk-io.c free_extent_buffer(root->commit_root); root 1293 fs/btrfs/disk-io.c kfree(root); root 1301 fs/btrfs/disk-io.c struct btrfs_root *root; root 1304 fs/btrfs/disk-io.c root = btrfs_alloc_root(fs_info, GFP_NOFS); root 1305 fs/btrfs/disk-io.c if (!root) root 1308 fs/btrfs/disk-io.c __setup_root(root, fs_info, BTRFS_TREE_LOG_OBJECTID); root 1310 fs/btrfs/disk-io.c root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; root 1311 fs/btrfs/disk-io.c root->root_key.type = BTRFS_ROOT_ITEM_KEY; root 1312 fs/btrfs/disk-io.c root->root_key.offset = BTRFS_TREE_LOG_OBJECTID; root 1323 fs/btrfs/disk-io.c leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID, root 1326 fs/btrfs/disk-io.c kfree(root); root 1330 fs/btrfs/disk-io.c root->node = leaf; root 1332 fs/btrfs/disk-io.c btrfs_mark_buffer_dirty(root->node); root 1333 fs/btrfs/disk-io.c btrfs_tree_unlock(root->node); root 1334 fs/btrfs/disk-io.c return root; root 1351 fs/btrfs/disk-io.c struct btrfs_root *root) root 1353 fs/btrfs/disk-io.c struct btrfs_fs_info *fs_info = root->fs_info; root 1362 fs/btrfs/disk-io.c log_root->root_key.offset = root->root_key.objectid; root 1374 fs/btrfs/disk-io.c WARN_ON(root->log_root); root 1375 fs/btrfs/disk-io.c root->log_root = log_root; root 1376 fs/btrfs/disk-io.c root->log_transid = 0; root 1377 fs/btrfs/disk-io.c root->log_transid_committed = -1; root 1378 fs/btrfs/disk-io.c root->last_log_commit = 0; root 1385 fs/btrfs/disk-io.c struct btrfs_root *root; root 1396 fs/btrfs/disk-io.c root = btrfs_alloc_root(fs_info, GFP_NOFS); root 1397 fs/btrfs/disk-io.c if (!root) { root 1402 fs/btrfs/disk-io.c __setup_root(root, fs_info, key->objectid); root 1405 fs/btrfs/disk-io.c &root->root_item, &root->root_key); root 1412 fs/btrfs/disk-io.c generation = btrfs_root_generation(&root->root_item); root 1413 fs/btrfs/disk-io.c level = btrfs_root_level(&root->root_item); root 1414 fs/btrfs/disk-io.c root->node = read_tree_block(fs_info, root 1415 fs/btrfs/disk-io.c btrfs_root_bytenr(&root->root_item), root 1417 fs/btrfs/disk-io.c if (IS_ERR(root->node)) { root 1418 fs/btrfs/disk-io.c ret = PTR_ERR(root->node); root 1420 fs/btrfs/disk-io.c } else if (!btrfs_buffer_uptodate(root->node, generation, 0)) { root 1422 fs/btrfs/disk-io.c free_extent_buffer(root->node); root 1425 fs/btrfs/disk-io.c root->commit_root = btrfs_root_node(root); root 1428 fs/btrfs/disk-io.c return root; root 1431 fs/btrfs/disk-io.c kfree(root); root 1433 fs/btrfs/disk-io.c root = ERR_PTR(ret); root 1440 fs/btrfs/disk-io.c struct btrfs_root *root; root 1442 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, location); root 1443 fs/btrfs/disk-io.c if (IS_ERR(root)) root 1444 fs/btrfs/disk-io.c return root; root 1446 fs/btrfs/disk-io.c if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { root 1447 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_REF_COWS, &root->state); root 1448 fs/btrfs/disk-io.c btrfs_check_and_init_root_item(&root->root_item); root 1451 fs/btrfs/disk-io.c return root; root 1454 fs/btrfs/disk-io.c int btrfs_init_fs_root(struct btrfs_root *root) root 1459 fs/btrfs/disk-io.c root->free_ino_ctl = kzalloc(sizeof(*root->free_ino_ctl), GFP_NOFS); root 1460 fs/btrfs/disk-io.c root->free_ino_pinned = kzalloc(sizeof(*root->free_ino_pinned), root 1462 fs/btrfs/disk-io.c if (!root->free_ino_pinned || !root->free_ino_ctl) { root 1472 fs/btrfs/disk-io.c root->subv_writers = writers; root 1474 fs/btrfs/disk-io.c btrfs_init_free_ino_ctl(root); root 1475 fs/btrfs/disk-io.c spin_lock_init(&root->ino_cache_lock); root 1476 fs/btrfs/disk-io.c init_waitqueue_head(&root->ino_cache_wait); root 1478 fs/btrfs/disk-io.c ret = get_anon_bdev(&root->anon_dev); root 1482 fs/btrfs/disk-io.c mutex_lock(&root->objectid_mutex); root 1483 fs/btrfs/disk-io.c ret = btrfs_find_highest_objectid(root, root 1484 fs/btrfs/disk-io.c &root->highest_objectid); root 1486 fs/btrfs/disk-io.c mutex_unlock(&root->objectid_mutex); root 1490 fs/btrfs/disk-io.c ASSERT(root->highest_objectid <= BTRFS_LAST_FREE_OBJECTID); root 1492 fs/btrfs/disk-io.c mutex_unlock(&root->objectid_mutex); root 1503 fs/btrfs/disk-io.c struct btrfs_root *root; root 1506 fs/btrfs/disk-io.c root = radix_tree_lookup(&fs_info->fs_roots_radix, root 1509 fs/btrfs/disk-io.c return root; root 1513 fs/btrfs/disk-io.c struct btrfs_root *root) root 1523 fs/btrfs/disk-io.c (unsigned long)root->root_key.objectid, root 1524 fs/btrfs/disk-io.c root); root 1526 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_IN_RADIX, &root->state); root 1537 fs/btrfs/disk-io.c struct btrfs_root *root; root 1562 fs/btrfs/disk-io.c root = btrfs_lookup_fs_root(fs_info, location->objectid); root 1563 fs/btrfs/disk-io.c if (root) { root 1564 fs/btrfs/disk-io.c if (check_ref && btrfs_root_refs(&root->root_item) == 0) root 1566 fs/btrfs/disk-io.c return root; root 1569 fs/btrfs/disk-io.c root = btrfs_read_fs_root(fs_info->tree_root, location); root 1570 fs/btrfs/disk-io.c if (IS_ERR(root)) root 1571 fs/btrfs/disk-io.c return root; root 1573 fs/btrfs/disk-io.c if (check_ref && btrfs_root_refs(&root->root_item) == 0) { root 1578 fs/btrfs/disk-io.c ret = btrfs_init_fs_root(root); root 1596 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_ORPHAN_ITEM_INSERTED, &root->state); root 1598 fs/btrfs/disk-io.c ret = btrfs_insert_fs_root(fs_info, root); root 1601 fs/btrfs/disk-io.c btrfs_free_fs_root(root); root 1606 fs/btrfs/disk-io.c return root; root 1608 fs/btrfs/disk-io.c btrfs_free_fs_root(root); root 1654 fs/btrfs/disk-io.c struct btrfs_root *root = arg; root 1655 fs/btrfs/disk-io.c struct btrfs_fs_info *fs_info = root->fs_info; root 1688 fs/btrfs/disk-io.c again = btrfs_clean_one_deleted_snapshot(root); root 1722 fs/btrfs/disk-io.c struct btrfs_root *root = arg; root 1723 fs/btrfs/disk-io.c struct btrfs_fs_info *fs_info = root->fs_info; root 1756 fs/btrfs/disk-io.c trans = btrfs_attach_transaction(root); root 2008 fs/btrfs/disk-io.c static void free_root_extent_buffers(struct btrfs_root *root) root 2010 fs/btrfs/disk-io.c if (root) { root 2011 fs/btrfs/disk-io.c free_extent_buffer(root->node); root 2012 fs/btrfs/disk-io.c free_extent_buffer(root->commit_root); root 2013 fs/btrfs/disk-io.c root->node = NULL; root 2014 fs/btrfs/disk-io.c root->commit_root = NULL; root 2112 fs/btrfs/disk-io.c BTRFS_I(inode)->root = fs_info->tree_root; root 2300 fs/btrfs/disk-io.c struct btrfs_root *root; root 2310 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, &location); root 2311 fs/btrfs/disk-io.c if (IS_ERR(root)) { root 2312 fs/btrfs/disk-io.c ret = PTR_ERR(root); root 2315 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 2316 fs/btrfs/disk-io.c fs_info->extent_root = root; root 2319 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, &location); root 2320 fs/btrfs/disk-io.c if (IS_ERR(root)) { root 2321 fs/btrfs/disk-io.c ret = PTR_ERR(root); root 2324 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 2325 fs/btrfs/disk-io.c fs_info->dev_root = root; root 2329 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, &location); root 2330 fs/btrfs/disk-io.c if (IS_ERR(root)) { root 2331 fs/btrfs/disk-io.c ret = PTR_ERR(root); root 2334 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 2335 fs/btrfs/disk-io.c fs_info->csum_root = root; root 2338 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, &location); root 2339 fs/btrfs/disk-io.c if (!IS_ERR(root)) { root 2340 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 2342 fs/btrfs/disk-io.c fs_info->quota_root = root; root 2346 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, &location); root 2347 fs/btrfs/disk-io.c if (IS_ERR(root)) { root 2348 fs/btrfs/disk-io.c ret = PTR_ERR(root); root 2352 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 2353 fs/btrfs/disk-io.c fs_info->uuid_root = root; root 2358 fs/btrfs/disk-io.c root = btrfs_read_tree_root(tree_root, &location); root 2359 fs/btrfs/disk-io.c if (IS_ERR(root)) { root 2360 fs/btrfs/disk-io.c ret = PTR_ERR(root); root 2363 fs/btrfs/disk-io.c set_bit(BTRFS_ROOT_TRACK_DIRTY, &root->state); root 2364 fs/btrfs/disk-io.c fs_info->free_space_root = root; root 3863 fs/btrfs/disk-io.c struct btrfs_root *root) root 3867 fs/btrfs/disk-io.c (unsigned long)root->root_key.objectid); root 3870 fs/btrfs/disk-io.c if (btrfs_root_refs(&root->root_item) == 0) root 3874 fs/btrfs/disk-io.c btrfs_free_log(NULL, root); root 3875 fs/btrfs/disk-io.c if (root->reloc_root) { root 3876 fs/btrfs/disk-io.c free_extent_buffer(root->reloc_root->node); root 3877 fs/btrfs/disk-io.c free_extent_buffer(root->reloc_root->commit_root); root 3878 fs/btrfs/disk-io.c btrfs_put_fs_root(root->reloc_root); root 3879 fs/btrfs/disk-io.c root->reloc_root = NULL; root 3883 fs/btrfs/disk-io.c if (root->free_ino_pinned) root 3884 fs/btrfs/disk-io.c __btrfs_remove_free_space_cache(root->free_ino_pinned); root 3885 fs/btrfs/disk-io.c if (root->free_ino_ctl) root 3886 fs/btrfs/disk-io.c __btrfs_remove_free_space_cache(root->free_ino_ctl); root 3887 fs/btrfs/disk-io.c btrfs_free_fs_root(root); root 3890 fs/btrfs/disk-io.c void btrfs_free_fs_root(struct btrfs_root *root) root 3892 fs/btrfs/disk-io.c iput(root->ino_cache_inode); root 3893 fs/btrfs/disk-io.c WARN_ON(!RB_EMPTY_ROOT(&root->inode_tree)); root 3894 fs/btrfs/disk-io.c if (root->anon_dev) root 3895 fs/btrfs/disk-io.c free_anon_bdev(root->anon_dev); root 3896 fs/btrfs/disk-io.c if (root->subv_writers) root 3897 fs/btrfs/disk-io.c btrfs_free_subvolume_writers(root->subv_writers); root 3898 fs/btrfs/disk-io.c free_extent_buffer(root->node); root 3899 fs/btrfs/disk-io.c free_extent_buffer(root->commit_root); root 3900 fs/btrfs/disk-io.c kfree(root->free_ino_ctl); root 3901 fs/btrfs/disk-io.c kfree(root->free_ino_pinned); root 3902 fs/btrfs/disk-io.c btrfs_put_fs_root(root); root 3958 fs/btrfs/disk-io.c struct btrfs_root *root = fs_info->tree_root; root 3970 fs/btrfs/disk-io.c trans = btrfs_join_transaction(root); root 4127 fs/btrfs/disk-io.c struct btrfs_root *root; root 4140 fs/btrfs/disk-io.c root = BTRFS_I(buf->pages[0]->mapping->host)->root; root 4141 fs/btrfs/disk-io.c fs_info = root->fs_info; root 4218 fs/btrfs/disk-io.c static void btrfs_destroy_ordered_extents(struct btrfs_root *root) root 4222 fs/btrfs/disk-io.c spin_lock(&root->ordered_extent_lock); root 4227 fs/btrfs/disk-io.c list_for_each_entry(ordered, &root->ordered_extents, root 4230 fs/btrfs/disk-io.c spin_unlock(&root->ordered_extent_lock); root 4235 fs/btrfs/disk-io.c struct btrfs_root *root; root 4243 fs/btrfs/disk-io.c root = list_first_entry(&splice, struct btrfs_root, root 4245 fs/btrfs/disk-io.c list_move_tail(&root->ordered_root, root 4249 fs/btrfs/disk-io.c btrfs_destroy_ordered_extents(root); root 4327 fs/btrfs/disk-io.c static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root) root 4334 fs/btrfs/disk-io.c spin_lock(&root->delalloc_lock); root 4335 fs/btrfs/disk-io.c list_splice_init(&root->delalloc_inodes, &splice); root 4341 fs/btrfs/disk-io.c __btrfs_del_delalloc_inode(root, btrfs_inode); root 4342 fs/btrfs/disk-io.c spin_unlock(&root->delalloc_lock); root 4353 fs/btrfs/disk-io.c spin_lock(&root->delalloc_lock); root 4355 fs/btrfs/disk-io.c spin_unlock(&root->delalloc_lock); root 4360 fs/btrfs/disk-io.c struct btrfs_root *root; root 4368 fs/btrfs/disk-io.c root = list_first_entry(&splice, struct btrfs_root, root 4370 fs/btrfs/disk-io.c root = btrfs_grab_fs_root(root); root 4371 fs/btrfs/disk-io.c BUG_ON(!root); root 4374 fs/btrfs/disk-io.c btrfs_destroy_delalloc_inodes(root); root 4375 fs/btrfs/disk-io.c btrfs_put_fs_root(root); root 63 fs/btrfs/disk-io.h int btrfs_init_fs_root(struct btrfs_root *root); root 67 fs/btrfs/disk-io.h struct btrfs_root *root); root 84 fs/btrfs/disk-io.h struct btrfs_root *root); root 85 fs/btrfs/disk-io.h void btrfs_free_fs_root(struct btrfs_root *root); root 98 fs/btrfs/disk-io.h static inline struct btrfs_root *btrfs_grab_fs_root(struct btrfs_root *root) root 100 fs/btrfs/disk-io.h if (refcount_inc_not_zero(&root->refs)) root 101 fs/btrfs/disk-io.h return root; root 105 fs/btrfs/disk-io.h static inline void btrfs_put_fs_root(struct btrfs_root *root) root 107 fs/btrfs/disk-io.h if (refcount_dec_and_test(&root->refs)) root 108 fs/btrfs/disk-io.h kfree(root); root 127 fs/btrfs/disk-io.h struct btrfs_root *root); root 36 fs/btrfs/export.c fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; root 44 fs/btrfs/export.c parent_root_id = BTRFS_I(parent)->root->root_key.objectid; root 65 fs/btrfs/export.c struct btrfs_root *root; root 80 fs/btrfs/export.c root = btrfs_read_fs_root_no_name(fs_info, &key); root 81 fs/btrfs/export.c if (IS_ERR(root)) { root 82 fs/btrfs/export.c err = PTR_ERR(root); root 90 fs/btrfs/export.c inode = btrfs_iget(sb, &key, root, NULL); root 159 fs/btrfs/export.c struct btrfs_root *root = BTRFS_I(dir)->root; root 172 fs/btrfs/export.c key.objectid = root->root_key.objectid; root 175 fs/btrfs/export.c root = fs_info->tree_root; root 182 fs/btrfs/export.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 217 fs/btrfs/export.c return d_obtain_alias(btrfs_iget(fs_info->sb, &key, root, NULL)); root 230 fs/btrfs/export.c struct btrfs_root *root = BTRFS_I(dir)->root; root 251 fs/btrfs/export.c key.objectid = BTRFS_I(inode)->root->root_key.objectid; root 254 fs/btrfs/export.c root = fs_info->tree_root; root 261 fs/btrfs/export.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 90 fs/btrfs/extent-tree.c if (ref->tree_ref.root == BTRFS_CHUNK_TREE_OBJECTID) root 482 fs/btrfs/extent-tree.c struct btrfs_root *root = trans->fs_info->extent_root; root 502 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 518 fs/btrfs/extent-tree.c ret = btrfs_next_leaf(root, path); root 558 fs/btrfs/extent-tree.c struct btrfs_root *root = trans->fs_info->extent_root; root 577 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, size); root 603 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 724 fs/btrfs/extent-tree.c struct btrfs_root *root = trans->fs_info->extent_root; root 737 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 826 fs/btrfs/extent-tree.c struct btrfs_root *root = fs_info->extent_root; root 864 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, extra_size, 1); root 981 fs/btrfs/extent-tree.c BTRFS_MAX_EXTENT_ITEM_SIZE(root)) { root 1380 fs/btrfs/extent-tree.c generic_ref->tree_ref.root == BTRFS_TREE_LOG_OBJECTID); root 1508 fs/btrfs/extent-tree.c ref_root = ref->root; root 1652 fs/btrfs/extent-tree.c ref_root = ref->root; root 2079 fs/btrfs/extent-tree.c static u64 find_middle(struct rb_root *root) root 2081 fs/btrfs/extent-tree.c struct rb_node *n = root->rb_node; root 2087 fs/btrfs/extent-tree.c n = rb_first(root); root 2092 fs/btrfs/extent-tree.c n = rb_last(root); root 2097 fs/btrfs/extent-tree.c n = root->rb_node; root 2184 fs/btrfs/extent-tree.c delayed_refs->run_delayed_start = find_middle(&delayed_refs->root); root 2241 fs/btrfs/extent-tree.c static noinline int check_delayed_ref(struct btrfs_root *root, root 2253 fs/btrfs/extent-tree.c spin_lock(&root->fs_info->trans_lock); root 2254 fs/btrfs/extent-tree.c cur_trans = root->fs_info->running_transaction; root 2257 fs/btrfs/extent-tree.c spin_unlock(&root->fs_info->trans_lock); root 2308 fs/btrfs/extent-tree.c if (data_ref->root != root->root_key.objectid || root 2321 fs/btrfs/extent-tree.c static noinline int check_committed_ref(struct btrfs_root *root, root 2325 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2367 fs/btrfs/extent-tree.c btrfs_root_last_snapshot(&root->root_item)) root 2381 fs/btrfs/extent-tree.c root->root_key.objectid || root 2391 fs/btrfs/extent-tree.c int btrfs_cross_ref_exist(struct btrfs_root *root, u64 objectid, u64 offset, root 2402 fs/btrfs/extent-tree.c ret = check_committed_ref(root, path, objectid, root 2407 fs/btrfs/extent-tree.c ret = check_delayed_ref(root, path, objectid, offset, bytenr); root 2412 fs/btrfs/extent-tree.c if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) root 2418 fs/btrfs/extent-tree.c struct btrfs_root *root, root 2422 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2444 fs/btrfs/extent-tree.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state) && level == 0) root 2474 fs/btrfs/extent-tree.c generic_ref.real_root = root->root_key.objectid; root 2489 fs/btrfs/extent-tree.c generic_ref.real_root = root->root_key.objectid; root 2505 fs/btrfs/extent-tree.c int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2508 fs/btrfs/extent-tree.c return __btrfs_mod_ref(trans, root, buf, full_backref, 1); root 2511 fs/btrfs/extent-tree.c int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 2514 fs/btrfs/extent-tree.c return __btrfs_mod_ref(trans, root, buf, full_backref, 0); root 2530 fs/btrfs/extent-tree.c static u64 get_alloc_profile_by_root(struct btrfs_root *root, int data) root 2532 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 2538 fs/btrfs/extent-tree.c else if (root == fs_info->chunk_root) root 3241 fs/btrfs/extent-tree.c struct btrfs_root *root, root 3245 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 3253 fs/btrfs/extent-tree.c root->root_key.objectid); root 3255 fs/btrfs/extent-tree.c if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { root 3268 fs/btrfs/extent-tree.c if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { root 3318 fs/btrfs/extent-tree.c ref->tree_ref.root == BTRFS_TREE_LOG_OBJECTID) || root 3334 fs/btrfs/extent-tree.c ref->tree_ref.root == BTRFS_TREE_LOG_OBJECTID) || root 3653 fs/btrfs/extent-tree.c struct btrfs_root *root = fs_info->extent_root; root 3708 fs/btrfs/extent-tree.c trans = btrfs_join_transaction(root); root 4106 fs/btrfs/extent-tree.c int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, root 4111 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4116 fs/btrfs/extent-tree.c flags = get_alloc_profile_by_root(root, is_data); root 4332 fs/btrfs/extent-tree.c btrfs_set_extent_inline_ref_offset(leaf, iref, ref->root); root 4357 fs/btrfs/extent-tree.c struct btrfs_root *root, u64 owner, root 4364 fs/btrfs/extent-tree.c BUG_ON(root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); root 4368 fs/btrfs/extent-tree.c btrfs_init_data_ref(&generic_ref, root->root_key.objectid, owner, offset); root 4369 fs/btrfs/extent-tree.c btrfs_ref_tree_mod(root->fs_info, &generic_ref); root 4421 fs/btrfs/extent-tree.c btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 4424 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4444 fs/btrfs/extent-tree.c btrfs_set_buffer_lockdep_class(root->root_key.objectid, buf, level); root 4460 fs/btrfs/extent-tree.c if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) { root 4461 fs/btrfs/extent-tree.c buf->log_index = root->log_transid % 2; root 4467 fs/btrfs/extent-tree.c set_extent_dirty(&root->dirty_log_pages, buf->start, root 4470 fs/btrfs/extent-tree.c set_extent_new(&root->dirty_log_pages, buf->start, root 4487 fs/btrfs/extent-tree.c struct btrfs_root *root, root 4493 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4506 fs/btrfs/extent-tree.c buf = btrfs_init_new_buffer(trans, root, root->alloc_bytenr, root 4509 fs/btrfs/extent-tree.c root->alloc_bytenr += blocksize; root 4514 fs/btrfs/extent-tree.c block_rsv = btrfs_use_block_rsv(trans, root, blocksize); root 4518 fs/btrfs/extent-tree.c ret = btrfs_reserve_extent(root, blocksize, blocksize, blocksize, root 4523 fs/btrfs/extent-tree.c buf = btrfs_init_new_buffer(trans, root, ins.objectid, level, root 4555 fs/btrfs/extent-tree.c generic_ref.real_root = root->root_key.objectid; root 4596 fs/btrfs/extent-tree.c struct btrfs_root *root, root 4600 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4636 fs/btrfs/extent-tree.c generation <= root->root_key.offset) root 4656 fs/btrfs/extent-tree.c generation <= root->root_key.offset) root 4684 fs/btrfs/extent-tree.c struct btrfs_root *root, root 4688 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4695 fs/btrfs/extent-tree.c btrfs_header_owner(eb) != root->root_key.objectid) root 4730 fs/btrfs/extent-tree.c ret = btrfs_inc_ref(trans, root, eb, 1); root 4732 fs/btrfs/extent-tree.c ret = btrfs_dec_ref(trans, root, eb, 0); root 4757 fs/btrfs/extent-tree.c struct btrfs_root *root, u64 bytenr, u64 parent, root 4769 fs/btrfs/extent-tree.c root->fs_info->nodesize, parent, root 4770 fs/btrfs/extent-tree.c root->root_key.objectid, level, 0); root 4793 fs/btrfs/extent-tree.c struct btrfs_root *root, root 4797 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 4818 fs/btrfs/extent-tree.c generation <= root->root_key.offset) { root 4833 fs/btrfs/extent-tree.c btrfs_set_buffer_lockdep_class(root->root_key.objectid, next, root 4861 fs/btrfs/extent-tree.c generation <= root->root_key.offset) root 4888 fs/btrfs/extent-tree.c reada_walk_down(trans, root, wc, path); root 4904 fs/btrfs/extent-tree.c btrfs_err(root->fs_info, "mismatched level"); root 4922 fs/btrfs/extent-tree.c ASSERT(root->root_key.objectid == root 4924 fs/btrfs/extent-tree.c if (root->root_key.objectid != root 4926 fs/btrfs/extent-tree.c btrfs_err(root->fs_info, root 4941 fs/btrfs/extent-tree.c ret = check_ref_exists(trans, root, bytenr, parent, root 4956 fs/btrfs/extent-tree.c if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID && root 4978 fs/btrfs/extent-tree.c btrfs_init_tree_ref(&ref, level - 1, root->root_key.objectid); root 5007 fs/btrfs/extent-tree.c struct btrfs_root *root, root 5011 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 5065 fs/btrfs/extent-tree.c ret = btrfs_dec_ref(trans, root, eb, 1); root 5067 fs/btrfs/extent-tree.c ret = btrfs_dec_ref(trans, root, eb, 0); root 5069 fs/btrfs/extent-tree.c if (is_fstree(root->root_key.objectid)) { root 5088 fs/btrfs/extent-tree.c if (eb == root->node) { root 5091 fs/btrfs/extent-tree.c else if (root->root_key.objectid != btrfs_header_owner(eb)) root 5096 fs/btrfs/extent-tree.c else if (root->root_key.objectid != root 5101 fs/btrfs/extent-tree.c btrfs_free_tree_block(trans, root, eb, parent, wc->refs[level] == 1); root 5109 fs/btrfs/extent-tree.c btrfs_header_owner(eb), root->root_key.objectid); root 5114 fs/btrfs/extent-tree.c struct btrfs_root *root, root 5123 fs/btrfs/extent-tree.c ret = walk_down_proc(trans, root, path, wc, lookup_info); root 5134 fs/btrfs/extent-tree.c ret = do_walk_down(trans, root, path, wc, &lookup_info); root 5146 fs/btrfs/extent-tree.c struct btrfs_root *root, root 5161 fs/btrfs/extent-tree.c ret = walk_up_proc(trans, root, path, wc); root 5193 fs/btrfs/extent-tree.c int btrfs_drop_snapshot(struct btrfs_root *root, root 5197 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 5201 fs/btrfs/extent-tree.c struct btrfs_root_item *root_item = &root->root_item; root 5209 fs/btrfs/extent-tree.c btrfs_debug(fs_info, "Drop subvolume %llu", root->root_key.objectid); root 5245 fs/btrfs/extent-tree.c set_bit(BTRFS_ROOT_DELETING, &root->state); root 5247 fs/btrfs/extent-tree.c level = btrfs_header_level(root->node); root 5248 fs/btrfs/extent-tree.c path->nodes[level] = btrfs_lock_root_node(root); root 5262 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 5276 fs/btrfs/extent-tree.c level = btrfs_header_level(root->node); root 5302 fs/btrfs/extent-tree.c wc->restarted = test_bit(BTRFS_ROOT_DEAD_TREE, &root->state); root 5312 fs/btrfs/extent-tree.c ret = walk_down_tree(trans, root, path, wc); root 5318 fs/btrfs/extent-tree.c ret = walk_up_tree(trans, root, path, wc, BTRFS_MAX_LEVEL); root 5343 fs/btrfs/extent-tree.c &root->root_key, root 5372 fs/btrfs/extent-tree.c ret = btrfs_del_root(trans, &root->root_key); root 5379 fs/btrfs/extent-tree.c if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { root 5380 fs/btrfs/extent-tree.c ret = btrfs_find_root(tree_root, &root->root_key, path, root 5393 fs/btrfs/extent-tree.c root->root_key.objectid); root 5397 fs/btrfs/extent-tree.c if (test_bit(BTRFS_ROOT_IN_RADIX, &root->state)) { root 5398 fs/btrfs/extent-tree.c btrfs_add_dropped_root(trans, root); root 5400 fs/btrfs/extent-tree.c free_extent_buffer(root->node); root 5401 fs/btrfs/extent-tree.c free_extent_buffer(root->commit_root); root 5402 fs/btrfs/extent-tree.c btrfs_put_fs_root(root); root 5419 fs/btrfs/extent-tree.c btrfs_add_dead_root(root); root 5432 fs/btrfs/extent-tree.c struct btrfs_root *root, root 5436 fs/btrfs/extent-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 5444 fs/btrfs/extent-tree.c BUG_ON(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); root 5478 fs/btrfs/extent-tree.c wret = walk_down_tree(trans, root, path, wc); root 5484 fs/btrfs/extent-tree.c wret = walk_up_tree(trans, root, path, wc, parent_level); root 5743 fs/btrfs/extent-tree.c void btrfs_end_write_no_snapshotting(struct btrfs_root *root) root 5745 fs/btrfs/extent-tree.c percpu_counter_dec(&root->subv_writers->counter); root 5746 fs/btrfs/extent-tree.c cond_wake_up(&root->subv_writers->wait); root 5749 fs/btrfs/extent-tree.c int btrfs_start_write_no_snapshotting(struct btrfs_root *root) root 5751 fs/btrfs/extent-tree.c if (atomic_read(&root->will_be_snapshotted)) root 5754 fs/btrfs/extent-tree.c percpu_counter_inc(&root->subv_writers->counter); root 5759 fs/btrfs/extent-tree.c if (atomic_read(&root->will_be_snapshotted)) { root 5760 fs/btrfs/extent-tree.c btrfs_end_write_no_snapshotting(root); root 5766 fs/btrfs/extent-tree.c void btrfs_wait_for_snapshot_creation(struct btrfs_root *root) root 5771 fs/btrfs/extent-tree.c ret = btrfs_start_write_no_snapshotting(root); root 5774 fs/btrfs/extent-tree.c wait_var_event(&root->will_be_snapshotted, root 5775 fs/btrfs/extent-tree.c !atomic_read(&root->will_be_snapshotted)); root 100 fs/btrfs/extent_io.c btrfs_debug_rl(BTRFS_I(inode)->root->fs_info, root 326 fs/btrfs/extent_io.c static struct rb_node *tree_insert(struct rb_root *root, root 343 fs/btrfs/extent_io.c p = search_start ? &search_start : &root->rb_node; root 358 fs/btrfs/extent_io.c rb_insert_color(node, root); root 386 fs/btrfs/extent_io.c struct rb_root *root = &tree->state; root 387 fs/btrfs/extent_io.c struct rb_node **n = &root->rb_node; root 2766 fs/btrfs/extent_io.c clean_io_failure(BTRFS_I(inode)->root->fs_info, root 3520 fs/btrfs/extent_io.c btrfs_err(BTRFS_I(inode)->root->fs_info, root 3931 fs/btrfs/extent_io.c struct btrfs_fs_info *fs_info = BTRFS_I(mapping->host)->root->fs_info; root 4652 fs/btrfs/extent_io.c struct btrfs_root *root = BTRFS_I(inode)->root; root 4683 fs/btrfs/extent_io.c ret = btrfs_lookup_file_extent(NULL, root, path, root 4793 fs/btrfs/extent_io.c ret = btrfs_check_shared(root, root 94 fs/btrfs/extent_map.c static int tree_insert(struct rb_root_cached *root, struct extent_map *em) root 96 fs/btrfs/extent_map.c struct rb_node **p = &root->rb_root.rb_node; root 137 fs/btrfs/extent_map.c rb_insert_color_cached(&em->rb_node, root, leftmost); root 145 fs/btrfs/extent_map.c static struct rb_node *__tree_search(struct rb_root *root, u64 offset, root 149 fs/btrfs/extent_map.c struct rb_node *n = root->rb_node; root 35 fs/btrfs/file-item.c struct btrfs_root *root, root 55 fs/btrfs/file-item.c ret = btrfs_insert_empty_item(trans, root, path, &file_key, root 82 fs/btrfs/file-item.c struct btrfs_root *root, root 86 fs/btrfs/file-item.c struct btrfs_fs_info *fs_info = root->fs_info; root 99 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); root 135 fs/btrfs/file-item.c struct btrfs_root *root, root 147 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, ins_len, cow); root 235 fs/btrfs/file-item.c if (BTRFS_I(inode)->root->root_key.objectid == root 303 fs/btrfs/file-item.c int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end, root 306 fs/btrfs/file-item.c struct btrfs_fs_info *fs_info = root->fs_info; root 336 fs/btrfs/file-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 355 fs/btrfs/file-item.c ret = btrfs_next_leaf(root, path); root 594 fs/btrfs/file-item.c struct btrfs_root *root, u64 bytenr, u64 len) root 606 fs/btrfs/file-item.c ASSERT(root == fs_info->csum_root || root 607 fs/btrfs/file-item.c root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID); root 619 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 674 fs/btrfs/file-item.c ret = btrfs_del_items(trans, root, path, root 718 fs/btrfs/file-item.c ret = btrfs_split_item(trans, root, path, &key, offset); root 739 fs/btrfs/file-item.c struct btrfs_root *root, root 742 fs/btrfs/file-item.c struct btrfs_fs_info *fs_info = root->fs_info; root 771 fs/btrfs/file-item.c item = btrfs_lookup_csum(trans, root, path, bytenr, 1); root 800 fs/btrfs/file-item.c ret = btrfs_next_leaf(root, path); root 823 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, root 895 fs/btrfs/file-item.c ret = btrfs_insert_empty_item(trans, root, path, &file_key, root 942 fs/btrfs/file-item.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 943 fs/btrfs/file-item.c struct btrfs_root *root = inode->root; root 1010 fs/btrfs/file-item.c root->root_key.objectid); root 48 fs/btrfs/file.c u64 root; root 60 fs/btrfs/file.c if (defrag1->root > defrag2->root) root 62 fs/btrfs/file.c else if (defrag1->root < defrag2->root) root 84 fs/btrfs/file.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 136 fs/btrfs/file.c struct btrfs_root *root = inode->root; root 137 fs/btrfs/file.c struct btrfs_fs_info *fs_info = root->fs_info; root 151 fs/btrfs/file.c transid = inode->root->last_trans; root 159 fs/btrfs/file.c defrag->root = root->root_key.objectid; root 186 fs/btrfs/file.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 211 fs/btrfs/file.c btrfs_pick_defrag_inode(struct btrfs_fs_info *fs_info, u64 root, u64 ino) root 220 fs/btrfs/file.c tmp.root = root; root 284 fs/btrfs/file.c key.objectid = defrag->root; root 379 fs/btrfs/file.c root_objectid = defrag->root; root 748 fs/btrfs/file.c struct btrfs_root *root, struct inode *inode, root 755 fs/btrfs/file.c struct btrfs_fs_info *fs_info = root->fs_info; root 784 fs/btrfs/file.c update_refs = (test_bit(BTRFS_ROOT_REF_COWS, &root->state) || root 785 fs/btrfs/file.c root == fs_info->tree_root); root 788 fs/btrfs/file.c ret = btrfs_lookup_file_extent(trans, root, path, ino, root 805 fs/btrfs/file.c ret = btrfs_next_leaf(root, path); root 889 fs/btrfs/file.c ret = btrfs_duplicate_item(trans, root, path, root 918 fs/btrfs/file.c root->root_key.objectid, root 1005 fs/btrfs/file.c root->root_key.objectid, root 1022 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, root 1047 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, del_nr); root 1074 fs/btrfs/file.c setup_items_for_insert(root, path, &key, root 1090 fs/btrfs/file.c struct btrfs_root *root, struct inode *inode, u64 start, root 1099 fs/btrfs/file.c ret = __btrfs_drop_extents(trans, root, inode, path, start, end, NULL, root 1149 fs/btrfs/file.c struct btrfs_root *root = inode->root; root 1179 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 1273 fs/btrfs/file.c ret = btrfs_duplicate_item(trans, root, path, &new_key); root 1301 fs/btrfs/file.c btrfs_init_data_ref(&ref, root->root_key.objectid, ino, root 1327 fs/btrfs/file.c btrfs_init_data_ref(&ref, root->root_key.objectid, ino, orig_offset); root 1379 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, del_nr); root 1487 fs/btrfs/file.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 1552 fs/btrfs/file.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 1553 fs/btrfs/file.c struct btrfs_root *root = inode->root; root 1558 fs/btrfs/file.c ret = btrfs_start_write_no_snapshotting(root); root 1574 fs/btrfs/file.c btrfs_end_write_no_snapshotting(root); root 1592 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1680 fs/btrfs/file.c btrfs_end_write_no_snapshotting(root); root 1784 fs/btrfs/file.c btrfs_end_write_no_snapshotting(root); root 1813 fs/btrfs/file.c btrfs_end_write_no_snapshotting(root); root 1891 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1998 fs/btrfs/file.c BTRFS_I(inode)->last_sub_trans = root->log_transid; root 2067 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2105 fs/btrfs/file.c atomic_inc(&root->log_batch); root 2158 fs/btrfs/file.c atomic_inc(&root->log_batch); root 2194 fs/btrfs/file.c trans = btrfs_start_transaction(root, 0); root 2223 fs/btrfs/file.c ret = btrfs_sync_log(trans, root, &ctx); root 2294 fs/btrfs/file.c struct btrfs_root *root = inode->root; root 2309 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 2353 fs/btrfs/file.c ret = btrfs_insert_file_extent(trans, root, btrfs_ino(inode), root 2470 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2489 fs/btrfs/file.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 2513 fs/btrfs/file.c btrfs_init_data_ref(&ref, root->root_key.objectid, root 2537 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2568 fs/btrfs/file.c trans = btrfs_start_transaction(root, rsv_count); root 2582 fs/btrfs/file.c ret = __btrfs_drop_extents(trans, root, inode, path, root 2632 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); root 2639 fs/btrfs/file.c trans = btrfs_start_transaction(root, rsv_count); root 2732 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2858 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); root 2879 fs/btrfs/file.c trans = btrfs_start_transaction(root, 1); root 2885 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); root 2940 fs/btrfs/file.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2947 fs/btrfs/file.c trans = btrfs_start_transaction(root, 1); root 2954 fs/btrfs/file.c ret = btrfs_update_inode(trans, root, inode); root 2994 fs/btrfs/file.c struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; root 38 fs/btrfs/free-space-cache.c static int btrfs_wait_cache_io_root(struct btrfs_root *root, root 43 fs/btrfs/free-space-cache.c static struct inode *__lookup_free_space_inode(struct btrfs_root *root, root 47 fs/btrfs/free-space-cache.c struct btrfs_fs_info *fs_info = root->fs_info; root 61 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 81 fs/btrfs/free-space-cache.c inode = btrfs_iget_path(fs_info->sb, &location, root, NULL, path); root 131 fs/btrfs/free-space-cache.c static int __create_free_space_inode(struct btrfs_root *root, root 144 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_inode(trans, root, path, ino); root 174 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 230 fs/btrfs/free-space-cache.c struct btrfs_root *root = BTRFS_I(inode)->root; root 267 fs/btrfs/free-space-cache.c ret = btrfs_truncate_inode_items(trans, root, inode, root 272 fs/btrfs/free-space-cache.c ret = btrfs_update_inode(trans, root, inode); root 389 fs/btrfs/free-space-cache.c btrfs_err(BTRFS_I(inode)->root->fs_info, root 395 fs/btrfs/free-space-cache.c btrfs_err(BTRFS_I(inode)->root->fs_info, root 666 fs/btrfs/free-space-cache.c static int __load_free_space_cache(struct btrfs_root *root, struct inode *inode, root 670 fs/btrfs/free-space-cache.c struct btrfs_fs_info *fs_info = root->fs_info; root 691 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 942 fs/btrfs/free-space-cache.c node = rb_first(&cluster->root); root 964 fs/btrfs/free-space-cache.c node = rb_first(&cluster->root); root 998 fs/btrfs/free-space-cache.c struct btrfs_root *root, root 1012 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 1148 fs/btrfs/free-space-cache.c static int __btrfs_wait_cache_io(struct btrfs_root *root, root 1166 fs/btrfs/free-space-cache.c ret = update_cache_item(trans, root, inode, path, offset, root 1175 fs/btrfs/free-space-cache.c btrfs_err(root->fs_info, root 1181 fs/btrfs/free-space-cache.c btrfs_update_inode(trans, root, inode); root 1210 fs/btrfs/free-space-cache.c static int btrfs_wait_cache_io_root(struct btrfs_root *root, root 1215 fs/btrfs/free-space-cache.c return __btrfs_wait_cache_io(root, trans, NULL, io_ctl, path, 0); root 1238 fs/btrfs/free-space-cache.c static int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode, root 1357 fs/btrfs/free-space-cache.c btrfs_update_inode(trans, root, inode); root 1449 fs/btrfs/free-space-cache.c static int tree_insert_offset(struct rb_root *root, u64 offset, root 1452 fs/btrfs/free-space-cache.c struct rb_node **p = &root->rb_node; root 1495 fs/btrfs/free-space-cache.c rb_insert_color(node, root); root 2080 fs/btrfs/free-space-cache.c node = rb_first(&cluster->root); root 2556 fs/btrfs/free-space-cache.c node = rb_first(&cluster->root); root 2562 fs/btrfs/free-space-cache.c rb_erase(&entry->offset_index, &cluster->root); root 2573 fs/btrfs/free-space-cache.c cluster->root = RB_ROOT; root 2766 fs/btrfs/free-space-cache.c node = rb_first(&cluster->root); root 2808 fs/btrfs/free-space-cache.c rb_erase(&entry->offset_index, &cluster->root); root 2903 fs/btrfs/free-space-cache.c ret = tree_insert_offset(&cluster->root, entry->offset, root 2993 fs/btrfs/free-space-cache.c ret = tree_insert_offset(&cluster->root, entry->offset, root 3143 fs/btrfs/free-space-cache.c cluster->root = RB_ROOT; root 3477 fs/btrfs/free-space-cache.c struct inode *lookup_free_ino_inode(struct btrfs_root *root, root 3482 fs/btrfs/free-space-cache.c spin_lock(&root->ino_cache_lock); root 3483 fs/btrfs/free-space-cache.c if (root->ino_cache_inode) root 3484 fs/btrfs/free-space-cache.c inode = igrab(root->ino_cache_inode); root 3485 fs/btrfs/free-space-cache.c spin_unlock(&root->ino_cache_lock); root 3489 fs/btrfs/free-space-cache.c inode = __lookup_free_space_inode(root, path, 0); root 3493 fs/btrfs/free-space-cache.c spin_lock(&root->ino_cache_lock); root 3494 fs/btrfs/free-space-cache.c if (!btrfs_fs_closing(root->fs_info)) root 3495 fs/btrfs/free-space-cache.c root->ino_cache_inode = igrab(inode); root 3496 fs/btrfs/free-space-cache.c spin_unlock(&root->ino_cache_lock); root 3501 fs/btrfs/free-space-cache.c int create_free_ino_inode(struct btrfs_root *root, root 3505 fs/btrfs/free-space-cache.c return __create_free_space_inode(root, trans, path, root 3509 fs/btrfs/free-space-cache.c int load_free_ino_cache(struct btrfs_fs_info *fs_info, struct btrfs_root *root) root 3511 fs/btrfs/free-space-cache.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 3515 fs/btrfs/free-space-cache.c u64 root_gen = btrfs_root_generation(&root->root_item); root 3531 fs/btrfs/free-space-cache.c inode = lookup_free_ino_inode(root, path); root 3538 fs/btrfs/free-space-cache.c ret = __load_free_space_cache(root, inode, ctl, path, 0); root 3543 fs/btrfs/free-space-cache.c root->root_key.objectid); root 3551 fs/btrfs/free-space-cache.c int btrfs_write_out_ino_cache(struct btrfs_root *root, root 3556 fs/btrfs/free-space-cache.c struct btrfs_fs_info *fs_info = root->fs_info; root 3557 fs/btrfs/free-space-cache.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 3566 fs/btrfs/free-space-cache.c ret = __btrfs_write_out_cache(root, inode, ctl, NULL, &io_ctl, trans); root 3575 fs/btrfs/free-space-cache.c ret = btrfs_wait_cache_io_root(root, trans, &io_ctl, path); root 3585 fs/btrfs/free-space-cache.c root->root_key.objectid); root 72 fs/btrfs/free-space-cache.h struct inode *lookup_free_ino_inode(struct btrfs_root *root, root 74 fs/btrfs/free-space-cache.h int create_free_ino_inode(struct btrfs_root *root, root 78 fs/btrfs/free-space-cache.h struct btrfs_root *root); root 79 fs/btrfs/free-space-cache.h int btrfs_write_out_ino_cache(struct btrfs_root *root, root 51 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; root 61 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); root 85 fs/btrfs/free-space-tree.c struct btrfs_root *root = fs_info->free_space_root; root 93 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, 0, cow); root 112 fs/btrfs/free-space-tree.c struct btrfs_root *root, root 118 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, key, p, ins_len, cow); root 187 fs/btrfs/free-space-tree.c struct btrfs_root *root = fs_info->free_space_root; root 216 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); root 252 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); root 297 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 327 fs/btrfs/free-space-tree.c struct btrfs_root *root = fs_info->free_space_root; root 355 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); root 397 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); root 427 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); root 559 fs/btrfs/free-space-tree.c struct btrfs_root *root, struct btrfs_path *p) root 575 fs/btrfs/free-space-tree.c return btrfs_search_prev_slot(trans, root, &key, p, 0, 1); root 588 fs/btrfs/free-space-tree.c struct btrfs_root *root = block_group->fs_info->free_space_root; root 607 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); root 616 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); root 625 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); root 643 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); root 656 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); root 701 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; root 712 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); root 744 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); root 755 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); root 768 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); root 853 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; root 889 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); root 912 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); root 929 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); root 953 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); root 963 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &new_key, 0); root 1184 fs/btrfs/free-space-tree.c struct btrfs_root *root) root 1202 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 1211 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, 0, nr); root 1317 fs/btrfs/free-space-tree.c struct btrfs_root *root = trans->fs_info->free_space_root; root 1347 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); root 1376 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); root 1396 fs/btrfs/free-space-tree.c struct btrfs_root *root; root 1408 fs/btrfs/free-space-tree.c root = fs_info->free_space_root; root 1413 fs/btrfs/free-space-tree.c ret = btrfs_next_item(root, path); root 1477 fs/btrfs/free-space-tree.c struct btrfs_root *root; root 1486 fs/btrfs/free-space-tree.c root = fs_info->free_space_root; root 1491 fs/btrfs/free-space-tree.c ret = btrfs_next_item(root, path); root 75 fs/btrfs/inode-item.c struct btrfs_root *root, root 88 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); root 99 fs/btrfs/inode-item.c struct btrfs_root *root, root 124 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 138 fs/btrfs/inode-item.c btrfs_handle_fs_error(root->fs_info, -ENOENT, NULL); root 153 fs/btrfs/inode-item.c ret = btrfs_del_item(trans, root, path); root 172 fs/btrfs/inode-item.c struct btrfs_root *root, root 198 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 221 fs/btrfs/inode-item.c ret = btrfs_del_item(trans, root, path); root 239 fs/btrfs/inode-item.c return btrfs_del_inode_extref(trans, root, name, name_len, root 252 fs/btrfs/inode-item.c struct btrfs_root *root, root 274 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 310 fs/btrfs/inode-item.c struct btrfs_root *root, root 314 fs/btrfs/inode-item.c struct btrfs_fs_info *fs_info = root->fs_info; root 332 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 379 fs/btrfs/inode-item.c ret = btrfs_insert_inode_extref(trans, root, name, root 389 fs/btrfs/inode-item.c struct btrfs_root *root, root 398 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 404 fs/btrfs/inode-item.c *root, struct btrfs_path *path, root 414 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, location, path, ins_len, cow); root 16 fs/btrfs/inode-map.c static void fail_caching_thread(struct btrfs_root *root) root 18 fs/btrfs/inode-map.c struct btrfs_fs_info *fs_info = root->fs_info; root 23 fs/btrfs/inode-map.c spin_lock(&root->ino_cache_lock); root 24 fs/btrfs/inode-map.c root->ino_cache_state = BTRFS_CACHE_ERROR; root 25 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 26 fs/btrfs/inode-map.c wake_up(&root->ino_cache_wait); root 31 fs/btrfs/inode-map.c struct btrfs_root *root = data; root 32 fs/btrfs/inode-map.c struct btrfs_fs_info *fs_info = root->fs_info; root 33 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 46 fs/btrfs/inode-map.c fail_caching_thread(root); root 62 fs/btrfs/inode-map.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 73 fs/btrfs/inode-map.c ret = btrfs_next_leaf(root, path); root 92 fs/btrfs/inode-map.c root->ino_cache_progress = last; root 105 fs/btrfs/inode-map.c if (key.objectid >= root->highest_objectid) root 111 fs/btrfs/inode-map.c wake_up(&root->ino_cache_wait); root 119 fs/btrfs/inode-map.c if (last < root->highest_objectid - 1) { root 121 fs/btrfs/inode-map.c root->highest_objectid - last - 1); root 124 fs/btrfs/inode-map.c spin_lock(&root->ino_cache_lock); root 125 fs/btrfs/inode-map.c root->ino_cache_state = BTRFS_CACHE_FINISHED; root 126 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 128 fs/btrfs/inode-map.c root->ino_cache_progress = (u64)-1; root 129 fs/btrfs/inode-map.c btrfs_unpin_free_ino(root); root 131 fs/btrfs/inode-map.c wake_up(&root->ino_cache_wait); root 139 fs/btrfs/inode-map.c static void start_caching(struct btrfs_root *root) root 141 fs/btrfs/inode-map.c struct btrfs_fs_info *fs_info = root->fs_info; root 142 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 150 fs/btrfs/inode-map.c spin_lock(&root->ino_cache_lock); root 151 fs/btrfs/inode-map.c if (root->ino_cache_state != BTRFS_CACHE_NO) { root 152 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 156 fs/btrfs/inode-map.c root->ino_cache_state = BTRFS_CACHE_STARTED; root 157 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 159 fs/btrfs/inode-map.c ret = load_free_ino_cache(fs_info, root); root 161 fs/btrfs/inode-map.c spin_lock(&root->ino_cache_lock); root 162 fs/btrfs/inode-map.c root->ino_cache_state = BTRFS_CACHE_FINISHED; root 163 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 164 fs/btrfs/inode-map.c wake_up(&root->ino_cache_wait); root 175 fs/btrfs/inode-map.c ret = btrfs_find_free_objectid(root, &objectid); root 179 fs/btrfs/inode-map.c wake_up(&root->ino_cache_wait); root 182 fs/btrfs/inode-map.c tsk = kthread_run(caching_kthread, root, "btrfs-ino-cache-%llu", root 183 fs/btrfs/inode-map.c root->root_key.objectid); root 185 fs/btrfs/inode-map.c fail_caching_thread(root); root 188 fs/btrfs/inode-map.c int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) root 190 fs/btrfs/inode-map.c if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) root 191 fs/btrfs/inode-map.c return btrfs_find_free_objectid(root, objectid); root 194 fs/btrfs/inode-map.c *objectid = btrfs_find_ino_for_alloc(root); root 199 fs/btrfs/inode-map.c start_caching(root); root 201 fs/btrfs/inode-map.c wait_event(root->ino_cache_wait, root 202 fs/btrfs/inode-map.c root->ino_cache_state == BTRFS_CACHE_FINISHED || root 203 fs/btrfs/inode-map.c root->ino_cache_state == BTRFS_CACHE_ERROR || root 204 fs/btrfs/inode-map.c root->free_ino_ctl->free_space > 0); root 206 fs/btrfs/inode-map.c if (root->ino_cache_state == BTRFS_CACHE_FINISHED && root 207 fs/btrfs/inode-map.c root->free_ino_ctl->free_space == 0) root 209 fs/btrfs/inode-map.c else if (root->ino_cache_state == BTRFS_CACHE_ERROR) root 210 fs/btrfs/inode-map.c return btrfs_find_free_objectid(root, objectid); root 215 fs/btrfs/inode-map.c void btrfs_return_ino(struct btrfs_root *root, u64 objectid) root 217 fs/btrfs/inode-map.c struct btrfs_fs_info *fs_info = root->fs_info; root 218 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *pinned = root->free_ino_pinned; root 223 fs/btrfs/inode-map.c if (root->ino_cache_state == BTRFS_CACHE_FINISHED) { root 227 fs/btrfs/inode-map.c spin_lock(&root->ino_cache_lock); root 228 fs/btrfs/inode-map.c if (root->ino_cache_state == BTRFS_CACHE_FINISHED) { root 229 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 233 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 235 fs/btrfs/inode-map.c start_caching(root); root 251 fs/btrfs/inode-map.c void btrfs_unpin_free_ino(struct btrfs_root *root) root 253 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 254 fs/btrfs/inode-map.c struct rb_root *rbroot = &root->free_ino_pinned->free_space_offset; root 255 fs/btrfs/inode-map.c spinlock_t *rbroot_lock = &root->free_ino_pinned->tree_lock; root 260 fs/btrfs/inode-map.c if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) root 274 fs/btrfs/inode-map.c if (info->offset > root->ino_cache_progress) root 277 fs/btrfs/inode-map.c count = min(root->ino_cache_progress - info->offset + 1, root 283 fs/btrfs/inode-map.c __btrfs_add_free_space(root->fs_info, ctl, root 368 fs/btrfs/inode-map.c void btrfs_init_free_ino_ctl(struct btrfs_root *root) root 370 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 371 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *pinned = root->free_ino_pinned; root 396 fs/btrfs/inode-map.c int btrfs_save_ino_cache(struct btrfs_root *root, root 399 fs/btrfs/inode-map.c struct btrfs_fs_info *fs_info = root->fs_info; root 400 fs/btrfs/inode-map.c struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; root 412 fs/btrfs/inode-map.c if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && root 413 fs/btrfs/inode-map.c (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || root 414 fs/btrfs/inode-map.c root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) root 418 fs/btrfs/inode-map.c if (btrfs_root_refs(&root->root_item) == 0) root 440 fs/btrfs/inode-map.c ret = btrfs_block_rsv_add(root, trans->block_rsv, root 448 fs/btrfs/inode-map.c inode = lookup_free_ino_inode(root, path); root 458 fs/btrfs/inode-map.c ret = create_free_ino_inode(root, trans, path); root 465 fs/btrfs/inode-map.c ret = btrfs_update_inode(trans, root, inode); root 480 fs/btrfs/inode-map.c spin_lock(&root->ino_cache_lock); root 481 fs/btrfs/inode-map.c if (root->ino_cache_state != BTRFS_CACHE_FINISHED) { root 483 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 486 fs/btrfs/inode-map.c spin_unlock(&root->ino_cache_lock); root 509 fs/btrfs/inode-map.c ret = btrfs_write_out_ino_cache(root, trans, path, inode); root 527 fs/btrfs/inode-map.c int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) root 543 fs/btrfs/inode-map.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); root 562 fs/btrfs/inode-map.c int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) root 565 fs/btrfs/inode-map.c mutex_lock(&root->objectid_mutex); root 567 fs/btrfs/inode-map.c if (unlikely(root->highest_objectid >= BTRFS_LAST_FREE_OBJECTID)) { root 568 fs/btrfs/inode-map.c btrfs_warn(root->fs_info, root 570 fs/btrfs/inode-map.c root->root_key.objectid); root 575 fs/btrfs/inode-map.c *objectid = ++root->highest_objectid; root 578 fs/btrfs/inode-map.c mutex_unlock(&root->objectid_mutex); root 6 fs/btrfs/inode-map.h void btrfs_init_free_ino_ctl(struct btrfs_root *root); root 7 fs/btrfs/inode-map.h void btrfs_unpin_free_ino(struct btrfs_root *root); root 8 fs/btrfs/inode-map.h void btrfs_return_ino(struct btrfs_root *root, u64 objectid); root 9 fs/btrfs/inode-map.h int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid); root 10 fs/btrfs/inode-map.h int btrfs_save_ino_cache(struct btrfs_root *root, root 13 fs/btrfs/inode-map.h int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); root 14 fs/btrfs/inode-map.h int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid); root 55 fs/btrfs/inode.c struct btrfs_root *root; root 168 fs/btrfs/inode.c struct btrfs_root *root, struct inode *inode, root 200 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 256 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 273 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 274 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 303 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 317 fs/btrfs/inode.c ret = __btrfs_drop_extents(trans, root, inode, path, root 328 fs/btrfs/inode.c root, inode, start, root 761 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 807 fs/btrfs/inode.c ret = btrfs_reserve_extent(root, async_extent->ram_size, root 972 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1029 fs/btrfs/inode.c ret = btrfs_reserve_extent(root, cur_alloc_size, cur_alloc_size, root 1057 fs/btrfs/inode.c if (root->root_key.objectid == root 1339 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1375 fs/btrfs/inode.c ret = btrfs_lookup_file_extent(NULL, root, path, ino, root 1398 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); root 1481 fs/btrfs/inode.c btrfs_root_last_snapshot(&root->root_item)) root 1488 fs/btrfs/inode.c ret = btrfs_cross_ref_exist(root, ino, root 1512 fs/btrfs/inode.c if (!freespace_inode && atomic_read(&root->snapshot_force_cow)) root 1627 fs/btrfs/inode.c if (root->root_key.objectid == root 1829 fs/btrfs/inode.c static void btrfs_add_delalloc_inodes(struct btrfs_root *root, root 1834 fs/btrfs/inode.c spin_lock(&root->delalloc_lock); root 1837 fs/btrfs/inode.c &root->delalloc_inodes); root 1840 fs/btrfs/inode.c root->nr_delalloc_inodes++; root 1841 fs/btrfs/inode.c if (root->nr_delalloc_inodes == 1) { root 1843 fs/btrfs/inode.c BUG_ON(!list_empty(&root->delalloc_root)); root 1844 fs/btrfs/inode.c list_add_tail(&root->delalloc_root, root 1849 fs/btrfs/inode.c spin_unlock(&root->delalloc_lock); root 1853 fs/btrfs/inode.c void __btrfs_del_delalloc_inode(struct btrfs_root *root, root 1856 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 1862 fs/btrfs/inode.c root->nr_delalloc_inodes--; root 1863 fs/btrfs/inode.c if (!root->nr_delalloc_inodes) { root 1864 fs/btrfs/inode.c ASSERT(list_empty(&root->delalloc_inodes)); root 1866 fs/btrfs/inode.c BUG_ON(list_empty(&root->delalloc_root)); root 1867 fs/btrfs/inode.c list_del_init(&root->delalloc_root); root 1873 fs/btrfs/inode.c static void btrfs_del_delalloc_inode(struct btrfs_root *root, root 1876 fs/btrfs/inode.c spin_lock(&root->delalloc_lock); root 1877 fs/btrfs/inode.c __btrfs_del_delalloc_inode(root, inode); root 1878 fs/btrfs/inode.c spin_unlock(&root->delalloc_lock); root 1898 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1919 fs/btrfs/inode.c btrfs_add_delalloc_inodes(root, inode); root 1956 fs/btrfs/inode.c struct btrfs_root *root = inode->root; root 1969 fs/btrfs/inode.c root != fs_info->tree_root) root 1976 fs/btrfs/inode.c if (root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID && root 1990 fs/btrfs/inode.c btrfs_del_delalloc_inode(root, inode); root 2086 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2115 fs/btrfs/inode.c if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) root 2151 fs/btrfs/inode.c BTRFS_I(inode)->root->fs_info->csum_root, sum); root 2366 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2388 fs/btrfs/inode.c ret = __btrfs_drop_extents(trans, root, inode, path, file_pos, root 2400 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &ins, root 2436 fs/btrfs/inode.c ret = btrfs_alloc_reserved_file_extent(trans, root, root 2469 fs/btrfs/inode.c struct rb_root root; root 2513 fs/btrfs/inode.c static void backref_insert(struct rb_root *root, root 2516 fs/btrfs/inode.c struct rb_node **p = &root->rb_node; root 2533 fs/btrfs/inode.c rb_insert_color(&backref->node, root); root 2547 fs/btrfs/inode.c struct btrfs_root *root; root 2557 fs/btrfs/inode.c if (BTRFS_I(inode)->root->root_key.objectid == root_id && root 2565 fs/btrfs/inode.c root = btrfs_read_fs_root_no_name(fs_info, &key); root 2566 fs/btrfs/inode.c if (IS_ERR(root)) { root 2567 fs/btrfs/inode.c if (PTR_ERR(root) == -ENOENT) root 2572 fs/btrfs/inode.c return PTR_ERR(root); root 2582 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2594 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); root 2651 fs/btrfs/inode.c backref_insert(&new->root, backref); root 2721 fs/btrfs/inode.c struct btrfs_root *root; root 2749 fs/btrfs/inode.c root = btrfs_read_fs_root_no_name(fs_info, &key); root 2750 fs/btrfs/inode.c if (IS_ERR(root)) { root 2752 fs/btrfs/inode.c if (PTR_ERR(root) == -ENOENT) root 2754 fs/btrfs/inode.c return PTR_ERR(root); root 2757 fs/btrfs/inode.c if (btrfs_root_readonly(root)) { root 2767 fs/btrfs/inode.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); root 2787 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 2797 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2823 fs/btrfs/inode.c ret = btrfs_drop_extents(trans, root, inode, start, root 2838 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 2866 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 2946 fs/btrfs/inode.c node = rb_first(&new->root); root 2949 fs/btrfs/inode.c rb_erase(node, &new->root); root 2979 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2996 fs/btrfs/inode.c new->root = RB_ROOT; root 3007 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3028 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); root 3111 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3162 fs/btrfs/inode.c trans = btrfs_join_transaction_nolock(root); root 3164 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 3171 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, inode); root 3186 fs/btrfs/inode.c u64 last_snapshot = btrfs_root_last_snapshot(&root->root_item); root 3197 fs/btrfs/inode.c trans = btrfs_join_transaction_nolock(root); root 3199 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 3219 fs/btrfs/inode.c BUG_ON(root == fs_info->tree_root); root 3249 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, inode); root 3410 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3420 fs/btrfs/inode.c if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID && root 3522 fs/btrfs/inode.c ret = btrfs_insert_orphan_item(trans, inode->root, btrfs_ino(inode)); root 3538 fs/btrfs/inode.c return btrfs_del_orphan_item(trans, inode->root, btrfs_ino(inode)); root 3545 fs/btrfs/inode.c int btrfs_orphan_cleanup(struct btrfs_root *root) root 3547 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 3556 fs/btrfs/inode.c if (cmpxchg(&root->orphan_cleanup_state, 0, ORPHAN_CLEANUP_STARTED)) root 3571 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3618 fs/btrfs/inode.c inode = btrfs_iget(fs_info->sb, &found_key, root, NULL); root 3623 fs/btrfs/inode.c if (ret == -ENOENT && root == fs_info->tree_root) { root 3625 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 3679 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); root 3686 fs/btrfs/inode.c ret = btrfs_del_orphan_item(trans, root, root 3702 fs/btrfs/inode.c root->orphan_cleanup_state = ORPHAN_CLEANUP_DONE; root 3704 fs/btrfs/inode.c if (test_bit(BTRFS_ROOT_ORPHAN_ITEM_INSERTED, &root->state)) { root 3705 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 3799 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3820 fs/btrfs/inode.c ret = btrfs_lookup_inode(NULL, root, path, &location, 0); root 3946 fs/btrfs/inode.c root->root_key.objectid, ret); root 4035 fs/btrfs/inode.c struct btrfs_root *root, struct inode *inode) root 4047 fs/btrfs/inode.c ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, root 4072 fs/btrfs/inode.c struct btrfs_root *root, struct inode *inode) root 4074 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 4085 fs/btrfs/inode.c && root->root_key.objectid != BTRFS_DATA_RELOC_TREE_OBJECTID root 4087 fs/btrfs/inode.c btrfs_update_root_times(trans, root); root 4089 fs/btrfs/inode.c ret = btrfs_delayed_update_inode(trans, root, inode); root 4095 fs/btrfs/inode.c return btrfs_update_inode_item(trans, root, inode); root 4099 fs/btrfs/inode.c struct btrfs_root *root, root 4104 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 4106 fs/btrfs/inode.c return btrfs_update_inode_item(trans, root, inode); root 4116 fs/btrfs/inode.c struct btrfs_root *root, root 4121 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 4136 fs/btrfs/inode.c di = btrfs_lookup_dir_item(trans, root, path, dir_ino, root 4142 fs/btrfs/inode.c ret = btrfs_delete_one_dir_name(trans, root, path, di); root 4165 fs/btrfs/inode.c ret = btrfs_del_inode_ref(trans, root, name, name_len, ino, root 4181 fs/btrfs/inode.c ret = btrfs_del_inode_ref_in_log(trans, root, name, name_len, inode, root 4188 fs/btrfs/inode.c ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len, dir, root 4215 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &dir->vfs_inode); root 4221 fs/btrfs/inode.c struct btrfs_root *root, root 4226 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, dir, inode, name, name_len); root 4229 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &inode->vfs_inode); root 4244 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 4253 fs/btrfs/inode.c return btrfs_start_transaction_fallback_global_rsv(root, 5, 5); root 4258 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 4270 fs/btrfs/inode.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), root 4284 fs/btrfs/inode.c btrfs_btree_balance_dirty(root->fs_info); root 4291 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 4305 fs/btrfs/inode.c objectid = inode->root->root_key.objectid; root 4317 fs/btrfs/inode.c di = btrfs_lookup_dir_item(trans, root, path, dir_ino, root 4327 fs/btrfs/inode.c ret = btrfs_delete_one_dir_name(trans, root, path, di); root 4344 fs/btrfs/inode.c di = btrfs_search_dir_index_item(root, path, dir_ino, root 4361 fs/btrfs/inode.c root->root_key.objectid, dir_ino, root 4378 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, dir); root 4390 fs/btrfs/inode.c static noinline int may_destroy_subvol(struct btrfs_root *root) root 4392 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 4409 fs/btrfs/inode.c if (key.objectid == root->root_key.objectid) { root 4419 fs/btrfs/inode.c key.objectid = root->root_key.objectid; root 4432 fs/btrfs/inode.c if (key.objectid == root->root_key.objectid && root 4442 fs/btrfs/inode.c static void btrfs_prune_dentries(struct btrfs_root *root) root 4444 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 4452 fs/btrfs/inode.c WARN_ON(btrfs_root_refs(&root->root_item) != 0); root 4454 fs/btrfs/inode.c spin_lock(&root->inode_lock); root 4456 fs/btrfs/inode.c node = root->inode_tree.rb_node; root 4484 fs/btrfs/inode.c spin_unlock(&root->inode_lock); root 4493 fs/btrfs/inode.c spin_lock(&root->inode_lock); root 4497 fs/btrfs/inode.c if (cond_resched_lock(&root->inode_lock)) root 4502 fs/btrfs/inode.c spin_unlock(&root->inode_lock); root 4508 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 4510 fs/btrfs/inode.c struct btrfs_root *dest = BTRFS_I(inode)->root; root 4547 fs/btrfs/inode.c err = btrfs_subvolume_reserve_metadata(root, &block_rsv, 5, true); root 4551 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 0); root 4642 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 4667 fs/btrfs/inode.c err = btrfs_unlink_inode(trans, root, BTRFS_I(dir), root 4688 fs/btrfs/inode.c btrfs_btree_balance_dirty(root->fs_info); root 4711 fs/btrfs/inode.c struct btrfs_root *root, root 4715 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 4747 fs/btrfs/inode.c test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 4755 fs/btrfs/inode.c if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) root 4764 fs/btrfs/inode.c if (test_bit(BTRFS_ROOT_REF_COWS, &root->state) || root 4765 fs/btrfs/inode.c root == fs_info->tree_root) root 4776 fs/btrfs/inode.c if (min_type == 0 && root == BTRFS_I(inode)->root) root 4795 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 4872 fs/btrfs/inode.c &root->state) && root 4888 fs/btrfs/inode.c &root->state)) root 4915 fs/btrfs/inode.c if (test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 4942 fs/btrfs/inode.c (test_bit(BTRFS_ROOT_REF_COWS, &root->state) || root 4943 fs/btrfs/inode.c root == fs_info->tree_root)) { root 4950 fs/btrfs/inode.c ref.real_root = root->root_key.objectid; root 4971 fs/btrfs/inode.c ret = btrfs_del_items(trans, root, path, root 5009 fs/btrfs/inode.c err = btrfs_del_items(trans, root, path, pending_del_slot, root 5016 fs/btrfs/inode.c if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) { root 5151 fs/btrfs/inode.c static int maybe_insert_hole(struct btrfs_root *root, struct inode *inode, root 5164 fs/btrfs/inode.c BTRFS_I(inode)->last_sub_trans = root->log_transid; root 5165 fs/btrfs/inode.c BTRFS_I(inode)->last_log_commit = root->last_log_commit; root 5174 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 3); root 5178 fs/btrfs/inode.c ret = btrfs_drop_extents(trans, root, inode, offset, offset + len, 1); root 5185 fs/btrfs/inode.c ret = btrfs_insert_file_extent(trans, root, btrfs_ino(BTRFS_I(inode)), root 5190 fs/btrfs/inode.c btrfs_update_inode(trans, root, inode); root 5204 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5245 fs/btrfs/inode.c err = maybe_insert_hole(root, inode, cur_offset, root 5296 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5324 fs/btrfs/inode.c btrfs_wait_for_snapshot_creation(root); root 5327 fs/btrfs/inode.c btrfs_end_write_no_snapshotting(root); root 5331 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); root 5333 fs/btrfs/inode.c btrfs_end_write_no_snapshotting(root); root 5340 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 5341 fs/btrfs/inode.c btrfs_end_write_no_snapshotting(root); root 5384 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5387 fs/btrfs/inode.c if (btrfs_root_readonly(root)) root 5506 fs/btrfs/inode.c static struct btrfs_trans_handle *evict_refill_and_join(struct btrfs_root *root, root 5509 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 5528 fs/btrfs/inode.c ret = btrfs_block_rsv_refill(root, rsv, rsv->size + delayed_refs_extra, root 5544 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 5561 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5567 fs/btrfs/inode.c if (!root) { root 5575 fs/btrfs/inode.c ((btrfs_root_refs(&root->root_item) != 0 && root 5576 fs/btrfs/inode.c root->root_key.objectid != BTRFS_ROOT_TREE_OBJECTID) || root 5589 fs/btrfs/inode.c BUG_ON(btrfs_root_refs(&root->root_item) != 0 && root 5590 fs/btrfs/inode.c root->root_key.objectid != BTRFS_ROOT_TREE_OBJECTID); root 5607 fs/btrfs/inode.c trans = evict_refill_and_join(root, rsv); root 5613 fs/btrfs/inode.c ret = btrfs_truncate_inode_items(trans, root, inode, 0, 0); root 5632 fs/btrfs/inode.c trans = evict_refill_and_join(root, rsv); root 5640 fs/btrfs/inode.c if (!(root == fs_info->tree_root || root 5641 fs/btrfs/inode.c root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID)) root 5642 fs/btrfs/inode.c btrfs_return_ino(root, btrfs_ino(BTRFS_I(inode))); root 5670 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 5677 fs/btrfs/inode.c di = btrfs_lookup_dir_item(NULL, root, path, btrfs_ino(BTRFS_I(dir)), root 5688 fs/btrfs/inode.c btrfs_warn(root->fs_info, root 5726 fs/btrfs/inode.c key.objectid = BTRFS_I(dir)->root->root_key.objectid; root 5769 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5779 fs/btrfs/inode.c spin_lock(&root->inode_lock); root 5780 fs/btrfs/inode.c p = &root->inode_tree.rb_node; root 5792 fs/btrfs/inode.c rb_replace_node(parent, new, &root->inode_tree); root 5794 fs/btrfs/inode.c spin_unlock(&root->inode_lock); root 5799 fs/btrfs/inode.c rb_insert_color(new, &root->inode_tree); root 5800 fs/btrfs/inode.c spin_unlock(&root->inode_lock); root 5805 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5808 fs/btrfs/inode.c spin_lock(&root->inode_lock); root 5810 fs/btrfs/inode.c rb_erase(&BTRFS_I(inode)->rb_node, &root->inode_tree); root 5812 fs/btrfs/inode.c empty = RB_EMPTY_ROOT(&root->inode_tree); root 5814 fs/btrfs/inode.c spin_unlock(&root->inode_lock); root 5816 fs/btrfs/inode.c if (empty && btrfs_root_refs(&root->root_item) == 0) { root 5817 fs/btrfs/inode.c spin_lock(&root->inode_lock); root 5818 fs/btrfs/inode.c empty = RB_EMPTY_ROOT(&root->inode_tree); root 5819 fs/btrfs/inode.c spin_unlock(&root->inode_lock); root 5821 fs/btrfs/inode.c btrfs_add_dead_root(root); root 5832 fs/btrfs/inode.c BTRFS_I(inode)->root = args->root; root 5840 fs/btrfs/inode.c args->root == BTRFS_I(inode)->root; root 5845 fs/btrfs/inode.c struct btrfs_root *root) root 5849 fs/btrfs/inode.c unsigned long hashval = btrfs_inode_hash(location->objectid, root); root 5852 fs/btrfs/inode.c args.root = root; root 5864 fs/btrfs/inode.c struct btrfs_root *root, int *new, root 5869 fs/btrfs/inode.c inode = btrfs_iget_locked(s, location, root); root 5899 fs/btrfs/inode.c struct btrfs_root *root, int *new) root 5901 fs/btrfs/inode.c return btrfs_iget_path(s, location, root, new, NULL); root 5906 fs/btrfs/inode.c struct btrfs_root *root) root 5913 fs/btrfs/inode.c BTRFS_I(inode)->root = root; root 5952 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 5953 fs/btrfs/inode.c struct btrfs_root *sub_root = root; root 5967 fs/btrfs/inode.c inode = btrfs_iget(dir->i_sb, &location, root, NULL); root 5996 fs/btrfs/inode.c if (!IS_ERR(inode) && root != sub_root) { root 6012 fs/btrfs/inode.c struct btrfs_root *root; root 6019 fs/btrfs/inode.c root = BTRFS_I(inode)->root; root 6020 fs/btrfs/inode.c if (btrfs_root_refs(&root->root_item) == 0) root 6092 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 6130 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 6140 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); root 6237 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 6244 fs/btrfs/inode.c trans = btrfs_join_transaction(root); root 6248 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 6252 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); root 6256 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 6272 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 6275 fs/btrfs/inode.c if (btrfs_root_readonly(root)) root 6296 fs/btrfs/inode.c struct btrfs_root *root = inode->root; root 6310 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 6373 fs/btrfs/inode.c args.root = BTRFS_I(inode)->root; root 6376 fs/btrfs/inode.c btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root), root 6412 fs/btrfs/inode.c struct btrfs_root *root, root 6418 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 6475 fs/btrfs/inode.c BTRFS_I(inode)->root = root; root 6519 fs/btrfs/inode.c ret = btrfs_insert_empty_items(trans, root, path, key, sizes, nitems); root 6564 fs/btrfs/inode.c btrfs_update_root_times(trans, root); root 6570 fs/btrfs/inode.c btrfs_ino(BTRFS_I(inode)), root->root_key.objectid, ret); root 6595 fs/btrfs/inode.c struct btrfs_root *root = parent_inode->root; root 6600 fs/btrfs/inode.c memcpy(&key, &inode->root->root_key, sizeof(key)); root 6609 fs/btrfs/inode.c root->root_key.objectid, parent_ino, root 6612 fs/btrfs/inode.c ret = btrfs_insert_inode_ref(trans, root, name, name_len, ino, root 6638 fs/btrfs/inode.c if (!test_bit(BTRFS_FS_LOG_RECOVERING, &root->fs_info->flags)) { root 6644 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &parent_inode->vfs_inode); root 6654 fs/btrfs/inode.c root->root_key.objectid, parent_ino, root 6662 fs/btrfs/inode.c err = btrfs_del_inode_ref(trans, root, name, name_len, root 6689 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 6700 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); root 6704 fs/btrfs/inode.c err = btrfs_find_free_ino(root, &objectid); root 6708 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, root 6735 fs/btrfs/inode.c btrfs_update_inode(trans, root, inode); root 6753 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 6764 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); root 6768 fs/btrfs/inode.c err = btrfs_find_free_ino(root, &objectid); root 6772 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, root 6794 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); root 6820 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 6828 fs/btrfs/inode.c if (root->root_key.objectid != BTRFS_I(inode)->root->root_key.objectid) root 6844 fs/btrfs/inode.c trans = btrfs_start_transaction(root, inode->i_nlink ? 5 : 6); root 6868 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); root 6905 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 6915 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); root 6919 fs/btrfs/inode.c err = btrfs_find_free_ino(root, &objectid); root 6923 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, root 6941 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); root 7022 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 7030 fs/btrfs/inode.c struct btrfs_root *root = inode->root; root 7079 fs/btrfs/inode.c ret = btrfs_lookup_file_extent(NULL, root, path, objectid, start, 0); root 7137 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); root 7238 fs/btrfs/inode.c trace_btrfs_get_extent(root, inode, em); root 7417 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 7424 fs/btrfs/inode.c ret = btrfs_reserve_extent(root, len, len, fs_info->sectorsize, root 7452 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 7468 fs/btrfs/inode.c ret = btrfs_lookup_file_extent(NULL, root, path, root 7525 fs/btrfs/inode.c btrfs_root_last_snapshot(&root->root_item)) root 7544 fs/btrfs/inode.c root->fs_info->sectorsize) - 1; root 7560 fs/btrfs/inode.c ret = btrfs_cross_ref_exist(root, btrfs_ino(BTRFS_I(inode)), root 7677 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 7695 fs/btrfs/inode.c em->bdev = root->fs_info->fs_devices->latest_bdev; root 8050 fs/btrfs/inode.c btrfs_debug(BTRFS_I(inode)->root->fs_info, root 8089 fs/btrfs/inode.c clean_io_failure(BTRFS_I(inode)->root->fs_info, failure_tree, root 8111 fs/btrfs/inode.c fs_info = BTRFS_I(inode)->root->fs_info; root 8186 fs/btrfs/inode.c clean_io_failure(BTRFS_I(inode)->root->fs_info, root 8219 fs/btrfs/inode.c fs_info = BTRFS_I(inode)->root->fs_info; root 8388 fs/btrfs/inode.c btrfs_warn(BTRFS_I(dip->inode)->root->fs_info, root 9173 fs/btrfs/inode.c BTRFS_I(inode)->last_sub_trans = BTRFS_I(inode)->root->log_transid; root 9174 fs/btrfs/inode.c BTRFS_I(inode)->last_log_commit = BTRFS_I(inode)->root->last_log_commit; root 9200 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 9252 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 2); root 9274 fs/btrfs/inode.c ret = btrfs_truncate_inode_items(trans, root, inode, root 9281 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 9288 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 2); root 9315 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 1); root 9327 fs/btrfs/inode.c ret2 = btrfs_update_inode(trans, root, inode); root 9389 fs/btrfs/inode.c ei->root = NULL; root 9455 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 9472 fs/btrfs/inode.c if (!root) root 9495 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 9497 fs/btrfs/inode.c if (root == NULL) root 9501 fs/btrfs/inode.c if (btrfs_root_refs(&root->root_item) == 0) root 9593 fs/btrfs/inode.c stat->dev = BTRFS_I(inode)->root->anon_dev; root 9610 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(old_dir)->root; root 9611 fs/btrfs/inode.c struct btrfs_root *dest = BTRFS_I(new_dir)->root; root 9630 fs/btrfs/inode.c if (old_ino != BTRFS_FIRST_FREE_OBJECTID && root != dest) root 9649 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 12); root 9655 fs/btrfs/inode.c if (dest != root) root 9677 fs/btrfs/inode.c btrfs_pin_log_trans(root); root 9696 fs/btrfs/inode.c ret = btrfs_insert_inode_ref(trans, root, root 9727 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, BTRFS_I(old_dir), root 9732 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, old_inode); root 9786 fs/btrfs/inode.c btrfs_end_log_trans(root); root 9825 fs/btrfs/inode.c btrfs_end_log_trans(root); root 9834 fs/btrfs/inode.c ret = btrfs_sync_log(trans, BTRFS_I(old_inode)->root, root 9840 fs/btrfs/inode.c ret = btrfs_sync_log(trans, BTRFS_I(new_inode)->root, root 9854 fs/btrfs/inode.c mutex_lock(&root->log_mutex); root 9856 fs/btrfs/inode.c mutex_unlock(&root->log_mutex); root 9877 fs/btrfs/inode.c struct btrfs_root *root, root 9886 fs/btrfs/inode.c ret = btrfs_find_free_ino(root, &objectid); root 9890 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, root 9917 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 9934 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(old_dir)->root; root 9935 fs/btrfs/inode.c struct btrfs_root *dest = BTRFS_I(new_dir)->root; root 9950 fs/btrfs/inode.c if (old_ino != BTRFS_FIRST_FREE_OBJECTID && root != dest) root 10005 fs/btrfs/inode.c trans = btrfs_start_transaction(root, trans_num_items); root 10011 fs/btrfs/inode.c if (dest != root) root 10023 fs/btrfs/inode.c btrfs_pin_log_trans(root); root 10048 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, BTRFS_I(old_dir), root 10053 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, old_inode); root 10105 fs/btrfs/inode.c btrfs_end_log_trans(root); root 10110 fs/btrfs/inode.c ret = btrfs_whiteout_for_rename(trans, root, old_dir, root 10138 fs/btrfs/inode.c btrfs_end_log_trans(root); root 10142 fs/btrfs/inode.c ret = btrfs_sync_log(trans, BTRFS_I(old_inode)->root, &ctx); root 10146 fs/btrfs/inode.c mutex_lock(&root->log_mutex); root 10148 fs/btrfs/inode.c mutex_unlock(&root->log_mutex); root 10223 fs/btrfs/inode.c static int start_delalloc_inodes(struct btrfs_root *root, int nr, bool snapshot) root 10235 fs/btrfs/inode.c mutex_lock(&root->delalloc_mutex); root 10236 fs/btrfs/inode.c spin_lock(&root->delalloc_lock); root 10237 fs/btrfs/inode.c list_splice_init(&root->delalloc_inodes, &splice); root 10243 fs/btrfs/inode.c &root->delalloc_inodes); root 10246 fs/btrfs/inode.c cond_resched_lock(&root->delalloc_lock); root 10249 fs/btrfs/inode.c spin_unlock(&root->delalloc_lock); root 10261 fs/btrfs/inode.c btrfs_queue_work(root->fs_info->flush_workers, root 10267 fs/btrfs/inode.c spin_lock(&root->delalloc_lock); root 10269 fs/btrfs/inode.c spin_unlock(&root->delalloc_lock); root 10279 fs/btrfs/inode.c spin_lock(&root->delalloc_lock); root 10280 fs/btrfs/inode.c list_splice_tail(&splice, &root->delalloc_inodes); root 10281 fs/btrfs/inode.c spin_unlock(&root->delalloc_lock); root 10283 fs/btrfs/inode.c mutex_unlock(&root->delalloc_mutex); root 10287 fs/btrfs/inode.c int btrfs_start_delalloc_snapshot(struct btrfs_root *root) root 10289 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = root->fs_info; root 10295 fs/btrfs/inode.c ret = start_delalloc_inodes(root, -1, true); root 10303 fs/btrfs/inode.c struct btrfs_root *root; root 10316 fs/btrfs/inode.c root = list_first_entry(&splice, struct btrfs_root, root 10318 fs/btrfs/inode.c root = btrfs_grab_fs_root(root); root 10319 fs/btrfs/inode.c BUG_ON(!root); root 10320 fs/btrfs/inode.c list_move_tail(&root->delalloc_root, root 10324 fs/btrfs/inode.c ret = start_delalloc_inodes(root, nr, false); root 10325 fs/btrfs/inode.c btrfs_put_fs_root(root); root 10353 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 10377 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 7); root 10381 fs/btrfs/inode.c err = btrfs_find_free_ino(root, &objectid); root 10385 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, root 10418 fs/btrfs/inode.c err = btrfs_insert_empty_item(trans, root, path, &key, root 10444 fs/btrfs/inode.c err = btrfs_update_inode(trans, root, inode); root 10476 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 10491 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 3); root 10507 fs/btrfs/inode.c ret = btrfs_reserve_extent(root, cur_bytes, cur_bytes, root 10591 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 10634 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(inode)->root; root 10639 fs/btrfs/inode.c if (btrfs_root_readonly(root)) root 10651 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; root 10660 fs/btrfs/inode.c trans = btrfs_start_transaction(root, 5); root 10664 fs/btrfs/inode.c ret = btrfs_find_free_ino(root, &objectid); root 10668 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, NULL, 0, root 10686 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, inode); root 10737 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; root 10775 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; root 10841 fs/btrfs/inode.c atomic_dec(&BTRFS_I(inode)->root->nr_swapfiles); root 10848 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; root 10905 fs/btrfs/inode.c atomic_inc(&BTRFS_I(inode)->root->nr_swapfiles); root 191 fs/btrfs/ioctl.c struct btrfs_root *root = binode->root; root 201 fs/btrfs/ioctl.c if (btrfs_root_readonly(root)) root 302 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 3); root 328 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, inode); root 390 fs/btrfs/ioctl.c struct btrfs_root *root = binode->root; root 400 fs/btrfs/ioctl.c if (btrfs_root_readonly(root)) root 450 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 1); root 459 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, inode); root 567 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(dir)->root; root 601 fs/btrfs/ioctl.c ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, 8, false); root 605 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); root 618 fs/btrfs/ioctl.c leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); root 679 fs/btrfs/ioctl.c ret = btrfs_create_subvol_root(trans, new_root, root, new_dirid); root 707 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, dir); root 713 fs/btrfs/ioctl.c ret = btrfs_add_root_ref(trans, objectid, root->root_key.objectid, root 755 fs/btrfs/ioctl.c static int create_snapshot(struct btrfs_root *root, struct inode *dir, root 767 fs/btrfs/ioctl.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 770 fs/btrfs/ioctl.c if (atomic_read(&root->nr_swapfiles)) { root 793 fs/btrfs/ioctl.c atomic_inc(&root->will_be_snapshotted); root 796 fs/btrfs/ioctl.c wait_event(root->subv_writers->wait, root 797 fs/btrfs/ioctl.c percpu_counter_sum(&root->subv_writers->counter) == 0); root 799 fs/btrfs/ioctl.c ret = btrfs_start_delalloc_snapshot(root); root 808 fs/btrfs/ioctl.c atomic_inc(&root->snapshot_force_cow); root 811 fs/btrfs/ioctl.c btrfs_wait_ordered_extents(root, U64_MAX, 0, (u64)-1); root 823 fs/btrfs/ioctl.c ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, root 830 fs/btrfs/ioctl.c pending_snapshot->root = root; root 835 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); root 876 fs/btrfs/ioctl.c atomic_dec(&root->snapshot_force_cow); root 877 fs/btrfs/ioctl.c if (atomic_dec_and_test(&root->will_be_snapshotted)) root 878 fs/btrfs/ioctl.c wake_up_var(&root->will_be_snapshotted); root 982 fs/btrfs/ioctl.c error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root, root 990 fs/btrfs/ioctl.c if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0) root 1051 fs/btrfs/ioctl.c static int find_new_extents(struct btrfs_root *root, root 1072 fs/btrfs/ioctl.c ret = btrfs_search_forward(root, &min_key, path, newer_than); root 1391 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1455 fs/btrfs/ioctl.c ret = find_new_extents(root, inode, newer_than, root 1550 fs/btrfs/ioctl.c ret = find_new_extents(root, inode, newer_than, root 1604 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1719 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); root 1778 fs/btrfs/ioctl.c btrfs_info(BTRFS_I(file_inode(file))->root->fs_info, root 1789 fs/btrfs/ioctl.c BTRFS_I(src_inode)->root, root 1894 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1902 fs/btrfs/ioctl.c if (btrfs_root_readonly(root)) root 1917 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 1953 fs/btrfs/ioctl.c if (!!(flags & BTRFS_SUBVOL_RDONLY) == btrfs_root_readonly(root)) root 1956 fs/btrfs/ioctl.c root_flags = btrfs_root_flags(&root->root_item); root 1958 fs/btrfs/ioctl.c btrfs_set_root_flags(&root->root_item, root 1965 fs/btrfs/ioctl.c spin_lock(&root->root_item_lock); root 1966 fs/btrfs/ioctl.c if (root->send_in_progress == 0) { root 1967 fs/btrfs/ioctl.c btrfs_set_root_flags(&root->root_item, root 1969 fs/btrfs/ioctl.c spin_unlock(&root->root_item_lock); root 1971 fs/btrfs/ioctl.c spin_unlock(&root->root_item_lock); root 1974 fs/btrfs/ioctl.c root->root_key.objectid); root 1980 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 1); root 1987 fs/btrfs/ioctl.c &root->root_key, &root->root_item); root 1997 fs/btrfs/ioctl.c btrfs_set_root_flags(&root->root_item, root_flags); root 2160 fs/btrfs/ioctl.c struct btrfs_root *root; root 2178 fs/btrfs/ioctl.c root = BTRFS_I(inode)->root; root 2183 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(info, &key); root 2184 fs/btrfs/ioctl.c if (IS_ERR(root)) { root 2186 fs/btrfs/ioctl.c return PTR_ERR(root); root 2195 fs/btrfs/ioctl.c ret = btrfs_search_forward(root, &key, path, sk->min_transid); root 2293 fs/btrfs/ioctl.c struct btrfs_root *root; root 2318 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(info, &key); root 2319 fs/btrfs/ioctl.c if (IS_ERR(root)) { root 2320 fs/btrfs/ioctl.c ret = PTR_ERR(root); root 2329 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2333 fs/btrfs/ioctl.c ret = btrfs_previous_item(root, path, dirid, root 2378 fs/btrfs/ioctl.c struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; root 2381 fs/btrfs/ioctl.c u64 treeid = BTRFS_I(inode)->root->root_key.objectid; root 2387 fs/btrfs/ioctl.c struct btrfs_root *root; root 2412 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(fs_info, &key); root 2413 fs/btrfs/ioctl.c if (IS_ERR(root)) { root 2414 fs/btrfs/ioctl.c ret = PTR_ERR(root); root 2422 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2426 fs/btrfs/ioctl.c ret = btrfs_previous_item(root, path, dirid, root 2454 fs/btrfs/ioctl.c ret = btrfs_previous_item(root, path, dirid, root 2471 fs/btrfs/ioctl.c temp_inode = btrfs_iget(sb, &key2, root, NULL); root 2502 fs/btrfs/ioctl.c root = fs_info->tree_root; root 2506 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2556 fs/btrfs/ioctl.c args->treeid = BTRFS_I(inode)->root->root_key.objectid; root 2568 fs/btrfs/ioctl.c ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, root 2628 fs/btrfs/ioctl.c struct btrfs_root *root; root 2651 fs/btrfs/ioctl.c fs_info = BTRFS_I(inode)->root->fs_info; root 2654 fs/btrfs/ioctl.c key.objectid = BTRFS_I(inode)->root->root_key.objectid; root 2657 fs/btrfs/ioctl.c root = btrfs_read_fs_root_no_name(fs_info, &key); root 2658 fs/btrfs/ioctl.c if (IS_ERR(root)) { root 2659 fs/btrfs/ioctl.c ret = PTR_ERR(root); root 2662 fs/btrfs/ioctl.c root_item = &root->root_item; root 2693 fs/btrfs/ioctl.c root = fs_info->tree_root; root 2697 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2702 fs/btrfs/ioctl.c ret = btrfs_next_leaf(root, path); root 2750 fs/btrfs/ioctl.c struct btrfs_root *root; root 2771 fs/btrfs/ioctl.c root = BTRFS_I(inode)->root->fs_info->tree_root; root 2772 fs/btrfs/ioctl.c objectid = BTRFS_I(inode)->root->root_key.objectid; root 2779 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2784 fs/btrfs/ioctl.c ret = btrfs_next_leaf(root, path); root 2813 fs/btrfs/ioctl.c ret = btrfs_next_item(root, path); root 2847 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(dir)->root; root 2888 fs/btrfs/ioctl.c dest = BTRFS_I(inode)->root; root 2915 fs/btrfs/ioctl.c if (root == dest) root 2955 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 2963 fs/btrfs/ioctl.c if (btrfs_root_readonly(root)) { root 2974 fs/btrfs/ioctl.c ret = btrfs_defrag_root(root); root 3247 fs/btrfs/ioctl.c const u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize; root 3268 fs/btrfs/ioctl.c struct btrfs_root *root_dst = BTRFS_I(dst)->root; root 3313 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3328 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, inode); root 3375 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(dst)->root; root 3387 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3392 fs/btrfs/ioctl.c ret = btrfs_next_leaf(root, path); root 3427 fs/btrfs/ioctl.c ret = btrfs_next_item(root, path); root 3461 fs/btrfs/ioctl.c ret = btrfs_drop_extents(trans, root, dst, drop_start, aligned_end, 1); root 3464 fs/btrfs/ioctl.c ret = btrfs_insert_empty_item(trans, root, path, new_key, size); root 3500 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3545 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, root 3564 fs/btrfs/ioctl.c ret = btrfs_next_leaf(BTRFS_I(src)->root, path); root 3692 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 3); root 3831 fs/btrfs/ioctl.c u64 bs = BTRFS_I(inode_out)->root->fs_info->sb->s_blocksize; root 3837 fs/btrfs/ioctl.c struct btrfs_root *root_out = BTRFS_I(inode_out)->root; root 3955 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 4002 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 1); root 4192 fs/btrfs/ioctl.c static noinline long btrfs_ioctl_start_sync(struct btrfs_root *root, root 4199 fs/btrfs/ioctl.c trans = btrfs_attach_transaction_barrier(root); root 4205 fs/btrfs/ioctl.c transid = root->fs_info->last_trans_committed; root 4380 fs/btrfs/ioctl.c static long btrfs_ioctl_ino_to_path(struct btrfs_root *root, void __user *arg) root 4407 fs/btrfs/ioctl.c ipath = init_ipath(size, root, path); root 4439 fs/btrfs/ioctl.c static int build_ino_list(u64 inum, u64 offset, u64 root, void *ctx) root 4448 fs/btrfs/ioctl.c inodes->val[inodes->elem_cnt + 2] = root; root 4553 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(file_inode(file))->root; root 4554 fs/btrfs/ioctl.c struct btrfs_fs_info *fs_info = root->fs_info; root 4789 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 4808 fs/btrfs/ioctl.c trans = btrfs_join_transaction(root); root 4839 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 4863 fs/btrfs/ioctl.c trans = btrfs_join_transaction(root); root 4889 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 4909 fs/btrfs/ioctl.c trans = btrfs_join_transaction(root); root 4918 fs/btrfs/ioctl.c qgroupid = root->root_key.objectid; root 5010 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5011 fs/btrfs/ioctl.c struct btrfs_root_item *root_item = &root->root_item; root 5031 fs/btrfs/ioctl.c if (btrfs_root_readonly(root)) { root 5040 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 3); root 5057 fs/btrfs/ioctl.c root->root_key.objectid); root 5073 fs/btrfs/ioctl.c &root->root_key, &root->root_item); root 5081 fs/btrfs/ioctl.c root->root_key.objectid); root 5199 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5222 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); root 5343 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5380 fs/btrfs/ioctl.c trans = btrfs_start_transaction(root, 0); root 5450 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(inode)->root; root 5507 fs/btrfs/ioctl.c return btrfs_ioctl_ino_to_path(root, argp); root 5530 fs/btrfs/ioctl.c return btrfs_ioctl_start_sync(root, argp); root 31 fs/btrfs/ordered-data.c static struct rb_node *tree_insert(struct rb_root *root, u64 file_offset, root 34 fs/btrfs/ordered-data.c struct rb_node **p = &root->rb_node; root 51 fs/btrfs/ordered-data.c rb_insert_color(node, root); root 67 fs/btrfs/ordered-data.c static struct rb_node *__tree_search(struct rb_root *root, u64 file_offset, root 70 fs/btrfs/ordered-data.c struct rb_node *n = root->rb_node; root 144 fs/btrfs/ordered-data.c struct rb_root *root = &tree->tree; root 155 fs/btrfs/ordered-data.c ret = __tree_search(root, file_offset, &prev); root 179 fs/btrfs/ordered-data.c struct btrfs_root *root = BTRFS_I(inode)->root; root 225 fs/btrfs/ordered-data.c spin_lock(&root->ordered_extent_lock); root 227 fs/btrfs/ordered-data.c &root->ordered_extents); root 228 fs/btrfs/ordered-data.c root->nr_ordered_extents++; root 229 fs/btrfs/ordered-data.c if (root->nr_ordered_extents == 1) { root 231 fs/btrfs/ordered-data.c BUG_ON(!list_empty(&root->ordered_root)); root 232 fs/btrfs/ordered-data.c list_add_tail(&root->ordered_root, &fs_info->ordered_roots); root 235 fs/btrfs/ordered-data.c spin_unlock(&root->ordered_extent_lock); root 404 fs/btrfs/ordered-data.c btrfs_crit(BTRFS_I(inode)->root->fs_info, root 466 fs/btrfs/ordered-data.c struct btrfs_root *root = btrfs_inode->root; root 473 fs/btrfs/ordered-data.c if (root != fs_info->tree_root) root 490 fs/btrfs/ordered-data.c spin_lock(&root->ordered_extent_lock); root 492 fs/btrfs/ordered-data.c root->nr_ordered_extents--; root 496 fs/btrfs/ordered-data.c if (!root->nr_ordered_extents) { root 498 fs/btrfs/ordered-data.c BUG_ON(list_empty(&root->ordered_root)); root 499 fs/btrfs/ordered-data.c list_del_init(&root->ordered_root); root 502 fs/btrfs/ordered-data.c spin_unlock(&root->ordered_extent_lock); root 519 fs/btrfs/ordered-data.c u64 btrfs_wait_ordered_extents(struct btrfs_root *root, u64 nr, root 522 fs/btrfs/ordered-data.c struct btrfs_fs_info *fs_info = root->fs_info; root 530 fs/btrfs/ordered-data.c mutex_lock(&root->ordered_extent_mutex); root 531 fs/btrfs/ordered-data.c spin_lock(&root->ordered_extent_lock); root 532 fs/btrfs/ordered-data.c list_splice_init(&root->ordered_extents, &splice); root 540 fs/btrfs/ordered-data.c cond_resched_lock(&root->ordered_extent_lock); root 545 fs/btrfs/ordered-data.c &root->ordered_extents); root 547 fs/btrfs/ordered-data.c spin_unlock(&root->ordered_extent_lock); root 555 fs/btrfs/ordered-data.c spin_lock(&root->ordered_extent_lock); root 560 fs/btrfs/ordered-data.c list_splice_tail(&skipped, &root->ordered_extents); root 561 fs/btrfs/ordered-data.c list_splice_tail(&splice, &root->ordered_extents); root 562 fs/btrfs/ordered-data.c spin_unlock(&root->ordered_extent_lock); root 570 fs/btrfs/ordered-data.c mutex_unlock(&root->ordered_extent_mutex); root 578 fs/btrfs/ordered-data.c struct btrfs_root *root; root 589 fs/btrfs/ordered-data.c root = list_first_entry(&splice, struct btrfs_root, root 591 fs/btrfs/ordered-data.c root = btrfs_grab_fs_root(root); root 592 fs/btrfs/ordered-data.c BUG_ON(!root); root 593 fs/btrfs/ordered-data.c list_move_tail(&root->ordered_root, root 597 fs/btrfs/ordered-data.c done = btrfs_wait_ordered_extents(root, nr, root 599 fs/btrfs/ordered-data.c btrfs_put_fs_root(root); root 187 fs/btrfs/ordered-data.h u64 btrfs_wait_ordered_extents(struct btrfs_root *root, u64 nr, root 10 fs/btrfs/orphan.c struct btrfs_root *root, u64 offset) root 24 fs/btrfs/orphan.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); root 31 fs/btrfs/orphan.c struct btrfs_root *root, u64 offset) root 45 fs/btrfs/orphan.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 53 fs/btrfs/orphan.c ret = btrfs_del_item(trans, root, path); root 114 fs/btrfs/props.c static int iterate_object_props(struct btrfs_root *root, root 141 fs/btrfs/props.c ret = btrfs_next_leaf(root, path); root 231 fs/btrfs/props.c struct btrfs_root *root = BTRFS_I(inode)->root; root 236 fs/btrfs/props.c btrfs_warn(root->fs_info, root 239 fs/btrfs/props.c root->root_key.objectid, ret); root 246 fs/btrfs/props.c struct btrfs_root *root = BTRFS_I(inode)->root; root 250 fs/btrfs/props.c ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode); root 327 fs/btrfs/props.c struct btrfs_root *root = BTRFS_I(inode)->root; root 328 fs/btrfs/props.c struct btrfs_fs_info *fs_info = root->fs_info; root 366 fs/btrfs/props.c ret = btrfs_block_rsv_add(root, trans->block_rsv, root 407 fs/btrfs/props.c struct btrfs_root *root, root 410 fs/btrfs/props.c struct super_block *sb = root->fs_info->sb; root 423 fs/btrfs/props.c child_inode = btrfs_iget(sb, &key, root, NULL); root 25 fs/btrfs/props.h struct btrfs_root *root, root 835 fs/btrfs/qgroup.c struct btrfs_root *root) root 854 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 867 fs/btrfs/qgroup.c ret = btrfs_del_items(trans, root, path, 0, nr); root 2880 fs/btrfs/qgroup.c static int qgroup_reserve(struct btrfs_root *root, u64 num_bytes, bool enforce, root 2885 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = root->fs_info; root 2886 fs/btrfs/qgroup.c u64 ref_root = root->root_key.objectid; root 3411 fs/btrfs/qgroup.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3419 fs/btrfs/qgroup.c if (!test_bit(BTRFS_FS_QUOTA_ENABLED, &root->fs_info->flags) || root 3420 fs/btrfs/qgroup.c !is_fstree(root->root_key.objectid) || len == 0) root 3443 fs/btrfs/qgroup.c ret = qgroup_reserve(root, to_reserve, true, BTRFS_QGROUP_RSV_DATA); root 3456 fs/btrfs/qgroup.c btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, root 3466 fs/btrfs/qgroup.c struct btrfs_root *root = BTRFS_I(inode)->root; root 3474 fs/btrfs/qgroup.c len = round_up(start + len, root->fs_info->sectorsize); root 3475 fs/btrfs/qgroup.c start = round_down(start, root->fs_info->sectorsize); root 3509 fs/btrfs/qgroup.c btrfs_qgroup_free_refroot(root->fs_info, root->root_key.objectid, freed, root 3526 fs/btrfs/qgroup.c &BTRFS_I(inode)->root->fs_info->flags)) root 3544 fs/btrfs/qgroup.c btrfs_qgroup_free_refroot(BTRFS_I(inode)->root->fs_info, root 3545 fs/btrfs/qgroup.c BTRFS_I(inode)->root->root_key.objectid, root 3591 fs/btrfs/qgroup.c static void add_root_meta_rsv(struct btrfs_root *root, int num_bytes, root 3600 fs/btrfs/qgroup.c spin_lock(&root->qgroup_meta_rsv_lock); root 3602 fs/btrfs/qgroup.c root->qgroup_meta_rsv_prealloc += num_bytes; root 3604 fs/btrfs/qgroup.c root->qgroup_meta_rsv_pertrans += num_bytes; root 3605 fs/btrfs/qgroup.c spin_unlock(&root->qgroup_meta_rsv_lock); root 3608 fs/btrfs/qgroup.c static int sub_root_meta_rsv(struct btrfs_root *root, int num_bytes, root 3617 fs/btrfs/qgroup.c spin_lock(&root->qgroup_meta_rsv_lock); root 3619 fs/btrfs/qgroup.c num_bytes = min_t(u64, root->qgroup_meta_rsv_prealloc, root 3621 fs/btrfs/qgroup.c root->qgroup_meta_rsv_prealloc -= num_bytes; root 3623 fs/btrfs/qgroup.c num_bytes = min_t(u64, root->qgroup_meta_rsv_pertrans, root 3625 fs/btrfs/qgroup.c root->qgroup_meta_rsv_pertrans -= num_bytes; root 3627 fs/btrfs/qgroup.c spin_unlock(&root->qgroup_meta_rsv_lock); root 3631 fs/btrfs/qgroup.c int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, root 3634 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = root->fs_info; root 3638 fs/btrfs/qgroup.c !is_fstree(root->root_key.objectid) || num_bytes == 0) root 3642 fs/btrfs/qgroup.c trace_qgroup_meta_reserve(root, (s64)num_bytes, type); root 3643 fs/btrfs/qgroup.c ret = qgroup_reserve(root, num_bytes, enforce, type); root 3654 fs/btrfs/qgroup.c add_root_meta_rsv(root, num_bytes, type); root 3658 fs/btrfs/qgroup.c void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root) root 3660 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = root->fs_info; root 3663 fs/btrfs/qgroup.c !is_fstree(root->root_key.objectid)) root 3667 fs/btrfs/qgroup.c trace_qgroup_meta_free_all_pertrans(root); root 3669 fs/btrfs/qgroup.c btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, (u64)-1, root 3673 fs/btrfs/qgroup.c void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, root 3676 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = root->fs_info; root 3679 fs/btrfs/qgroup.c !is_fstree(root->root_key.objectid)) root 3687 fs/btrfs/qgroup.c num_bytes = sub_root_meta_rsv(root, num_bytes, type); root 3689 fs/btrfs/qgroup.c trace_qgroup_meta_reserve(root, -(s64)num_bytes, type); root 3690 fs/btrfs/qgroup.c btrfs_qgroup_free_refroot(fs_info, root->root_key.objectid, root 3740 fs/btrfs/qgroup.c void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes) root 3742 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = root->fs_info; root 3745 fs/btrfs/qgroup.c !is_fstree(root->root_key.objectid)) root 3748 fs/btrfs/qgroup.c num_bytes = sub_root_meta_rsv(root, num_bytes, root 3750 fs/btrfs/qgroup.c trace_qgroup_meta_convert(root, num_bytes); root 3751 fs/btrfs/qgroup.c qgroup_convert_meta(fs_info, root->root_key.objectid, num_bytes); root 3773 fs/btrfs/qgroup.c btrfs_warn(BTRFS_I(inode)->root->fs_info, root 3777 fs/btrfs/qgroup.c btrfs_qgroup_free_refroot(BTRFS_I(inode)->root->fs_info, root 3778 fs/btrfs/qgroup.c BTRFS_I(inode)->root->root_key.objectid, root 3802 fs/btrfs/qgroup.c void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *root) root 3807 fs/btrfs/qgroup.c swapped_blocks = &root->swapped_blocks; root 3948 fs/btrfs/qgroup.c struct btrfs_root *root, root 3951 fs/btrfs/qgroup.c struct btrfs_fs_info *fs_info = root->fs_info; root 3952 fs/btrfs/qgroup.c struct btrfs_qgroup_swapped_blocks *blocks = &root->swapped_blocks; root 3964 fs/btrfs/qgroup.c if (!is_fstree(root->root_key.objectid) || !root->reloc_root) root 4033 fs/btrfs/qgroup.c struct rb_root *root; root 4035 fs/btrfs/qgroup.c root = &trans->delayed_refs.dirty_extent_root; root 4036 fs/btrfs/qgroup.c rbtree_postorder_for_each_entry_safe(entry, next, root, node) { root 353 fs/btrfs/qgroup.h int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, root 356 fs/btrfs/qgroup.h static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, root 359 fs/btrfs/qgroup.h return __btrfs_qgroup_reserve_meta(root, num_bytes, root 362 fs/btrfs/qgroup.h static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, root 365 fs/btrfs/qgroup.h return __btrfs_qgroup_reserve_meta(root, num_bytes, root 369 fs/btrfs/qgroup.h void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, root 373 fs/btrfs/qgroup.h static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, root 376 fs/btrfs/qgroup.h __btrfs_qgroup_free_meta(root, num_bytes, root 381 fs/btrfs/qgroup.h static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, root 384 fs/btrfs/qgroup.h __btrfs_qgroup_free_meta(root, num_bytes, root 392 fs/btrfs/qgroup.h void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root); root 400 fs/btrfs/qgroup.h void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes); root 408 fs/btrfs/qgroup.h void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *root); root 416 fs/btrfs/qgroup.h struct btrfs_root *root, struct extent_buffer *eb); root 928 fs/btrfs/reada.c struct reada_control *btrfs_reada_add(struct btrfs_root *root, root 946 fs/btrfs/reada.c rc->fs_info = root->fs_info; root 954 fs/btrfs/reada.c node = btrfs_root_node(root); root 965 fs/btrfs/reada.c reada_start_machine(root->fs_info); root 50 fs/btrfs/ref-verify.c u64 root; root 75 fs/btrfs/ref-verify.c static struct block_entry *insert_block_entry(struct rb_root *root, root 78 fs/btrfs/ref-verify.c struct rb_node **p = &root->rb_node; root 94 fs/btrfs/ref-verify.c rb_insert_color(&be->node, root); root 98 fs/btrfs/ref-verify.c static struct block_entry *lookup_block_entry(struct rb_root *root, u64 bytenr) root 103 fs/btrfs/ref-verify.c n = root->rb_node; root 116 fs/btrfs/ref-verify.c static struct root_entry *insert_root_entry(struct rb_root *root, root 119 fs/btrfs/ref-verify.c struct rb_node **p = &root->rb_node; root 135 fs/btrfs/ref-verify.c rb_insert_color(&re->node, root); root 161 fs/btrfs/ref-verify.c static struct ref_entry *insert_ref_entry(struct rb_root *root, root 164 fs/btrfs/ref-verify.c struct rb_node **p = &root->rb_node; root 182 fs/btrfs/ref-verify.c rb_insert_color(&ref->node, root); root 187 fs/btrfs/ref-verify.c static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid) root 192 fs/btrfs/ref-verify.c n = root->rb_node; root 495 fs/btrfs/ref-verify.c static int process_leaf(struct btrfs_root *root, root 498 fs/btrfs/ref-verify.c struct btrfs_fs_info *fs_info = root->fs_info; root 549 fs/btrfs/ref-verify.c static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path, root 552 fs/btrfs/ref-verify.c struct btrfs_fs_info *fs_info = root->fs_info; root 581 fs/btrfs/ref-verify.c ret = process_leaf(root, path, bytenr, num_bytes); root 621 fs/btrfs/ref-verify.c ra->action, ra->root, ra->ref.root_objectid, ra->ref.parent, root 690 fs/btrfs/ref-verify.c ref_root = generic_ref->tree_ref.root; root 732 fs/btrfs/ref-verify.c ra->root = generic_ref->real_root; root 51 fs/btrfs/relocation.c struct btrfs_root *root; root 282 fs/btrfs/relocation.c static struct rb_node *tree_insert(struct rb_root *root, u64 bytenr, root 285 fs/btrfs/relocation.c struct rb_node **p = &root->rb_node; root 302 fs/btrfs/relocation.c rb_insert_color(node, root); root 306 fs/btrfs/relocation.c static struct rb_node *tree_search(struct rb_root *root, u64 bytenr) root 308 fs/btrfs/relocation.c struct rb_node *n = root->rb_node; root 330 fs/btrfs/relocation.c if (bnode->root) root 331 fs/btrfs/relocation.c fs_info = bnode->root->fs_info; root 520 fs/btrfs/relocation.c static bool reloc_root_is_dead(struct btrfs_root *root) root 528 fs/btrfs/relocation.c if (test_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->state)) root 540 fs/btrfs/relocation.c static bool have_reloc_root(struct btrfs_root *root) root 542 fs/btrfs/relocation.c if (reloc_root_is_dead(root)) root 544 fs/btrfs/relocation.c if (!root->reloc_root) root 549 fs/btrfs/relocation.c static int should_ignore_root(struct btrfs_root *root) root 553 fs/btrfs/relocation.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 557 fs/btrfs/relocation.c if (reloc_root_is_dead(root)) root 560 fs/btrfs/relocation.c reloc_root = root->reloc_root; root 565 fs/btrfs/relocation.c root->fs_info->running_transaction->transid) root 583 fs/btrfs/relocation.c struct btrfs_root *root = NULL; root 589 fs/btrfs/relocation.c root = (struct btrfs_root *)node->data; root 592 fs/btrfs/relocation.c return root; root 690 fs/btrfs/relocation.c struct btrfs_root *root; root 837 fs/btrfs/relocation.c root = find_reloc_root(rc, cur->bytenr); root 838 fs/btrfs/relocation.c ASSERT(root); root 839 fs/btrfs/relocation.c cur->root = root; root 889 fs/btrfs/relocation.c root = read_fs_root(rc->extent_root->fs_info, key.offset); root 890 fs/btrfs/relocation.c if (IS_ERR(root)) { root 891 fs/btrfs/relocation.c err = PTR_ERR(root); root 895 fs/btrfs/relocation.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 898 fs/btrfs/relocation.c if (btrfs_root_level(&root->root_item) == cur->level) { root 900 fs/btrfs/relocation.c ASSERT(btrfs_root_bytenr(&root->root_item) == root 902 fs/btrfs/relocation.c if (should_ignore_root(root)) root 905 fs/btrfs/relocation.c cur->root = root; root 915 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, root, node_key, path2, 0, 0); root 927 fs/btrfs/relocation.c btrfs_err(root->fs_info, root 930 fs/btrfs/relocation.c root->root_key.objectid, root 942 fs/btrfs/relocation.c ASSERT(btrfs_root_bytenr(&root->root_item) == root 944 fs/btrfs/relocation.c if (should_ignore_root(root)) root 947 fs/btrfs/relocation.c lower->root = root; root 970 fs/btrfs/relocation.c &root->state)) root 977 fs/btrfs/relocation.c if (btrfs_block_can_be_shared(root, eb)) root 1247 fs/btrfs/relocation.c new_node->root = dest; root 1290 fs/btrfs/relocation.c static int __must_check __add_reloc_root(struct btrfs_root *root) root 1292 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1301 fs/btrfs/relocation.c node->bytenr = root->commit_root->start; root 1302 fs/btrfs/relocation.c node->data = root; root 1314 fs/btrfs/relocation.c list_add_tail(&root->root_list, &rc->reloc_roots); root 1322 fs/btrfs/relocation.c static void __del_reloc_root(struct btrfs_root *root) root 1324 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1329 fs/btrfs/relocation.c if (rc && root->node) { root 1332 fs/btrfs/relocation.c root->commit_root->start); root 1341 fs/btrfs/relocation.c BUG_ON((struct btrfs_root *)node->data != root); root 1345 fs/btrfs/relocation.c list_del_init(&root->root_list); root 1354 fs/btrfs/relocation.c static int __update_reloc_root(struct btrfs_root *root) root 1356 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1363 fs/btrfs/relocation.c root->commit_root->start); root 1372 fs/btrfs/relocation.c BUG_ON((struct btrfs_root *)node->data != root); root 1375 fs/btrfs/relocation.c node->bytenr = root->node->start; root 1385 fs/btrfs/relocation.c struct btrfs_root *root, u64 objectid) root 1387 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1401 fs/btrfs/relocation.c if (root->root_key.objectid == objectid) { root 1405 fs/btrfs/relocation.c ret = btrfs_copy_root(trans, root, root->commit_root, &eb, root 1416 fs/btrfs/relocation.c commit_root_gen = btrfs_header_generation(root->commit_root); root 1417 fs/btrfs/relocation.c btrfs_set_root_last_snapshot(&root->root_item, commit_root_gen); root 1426 fs/btrfs/relocation.c ret = btrfs_copy_root(trans, root, root->node, &eb, root 1431 fs/btrfs/relocation.c memcpy(root_item, &root->root_item, sizeof(*root_item)); root 1436 fs/btrfs/relocation.c if (root->root_key.objectid == objectid) { root 1462 fs/btrfs/relocation.c struct btrfs_root *root) root 1464 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1475 fs/btrfs/relocation.c if (reloc_root_is_dead(root)) root 1478 fs/btrfs/relocation.c if (root->reloc_root) { root 1479 fs/btrfs/relocation.c reloc_root = root->reloc_root; root 1485 fs/btrfs/relocation.c root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) root 1493 fs/btrfs/relocation.c reloc_root = create_reloc_root(trans, root, root->root_key.objectid); root 1499 fs/btrfs/relocation.c root->reloc_root = reloc_root; root 1507 fs/btrfs/relocation.c struct btrfs_root *root) root 1509 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1514 fs/btrfs/relocation.c if (!have_reloc_root(root)) root 1517 fs/btrfs/relocation.c reloc_root = root->reloc_root; root 1523 fs/btrfs/relocation.c set_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->state); root 1551 fs/btrfs/relocation.c static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) root 1558 fs/btrfs/relocation.c spin_lock(&root->inode_lock); root 1560 fs/btrfs/relocation.c node = root->inode_tree.rb_node; root 1587 fs/btrfs/relocation.c spin_unlock(&root->inode_lock); root 1592 fs/btrfs/relocation.c if (cond_resched_lock(&root->inode_lock)) root 1597 fs/btrfs/relocation.c spin_unlock(&root->inode_lock); root 1616 fs/btrfs/relocation.c struct btrfs_root *root = BTRFS_I(reloc_inode)->root; root 1627 fs/btrfs/relocation.c ret = btrfs_lookup_file_extent(NULL, root, path, root 1664 fs/btrfs/relocation.c struct btrfs_root *root, root 1667 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 1686 fs/btrfs/relocation.c if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) root 1714 fs/btrfs/relocation.c if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { root 1716 fs/btrfs/relocation.c inode = find_next_inode(root, key.objectid); root 1720 fs/btrfs/relocation.c inode = find_next_inode(root, key.objectid); root 1757 fs/btrfs/relocation.c ref.real_root = root->root_key.objectid; root 1768 fs/btrfs/relocation.c ref.real_root = root->root_key.objectid; root 2015 fs/btrfs/relocation.c int walk_up_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, root 2023 fs/btrfs/relocation.c last_snapshot = btrfs_root_last_snapshot(&root->root_item); root 2052 fs/btrfs/relocation.c int walk_down_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, root 2055 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 2063 fs/btrfs/relocation.c last_snapshot = btrfs_root_last_snapshot(&root->root_item); root 2108 fs/btrfs/relocation.c static int invalidate_extent_cache(struct btrfs_root *root, root 2112 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 2126 fs/btrfs/relocation.c inode = find_next_inode(root, objectid); root 2200 fs/btrfs/relocation.c struct btrfs_root *root) root 2202 fs/btrfs/relocation.c struct btrfs_root *reloc_root = root->reloc_root; root 2206 fs/btrfs/relocation.c ASSERT(root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID); root 2214 fs/btrfs/relocation.c btrfs_update_reloc_root(trans, root); root 2216 fs/btrfs/relocation.c if (list_empty(&root->reloc_dirty_list)) { root 2217 fs/btrfs/relocation.c btrfs_grab_fs_root(root); root 2218 fs/btrfs/relocation.c list_add_tail(&root->reloc_dirty_list, &rc->dirty_subvol_roots); root 2224 fs/btrfs/relocation.c struct btrfs_root *root; root 2229 fs/btrfs/relocation.c list_for_each_entry_safe(root, next, &rc->dirty_subvol_roots, root 2231 fs/btrfs/relocation.c if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) { root 2233 fs/btrfs/relocation.c struct btrfs_root *reloc_root = root->reloc_root; root 2235 fs/btrfs/relocation.c list_del_init(&root->reloc_dirty_list); root 2236 fs/btrfs/relocation.c root->reloc_root = NULL; root 2248 fs/btrfs/relocation.c clear_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->state); root 2249 fs/btrfs/relocation.c btrfs_put_fs_root(root); root 2252 fs/btrfs/relocation.c ret2 = btrfs_drop_snapshot(root, NULL, 0, 1); root 2265 fs/btrfs/relocation.c struct btrfs_root *root) root 2287 fs/btrfs/relocation.c reloc_root = root->reloc_root; root 2319 fs/btrfs/relocation.c ret = btrfs_block_rsv_refill(root, rc->block_rsv, min_reserved, root 2325 fs/btrfs/relocation.c trans = btrfs_start_transaction(root, 0); root 2348 fs/btrfs/relocation.c ret = replace_path(trans, rc, root, reloc_root, path, root 2382 fs/btrfs/relocation.c invalidate_extent_cache(root, &key, &next_key); root 2389 fs/btrfs/relocation.c leaf = btrfs_lock_root_node(root); root 2390 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, root, leaf, NULL, 0, &leaf); root 2399 fs/btrfs/relocation.c insert_dirty_subvol(trans, rc, root); root 2407 fs/btrfs/relocation.c invalidate_extent_cache(root, &key, &next_key); root 2415 fs/btrfs/relocation.c struct btrfs_root *root = rc->extent_root; root 2416 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 2431 fs/btrfs/relocation.c ret = btrfs_block_rsv_add(root, rc->block_rsv, num_bytes, root 2461 fs/btrfs/relocation.c root = read_fs_root(fs_info, reloc_root->root_key.offset); root 2462 fs/btrfs/relocation.c BUG_ON(IS_ERR(root)); root 2463 fs/btrfs/relocation.c BUG_ON(root->reloc_root != reloc_root); root 2471 fs/btrfs/relocation.c btrfs_update_reloc_root(trans, root); root 2505 fs/btrfs/relocation.c struct btrfs_root *root; root 2511 fs/btrfs/relocation.c root = rc->extent_root; root 2529 fs/btrfs/relocation.c root = read_fs_root(fs_info, root 2531 fs/btrfs/relocation.c BUG_ON(IS_ERR(root)); root 2532 fs/btrfs/relocation.c BUG_ON(root->reloc_root != reloc_root); root 2534 fs/btrfs/relocation.c ret = merge_reloc_root(rc, root); root 2599 fs/btrfs/relocation.c struct btrfs_root *root; root 2604 fs/btrfs/relocation.c root = read_fs_root(fs_info, reloc_root->root_key.offset); root 2605 fs/btrfs/relocation.c BUG_ON(IS_ERR(root)); root 2606 fs/btrfs/relocation.c BUG_ON(root->reloc_root != reloc_root); root 2608 fs/btrfs/relocation.c return btrfs_record_root_in_trans(trans, root); root 2618 fs/btrfs/relocation.c struct btrfs_root *root; root 2625 fs/btrfs/relocation.c root = next->root; root 2626 fs/btrfs/relocation.c BUG_ON(!root); root 2627 fs/btrfs/relocation.c BUG_ON(!test_bit(BTRFS_ROOT_REF_COWS, &root->state)); root 2629 fs/btrfs/relocation.c if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { root 2630 fs/btrfs/relocation.c record_reloc_root_in_trans(trans, root); root 2634 fs/btrfs/relocation.c btrfs_record_root_in_trans(trans, root); root 2635 fs/btrfs/relocation.c root = root->reloc_root; root 2637 fs/btrfs/relocation.c if (next->new_bytenr != root->node->start) { root 2640 fs/btrfs/relocation.c next->new_bytenr = root->node->start; root 2641 fs/btrfs/relocation.c next->root = root; root 2649 fs/btrfs/relocation.c root = NULL; root 2654 fs/btrfs/relocation.c if (!root) root 2665 fs/btrfs/relocation.c return root; root 2678 fs/btrfs/relocation.c struct btrfs_root *root; root 2687 fs/btrfs/relocation.c root = next->root; root 2688 fs/btrfs/relocation.c BUG_ON(!root); root 2691 fs/btrfs/relocation.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 2692 fs/btrfs/relocation.c return root; root 2694 fs/btrfs/relocation.c if (root->root_key.objectid != BTRFS_TREE_RELOC_OBJECTID) root 2695 fs/btrfs/relocation.c fs_root = root; root 2748 fs/btrfs/relocation.c struct btrfs_root *root = rc->extent_root; root 2749 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 2764 fs/btrfs/relocation.c ret = btrfs_block_rsv_refill(root, rc->block_rsv, num_bytes, root 2802 fs/btrfs/relocation.c struct btrfs_root *root; root 2822 fs/btrfs/relocation.c root = select_reloc_root(trans, rc, upper, edges); root 2823 fs/btrfs/relocation.c BUG_ON(!root); root 2842 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); root 2878 fs/btrfs/relocation.c btrfs_err(root->fs_info, root 2890 fs/btrfs/relocation.c blocksize = root->fs_info->nodesize; root 2907 fs/btrfs/relocation.c ret = btrfs_cow_block(trans, root, eb, upper->eb, root 2926 fs/btrfs/relocation.c ref.real_root = root->root_key.objectid; root 2932 fs/btrfs/relocation.c ret = btrfs_drop_subtree(trans, root, eb, upper->eb); root 3087 fs/btrfs/relocation.c struct btrfs_root *root; root 3094 fs/btrfs/relocation.c root = select_one_root(node); root 3095 fs/btrfs/relocation.c if (root == ERR_PTR(-ENOENT)) { root 3100 fs/btrfs/relocation.c if (!root || test_bit(BTRFS_ROOT_REF_COWS, &root->state)) { root 3106 fs/btrfs/relocation.c if (root) { root 3107 fs/btrfs/relocation.c if (test_bit(BTRFS_ROOT_REF_COWS, &root->state)) { root 3110 fs/btrfs/relocation.c btrfs_record_root_in_trans(trans, root); root 3111 fs/btrfs/relocation.c root = root->reloc_root; root 3112 fs/btrfs/relocation.c node->new_bytenr = root->node->start; root 3113 fs/btrfs/relocation.c node->root = root; root 3117 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); root 3608 fs/btrfs/relocation.c struct btrfs_root *root = fs_info->tree_root; root 3619 fs/btrfs/relocation.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); root 3629 fs/btrfs/relocation.c trans = btrfs_join_transaction(root); root 3657 fs/btrfs/relocation.c struct btrfs_root *root; root 3693 fs/btrfs/relocation.c root = read_fs_root(fs_info, ref_root); root 3694 fs/btrfs/relocation.c if (IS_ERR(root)) { root 3695 fs/btrfs/relocation.c err = PTR_ERR(root); root 3708 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3734 fs/btrfs/relocation.c ret = btrfs_next_leaf(root, path); root 4237 fs/btrfs/relocation.c struct btrfs_root *root, u64 objectid) root 4248 fs/btrfs/relocation.c ret = btrfs_insert_empty_inode(trans, root, path, objectid); root 4276 fs/btrfs/relocation.c struct btrfs_root *root; root 4281 fs/btrfs/relocation.c root = read_fs_root(fs_info, BTRFS_DATA_RELOC_TREE_OBJECTID); root 4282 fs/btrfs/relocation.c if (IS_ERR(root)) root 4283 fs/btrfs/relocation.c return ERR_CAST(root); root 4285 fs/btrfs/relocation.c trans = btrfs_start_transaction(root, 6); root 4289 fs/btrfs/relocation.c err = btrfs_find_free_objectid(root, &objectid); root 4293 fs/btrfs/relocation.c err = __insert_orphan_inode(trans, root, objectid); root 4299 fs/btrfs/relocation.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); root 4468 fs/btrfs/relocation.c static noinline_for_stack int mark_garbage_root(struct btrfs_root *root) root 4470 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 4478 fs/btrfs/relocation.c memset(&root->root_item.drop_progress, 0, root 4479 fs/btrfs/relocation.c sizeof(root->root_item.drop_progress)); root 4480 fs/btrfs/relocation.c root->root_item.drop_level = 0; root 4481 fs/btrfs/relocation.c btrfs_set_root_refs(&root->root_item, 0); root 4483 fs/btrfs/relocation.c &root->root_key, &root->root_item); root 4497 fs/btrfs/relocation.c int btrfs_recover_relocation(struct btrfs_root *root) root 4499 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 4540 fs/btrfs/relocation.c reloc_root = btrfs_read_fs_root(root, &key); root 4707 fs/btrfs/relocation.c struct btrfs_root *root, struct extent_buffer *buf, root 4710 fs/btrfs/relocation.c struct btrfs_fs_info *fs_info = root->fs_info; root 4722 fs/btrfs/relocation.c root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID); root 4726 fs/btrfs/relocation.c btrfs_root_last_snapshot(&root->root_item)) root 4729 fs/btrfs/relocation.c if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID && root 4756 fs/btrfs/relocation.c ret = replace_file_extents(trans, rc, root, cow); root 4767 fs/btrfs/relocation.c struct btrfs_root *root = pending->root; root 4768 fs/btrfs/relocation.c struct reloc_control *rc = root->fs_info->reloc_ctl; root 4770 fs/btrfs/relocation.c if (!rc || !have_reloc_root(root)) root 4776 fs/btrfs/relocation.c root = root->reloc_root; root 4777 fs/btrfs/relocation.c BUG_ON(btrfs_root_refs(&root->root_item) == 0); root 4798 fs/btrfs/relocation.c struct btrfs_root *root = pending->root; root 4801 fs/btrfs/relocation.c struct reloc_control *rc = root->fs_info->reloc_ctl; root 4804 fs/btrfs/relocation.c if (!rc || !have_reloc_root(root)) root 4807 fs/btrfs/relocation.c rc = root->fs_info->reloc_ctl; root 4819 fs/btrfs/relocation.c reloc_root = create_reloc_root(trans, root->reloc_root, root 4829 fs/btrfs/relocation.c ret = clone_backref_node(trans, rc, root, reloc_root); root 66 fs/btrfs/root-tree.c int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, root 75 fs/btrfs/root-tree.c ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); root 121 fs/btrfs/root-tree.c *root, struct btrfs_key *key, struct btrfs_root_item root 124 fs/btrfs/root-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 136 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); root 144 fs/btrfs/root-tree.c root->root_key.objectid); root 162 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, root 169 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, root, path); root 175 fs/btrfs/root-tree.c ret = btrfs_insert_empty_item(trans, root, path, root 199 fs/btrfs/root-tree.c int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 206 fs/btrfs/root-tree.c return btrfs_insert_item(trans, root, key, item, sizeof(*item)); root 216 fs/btrfs/root-tree.c struct btrfs_root *root; root 265 fs/btrfs/root-tree.c root = btrfs_lookup_fs_root(fs_info, root_key.objectid); root 266 fs/btrfs/root-tree.c if (root) { root 268 fs/btrfs/root-tree.c &root->state)); root 269 fs/btrfs/root-tree.c if (btrfs_root_refs(&root->root_item) == 0) { root 270 fs/btrfs/root-tree.c set_bit(BTRFS_ROOT_DEAD_TREE, &root->state); root 271 fs/btrfs/root-tree.c btrfs_add_dead_root(root); root 276 fs/btrfs/root-tree.c root = btrfs_read_fs_root(tree_root, &root_key); root 277 fs/btrfs/root-tree.c err = PTR_ERR_OR_ZERO(root); root 303 fs/btrfs/root-tree.c err = btrfs_init_fs_root(root); root 305 fs/btrfs/root-tree.c btrfs_free_fs_root(root); root 309 fs/btrfs/root-tree.c set_bit(BTRFS_ROOT_ORPHAN_ITEM_INSERTED, &root->state); root 311 fs/btrfs/root-tree.c err = btrfs_insert_fs_root(fs_info, root); root 314 fs/btrfs/root-tree.c btrfs_free_fs_root(root); root 318 fs/btrfs/root-tree.c if (btrfs_root_refs(&root->root_item) == 0) { root 319 fs/btrfs/root-tree.c set_bit(BTRFS_ROOT_DEAD_TREE, &root->state); root 320 fs/btrfs/root-tree.c btrfs_add_dead_root(root); root 332 fs/btrfs/root-tree.c struct btrfs_root *root = trans->fs_info->tree_root; root 339 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, -1, 1); root 345 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, root, path); root 492 fs/btrfs/root-tree.c struct btrfs_root *root) root 494 fs/btrfs/root-tree.c struct btrfs_root_item *item = &root->root_item; root 498 fs/btrfs/root-tree.c spin_lock(&root->root_item_lock); root 502 fs/btrfs/root-tree.c spin_unlock(&root->root_item_lock); root 519 fs/btrfs/root-tree.c int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, root 526 fs/btrfs/root-tree.c struct btrfs_fs_info *fs_info = root->fs_info; root 532 fs/btrfs/root-tree.c ret = btrfs_qgroup_reserve_meta_prealloc(root, root 541 fs/btrfs/root-tree.c ret = btrfs_block_rsv_add(root, rsv, num_bytes, root 548 fs/btrfs/root-tree.c btrfs_qgroup_free_meta_prealloc(root, qgroup_num_bytes); root 330 fs/btrfs/scrub.c p = &locks_root->root.rb_node; root 355 fs/btrfs/scrub.c rb_insert_color(&ret->node, &locks_root->root); root 374 fs/btrfs/scrub.c node = locks_root->root.rb_node; root 514 fs/btrfs/scrub.c rb_erase(&fstripe_lock->node, &locks_root->root); root 636 fs/btrfs/scrub.c static int scrub_print_warning_inode(u64 inum, u64 offset, u64 root, root 653 fs/btrfs/scrub.c root_key.objectid = root; root 710 fs/btrfs/scrub.c root, inum, offset, root 723 fs/btrfs/scrub.c root, inum, offset, ret); root 2826 fs/btrfs/scrub.c struct btrfs_root *root = fs_info->extent_root; root 2878 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2883 fs/btrfs/scrub.c ret = btrfs_previous_extent_item(root, path, 0); root 2888 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, root 2902 fs/btrfs/scrub.c ret = btrfs_next_leaf(root, path); root 3050 fs/btrfs/scrub.c struct btrfs_root *root = fs_info->extent_root; root 3152 fs/btrfs/scrub.c reada1 = btrfs_reada_add(root, &key, &key_end); root 3228 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3233 fs/btrfs/scrub.c ret = btrfs_previous_extent_item(root, path, 0); root 3240 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, root 3254 fs/btrfs/scrub.c ret = btrfs_next_leaf(root, path); root 3475 fs/btrfs/scrub.c struct btrfs_root *root = fs_info->dev_root; root 3500 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3506 fs/btrfs/scrub.c ret = btrfs_next_leaf(root, path); root 3591 fs/btrfs/scrub.c trans = btrfs_join_transaction(root); root 67 fs/btrfs/send.c struct btrfs_root *root; root 824 fs/btrfs/send.c static int __get_inode_info(struct btrfs_root *root, struct btrfs_path *path, root 835 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 860 fs/btrfs/send.c static int get_inode_info(struct btrfs_root *root, root 871 fs/btrfs/send.c ret = __get_inode_info(root, path, ino, size, gen, mode, uid, gid, root 889 fs/btrfs/send.c static int iterate_inode_ref(struct btrfs_root *root, struct btrfs_path *path, root 953 fs/btrfs/send.c start = btrfs_ref_to_path(root, tmp_path, name_len, root 966 fs/btrfs/send.c start = btrfs_ref_to_path(root, tmp_path, root 1009 fs/btrfs/send.c static int iterate_dir_item(struct btrfs_root *root, struct btrfs_path *path, root 1062 fs/btrfs/send.c BTRFS_MAX_XATTR_SIZE(root->fs_info)) { root 1140 fs/btrfs/send.c static int get_inode_path(struct btrfs_root *root, root 1157 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, p, 1, 0); root 1172 fs/btrfs/send.c ret = iterate_inode_ref(root, p, &found_key, 1, root 1208 fs/btrfs/send.c u64 root = (u64)(uintptr_t)key; root 1211 fs/btrfs/send.c if (root < cr->root->root_key.objectid) root 1213 fs/btrfs/send.c if (root > cr->root->root_key.objectid) root 1223 fs/btrfs/send.c if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) root 1225 fs/btrfs/send.c if (cr1->root->root_key.objectid > cr2->root->root_key.objectid) root 1234 fs/btrfs/send.c static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_) root 1240 fs/btrfs/send.c found = bsearch((void *)(uintptr_t)root, bctx->sctx->clone_roots, root 1247 fs/btrfs/send.c if (found->root == bctx->sctx->send_root && root 1257 fs/btrfs/send.c if (found->root == bctx->sctx->send_root) { root 1457 fs/btrfs/send.c else if (sctx->clone_roots[i].root == sctx->send_root) root 1477 fs/btrfs/send.c static int read_symlink(struct btrfs_root *root, root 1497 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 1509 fs/btrfs/send.c btrfs_err(root->fs_info, root 1511 fs/btrfs/send.c ino, root->root_key.objectid); root 1700 fs/btrfs/send.c static int lookup_dir_item_inode(struct btrfs_root *root, root 1714 fs/btrfs/send.c di = btrfs_lookup_dir_item(NULL, root, path, root 1737 fs/btrfs/send.c static int get_first_ref(struct btrfs_root *root, u64 ino, root 1755 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, path, 1, 0); root 1791 fs/btrfs/send.c ret = get_inode_info(root, parent_dir, NULL, dir_gen, NULL, root 1804 fs/btrfs/send.c static int is_first_ref(struct btrfs_root *root, root 1816 fs/btrfs/send.c ret = get_first_ref(root, ino, &tmp_dir, NULL, tmp_name); root 2932 fs/btrfs/send.c struct btrfs_root *root = sctx->parent_root; root 2958 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2966 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); root 3544 fs/btrfs/send.c static int check_ino_in_path(struct btrfs_root *root, root 3562 fs/btrfs/send.c ret = get_first_ref(root, ino, &parent, &parent_gen, fs_path); root 3577 fs/btrfs/send.c static int is_ancestor(struct btrfs_root *root, root 3605 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 3616 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); root 3653 fs/btrfs/send.c ret = get_inode_info(root, parent, NULL, &parent_gen, root 3657 fs/btrfs/send.c ret = check_ino_in_path(root, ino1, ino1_gen, root 4208 fs/btrfs/send.c static int record_ref(struct btrfs_root *root, u64 dir, struct fs_path *name, root 4220 fs/btrfs/send.c ret = get_inode_info(root, dir, NULL, &gen, NULL, NULL, root 4289 fs/btrfs/send.c struct btrfs_root *root; root 4308 fs/btrfs/send.c ret = get_inode_info(ctx->root, dir, NULL, &dir_gen, NULL, root 4320 fs/btrfs/send.c static int find_iref(struct btrfs_root *root, root 4332 fs/btrfs/send.c ctx.root = root; root 4334 fs/btrfs/send.c ret = iterate_inode_ref(root, path, key, 0, __find_iref, &ctx); root 4416 fs/btrfs/send.c struct btrfs_root *root; root 4430 fs/btrfs/send.c root = sctx->send_root; root 4433 fs/btrfs/send.c root = sctx->parent_root; root 4445 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4453 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); root 4468 fs/btrfs/send.c ret = iterate_inode_ref(root, path, &found_key, 0, cb, sctx); root 4637 fs/btrfs/send.c static int find_xattr(struct btrfs_root *root, root 4652 fs/btrfs/send.c ret = iterate_dir_item(root, path, __find_xattr, &ctx); root 4735 fs/btrfs/send.c struct btrfs_root *root; root 4746 fs/btrfs/send.c root = sctx->send_root; root 4751 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4759 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); root 4776 fs/btrfs/send.c ret = iterate_dir_item(root, path, __process_new_xattr, sctx); root 4790 fs/btrfs/send.c struct btrfs_root *root = sctx->send_root; root 4791 fs/btrfs/send.c struct btrfs_fs_info *fs_info = root->fs_info; root 4805 fs/btrfs/send.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); root 4931 fs/btrfs/send.c offset, len, clone_root->root->root_key.objectid, root 4950 fs/btrfs/send.c if (clone_root->root == sctx->send_root) { root 4957 fs/btrfs/send.c ret = get_inode_path(clone_root->root, clone_root->ino, p); root 4971 fs/btrfs/send.c if (!btrfs_is_empty_uuid(clone_root->root->root_item.received_uuid)) root 4973 fs/btrfs/send.c clone_root->root->root_item.received_uuid); root 4976 fs/btrfs/send.c clone_root->root->root_item.uuid); root 4978 fs/btrfs/send.c le64_to_cpu(clone_root->root->root_item.ctransid)); root 5140 fs/btrfs/send.c ret = __get_inode_info(clone_root->root, path, clone_root->ino, root 5171 fs/btrfs/send.c ret = btrfs_search_slot(NULL, clone_root->root, &key, path, 0, 0); root 5191 fs/btrfs/send.c ret = btrfs_next_leaf(clone_root->root, path); root 5579 fs/btrfs/send.c struct btrfs_root *root = sctx->send_root; root 5595 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, path, 0, 1); root 5626 fs/btrfs/send.c struct btrfs_root *root = sctx->parent_root; root 5637 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 5650 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); root 5673 fs/btrfs/send.c root->fs_info->sectorsize); root 5816 fs/btrfs/send.c struct btrfs_root *root; root 5823 fs/btrfs/send.c root = sctx->send_root; root 5831 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 5840 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); root 6972 fs/btrfs/send.c if (sctx->clone_roots[i].root->node != root 6973 fs/btrfs/send.c sctx->clone_roots[i].root->commit_root) root 7003 fs/btrfs/send.c struct btrfs_root *root = sctx->parent_root; root 7007 fs/btrfs/send.c if (root) { root 7008 fs/btrfs/send.c ret = btrfs_start_delalloc_snapshot(root); root 7011 fs/btrfs/send.c btrfs_wait_ordered_extents(root, U64_MAX, 0, U64_MAX); root 7015 fs/btrfs/send.c root = sctx->clone_roots[i].root; root 7016 fs/btrfs/send.c ret = btrfs_start_delalloc_snapshot(root); root 7019 fs/btrfs/send.c btrfs_wait_ordered_extents(root, U64_MAX, 0, U64_MAX); root 7025 fs/btrfs/send.c static void btrfs_root_dec_send_in_progress(struct btrfs_root* root) root 7027 fs/btrfs/send.c spin_lock(&root->root_item_lock); root 7028 fs/btrfs/send.c root->send_in_progress--; root 7033 fs/btrfs/send.c if (root->send_in_progress < 0) root 7034 fs/btrfs/send.c btrfs_err(root->fs_info, root 7036 fs/btrfs/send.c root->send_in_progress, root->root_key.objectid); root 7037 fs/btrfs/send.c spin_unlock(&root->root_item_lock); root 7040 fs/btrfs/send.c static void dedupe_in_progress_warn(const struct btrfs_root *root) root 7042 fs/btrfs/send.c btrfs_warn_rl(root->fs_info, root 7044 fs/btrfs/send.c root->root_key.objectid, root->dedupe_in_progress); root 7050 fs/btrfs/send.c struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; root 7214 fs/btrfs/send.c sctx->clone_roots[i].root = clone_root; root 7261 fs/btrfs/send.c sctx->clone_roots[sctx->clone_roots_cnt++].root = sctx->send_root; root 7348 fs/btrfs/send.c sctx->clone_roots[i].root); root 7352 fs/btrfs/send.c sctx->clone_roots[i].root); root 552 fs/btrfs/space-info.c struct btrfs_root *root = fs_info->extent_root; root 565 fs/btrfs/space-info.c trans = btrfs_join_transaction(root); root 580 fs/btrfs/space-info.c trans = btrfs_join_transaction(root); root 594 fs/btrfs/space-info.c trans = btrfs_join_transaction(root); root 1089 fs/btrfs/space-info.c int btrfs_reserve_metadata_bytes(struct btrfs_root *root, root 1094 fs/btrfs/space-info.c struct btrfs_fs_info *fs_info = root->fs_info; root 1097 fs/btrfs/space-info.c bool system_chunk = (root == fs_info->chunk_root); root 1102 fs/btrfs/space-info.c unlikely(root->orphan_cleanup_state == ORPHAN_CLEANUP_STARTED)) { root 125 fs/btrfs/space-info.h int btrfs_reserve_metadata_bytes(struct btrfs_root *root, root 1011 fs/btrfs/super.c struct btrfs_root *root = fs_info->tree_root; root 1046 fs/btrfs/super.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 1050 fs/btrfs/super.c ret = btrfs_previous_item(root, path, subvol_objectid, root 1146 fs/btrfs/super.c struct btrfs_root *root = fs_info->tree_root; root 1163 fs/btrfs/super.c di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0); root 1247 fs/btrfs/super.c struct btrfs_root *root = fs_info->tree_root; root 1258 fs/btrfs/super.c trans = btrfs_attach_transaction_barrier(root); root 1278 fs/btrfs/super.c trans = btrfs_start_transaction(root, 0); root 1373 fs/btrfs/super.c BTRFS_I(d_inode(dentry))->root->root_key.objectid); root 1408 fs/btrfs/super.c struct dentry *root; root 1416 fs/btrfs/super.c root = ERR_PTR(ret); root 1423 fs/btrfs/super.c root = ERR_CAST(subvol_name); root 1430 fs/btrfs/super.c root = mount_subtree(mnt, subvol_name); root 1434 fs/btrfs/super.c if (!IS_ERR(root)) { root 1435 fs/btrfs/super.c struct super_block *s = root->d_sb; root 1437 fs/btrfs/super.c struct inode *root_inode = d_inode(root); root 1438 fs/btrfs/super.c u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; root 1458 fs/btrfs/super.c dput(root); root 1459 fs/btrfs/super.c root = ERR_PTR(ret); root 1467 fs/btrfs/super.c return root; root 1608 fs/btrfs/super.c struct dentry *root; root 1630 fs/btrfs/super.c root = ERR_CAST(mnt_root); root 1639 fs/btrfs/super.c root = ERR_PTR(error); root 1647 fs/btrfs/super.c root = ERR_CAST(mnt_root); root 1653 fs/btrfs/super.c root = mount_subvol(subvol_name, subvol_objectid, mnt_root); root 1656 fs/btrfs/super.c return root; root 1723 fs/btrfs/super.c struct btrfs_root *root = fs_info->tree_root; root 1819 fs/btrfs/super.c ret = btrfs_recover_relocation(root); root 2129 fs/btrfs/super.c BTRFS_I(d_inode(dentry))->root->root_key.objectid >> 32; root 2131 fs/btrfs/super.c BTRFS_I(d_inode(dentry))->root->root_key.objectid; root 2227 fs/btrfs/super.c struct btrfs_root *root = fs_info->tree_root; root 2236 fs/btrfs/super.c trans = btrfs_attach_transaction_barrier(root); root 2254 fs/btrfs/super.c static int btrfs_show_devname(struct seq_file *m, struct dentry *root) root 2256 fs/btrfs/super.c struct btrfs_fs_info *fs_info = btrfs_sb(root->d_sb); root 190 fs/btrfs/tests/btrfs-tests.c void btrfs_free_dummy_root(struct btrfs_root *root) root 192 fs/btrfs/tests/btrfs-tests.c if (!root) root 195 fs/btrfs/tests/btrfs-tests.c if (WARN_ON(test_bit(BTRFS_ROOT_IN_RADIX, &root->state))) root 197 fs/btrfs/tests/btrfs-tests.c if (root->node) { root 199 fs/btrfs/tests/btrfs-tests.c free_extent_buffer(root->node); root 201 fs/btrfs/tests/btrfs-tests.c kfree(root); root 43 fs/btrfs/tests/btrfs-tests.h void btrfs_free_dummy_root(struct btrfs_root *root); root 16 fs/btrfs/tests/extent-buffer-tests.c struct btrfs_root *root = NULL; root 37 fs/btrfs/tests/extent-buffer-tests.c root = btrfs_alloc_dummy_root(fs_info); root 38 fs/btrfs/tests/extent-buffer-tests.c if (IS_ERR(root)) { root 40 fs/btrfs/tests/extent-buffer-tests.c ret = PTR_ERR(root); root 63 fs/btrfs/tests/extent-buffer-tests.c setup_items_for_insert(root, path, &key, &value_len, value_len, root 76 fs/btrfs/tests/extent-buffer-tests.c ret = btrfs_split_item(NULL, root, path, &key, 17); root 137 fs/btrfs/tests/extent-buffer-tests.c ret = btrfs_split_item(NULL, root, path, &key, 4); root 216 fs/btrfs/tests/extent-buffer-tests.c btrfs_free_dummy_root(root); root 833 fs/btrfs/tests/free-space-tests.c struct btrfs_root *root = NULL; root 856 fs/btrfs/tests/free-space-tests.c root = btrfs_alloc_dummy_root(fs_info); root 857 fs/btrfs/tests/free-space-tests.c if (IS_ERR(root)) { root 859 fs/btrfs/tests/free-space-tests.c ret = PTR_ERR(root); root 863 fs/btrfs/tests/free-space-tests.c root->fs_info->extent_root = root; root 878 fs/btrfs/tests/free-space-tests.c btrfs_free_dummy_root(root); root 440 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_root *root = NULL; root 453 fs/btrfs/tests/free-space-tree-tests.c root = btrfs_alloc_dummy_root(fs_info); root 454 fs/btrfs/tests/free-space-tree-tests.c if (IS_ERR(root)) { root 456 fs/btrfs/tests/free-space-tree-tests.c ret = PTR_ERR(root); root 460 fs/btrfs/tests/free-space-tree-tests.c btrfs_set_super_compat_ro_flags(root->fs_info->super_copy, root 462 fs/btrfs/tests/free-space-tree-tests.c root->fs_info->free_space_root = root; root 463 fs/btrfs/tests/free-space-tree-tests.c root->fs_info->tree_root = root; root 465 fs/btrfs/tests/free-space-tree-tests.c root->node = alloc_test_extent_buffer(root->fs_info, nodesize); root 466 fs/btrfs/tests/free-space-tree-tests.c if (IS_ERR(root->node)) { root 468 fs/btrfs/tests/free-space-tree-tests.c ret = PTR_ERR(root->node); root 471 fs/btrfs/tests/free-space-tree-tests.c btrfs_set_header_level(root->node, 0); root 472 fs/btrfs/tests/free-space-tree-tests.c btrfs_set_header_nritems(root->node, 0); root 473 fs/btrfs/tests/free-space-tree-tests.c root->alloc_bytenr += 2 * nodesize; root 484 fs/btrfs/tests/free-space-tree-tests.c cache->fs_info = root->fs_info; root 486 fs/btrfs/tests/free-space-tree-tests.c btrfs_init_dummy_trans(&trans, root->fs_info); root 509 fs/btrfs/tests/free-space-tree-tests.c ret = test_func(&trans, root->fs_info, cache, path, alignment); root 519 fs/btrfs/tests/free-space-tree-tests.c if (btrfs_header_nritems(root->node) != 0) { root 529 fs/btrfs/tests/free-space-tree-tests.c btrfs_free_dummy_root(root); root 15 fs/btrfs/tests/inode-tests.c static void insert_extent(struct btrfs_root *root, u64 start, u64 len, root 21 fs/btrfs/tests/inode-tests.c struct extent_buffer *leaf = root->node; root 36 fs/btrfs/tests/inode-tests.c setup_items_for_insert(root, &path, &key, &value_len, value_len, root 51 fs/btrfs/tests/inode-tests.c static void insert_inode_item_key(struct btrfs_root *root) root 54 fs/btrfs/tests/inode-tests.c struct extent_buffer *leaf = root->node; root 67 fs/btrfs/tests/inode-tests.c setup_items_for_insert(root, &path, &key, &value_len, value_len, root 89 fs/btrfs/tests/inode-tests.c static void setup_file_extents(struct btrfs_root *root, u32 sectorsize) root 96 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 5, 5, 0, 0, 0, BTRFS_FILE_EXTENT_REG, 0, root 107 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 1, 1, 0, 0, 0, BTRFS_FILE_EXTENT_INLINE, 0, root 113 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 4, 4, 0, 0, 0, BTRFS_FILE_EXTENT_REG, 0, root 119 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize - 1, sectorsize - 1, 0, root 129 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, 4 * sectorsize, 0, disk_bytenr, root 133 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, sectorsize, 0, 0, 0, root 137 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 2 * sectorsize, 4 * sectorsize, root 145 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, sectorsize, 0, disk_bytenr, root 161 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, 4 * sectorsize, 0, disk_bytenr, root 165 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, 4 * sectorsize, sectorsize, root 170 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 2 * sectorsize, 4 * sectorsize, root 178 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 2 * sectorsize, 2 * sectorsize, 0, root 187 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, 4 * sectorsize, 0, disk_bytenr, root 192 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, sectorsize, 0, root 197 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, 2 * sectorsize, 4 * sectorsize, root 205 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, sectorsize, 0, disk_bytenr, root 210 fs/btrfs/tests/inode-tests.c insert_extent(root, offset, sectorsize, sectorsize, 0, disk_bytenr, root 222 fs/btrfs/tests/inode-tests.c struct btrfs_root *root = NULL; root 248 fs/btrfs/tests/inode-tests.c root = btrfs_alloc_dummy_root(fs_info); root 249 fs/btrfs/tests/inode-tests.c if (IS_ERR(root)) { root 254 fs/btrfs/tests/inode-tests.c root->node = alloc_dummy_extent_buffer(fs_info, nodesize); root 255 fs/btrfs/tests/inode-tests.c if (!root->node) { root 260 fs/btrfs/tests/inode-tests.c btrfs_set_header_nritems(root->node, 0); root 261 fs/btrfs/tests/inode-tests.c btrfs_set_header_level(root->node, 0); root 265 fs/btrfs/tests/inode-tests.c BTRFS_I(inode)->root = root; root 284 fs/btrfs/tests/inode-tests.c setup_file_extents(root, sectorsize); root 820 fs/btrfs/tests/inode-tests.c btrfs_free_dummy_root(root); root 829 fs/btrfs/tests/inode-tests.c struct btrfs_root *root = NULL; root 851 fs/btrfs/tests/inode-tests.c root = btrfs_alloc_dummy_root(fs_info); root 852 fs/btrfs/tests/inode-tests.c if (IS_ERR(root)) { root 857 fs/btrfs/tests/inode-tests.c root->node = alloc_dummy_extent_buffer(fs_info, nodesize); root 858 fs/btrfs/tests/inode-tests.c if (!root->node) { root 863 fs/btrfs/tests/inode-tests.c btrfs_set_header_nritems(root->node, 0); root 864 fs/btrfs/tests/inode-tests.c btrfs_set_header_level(root->node, 0); root 865 fs/btrfs/tests/inode-tests.c BTRFS_I(inode)->root = root; root 872 fs/btrfs/tests/inode-tests.c insert_inode_item_key(root); root 873 fs/btrfs/tests/inode-tests.c insert_extent(root, sectorsize, sectorsize, sectorsize, 0, sectorsize, root 923 fs/btrfs/tests/inode-tests.c btrfs_free_dummy_root(root); root 932 fs/btrfs/tests/inode-tests.c struct btrfs_root *root = NULL; root 949 fs/btrfs/tests/inode-tests.c root = btrfs_alloc_dummy_root(fs_info); root 950 fs/btrfs/tests/inode-tests.c if (IS_ERR(root)) { root 955 fs/btrfs/tests/inode-tests.c BTRFS_I(inode)->root = root; root 1107 fs/btrfs/tests/inode-tests.c btrfs_free_dummy_root(root); root 14 fs/btrfs/tests/qgroup-tests.c static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, root 40 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); root 67 fs/btrfs/tests/qgroup-tests.c static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, root 90 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); root 112 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); root 119 fs/btrfs/tests/qgroup-tests.c static int remove_extent_item(struct btrfs_root *root, u64 bytenr, root 140 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); root 146 fs/btrfs/tests/qgroup-tests.c btrfs_del_item(&trans, root, path); root 151 fs/btrfs/tests/qgroup-tests.c static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, root 174 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); root 196 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); root 202 fs/btrfs/tests/qgroup-tests.c btrfs_del_item(&trans, root, path); root 207 fs/btrfs/tests/qgroup-tests.c static int test_no_shared_qgroup(struct btrfs_root *root, root 211 fs/btrfs/tests/qgroup-tests.c struct btrfs_fs_info *fs_info = root->fs_info; root 238 fs/btrfs/tests/qgroup-tests.c ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, root 275 fs/btrfs/tests/qgroup-tests.c ret = remove_extent_item(root, nodesize, nodesize); root 308 fs/btrfs/tests/qgroup-tests.c static int test_multiple_refs(struct btrfs_root *root, root 312 fs/btrfs/tests/qgroup-tests.c struct btrfs_fs_info *fs_info = root->fs_info; root 339 fs/btrfs/tests/qgroup-tests.c ret = insert_normal_tree_ref(root, nodesize, nodesize, 0, root 374 fs/btrfs/tests/qgroup-tests.c ret = add_tree_ref(root, nodesize, nodesize, 0, root 415 fs/btrfs/tests/qgroup-tests.c ret = remove_extent_ref(root, nodesize, nodesize, 0, root 454 fs/btrfs/tests/qgroup-tests.c struct btrfs_root *root; root 464 fs/btrfs/tests/qgroup-tests.c root = btrfs_alloc_dummy_root(fs_info); root 465 fs/btrfs/tests/qgroup-tests.c if (IS_ERR(root)) { root 467 fs/btrfs/tests/qgroup-tests.c ret = PTR_ERR(root); root 472 fs/btrfs/tests/qgroup-tests.c root->fs_info->extent_root = root; root 478 fs/btrfs/tests/qgroup-tests.c root->fs_info->tree_root = root; root 479 fs/btrfs/tests/qgroup-tests.c root->fs_info->quota_root = root; root 486 fs/btrfs/tests/qgroup-tests.c root->node = alloc_test_extent_buffer(root->fs_info, nodesize); root 487 fs/btrfs/tests/qgroup-tests.c if (IS_ERR(root->node)) { root 489 fs/btrfs/tests/qgroup-tests.c ret = PTR_ERR(root->node); root 492 fs/btrfs/tests/qgroup-tests.c btrfs_set_header_level(root->node, 0); root 493 fs/btrfs/tests/qgroup-tests.c btrfs_set_header_nritems(root->node, 0); root 494 fs/btrfs/tests/qgroup-tests.c root->alloc_bytenr += 2 * nodesize; root 504 fs/btrfs/tests/qgroup-tests.c root->fs_info->fs_root = tmp_root; root 505 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_fs_root(root->fs_info, tmp_root); root 519 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_fs_root(root->fs_info, tmp_root); root 526 fs/btrfs/tests/qgroup-tests.c ret = test_no_shared_qgroup(root, sectorsize, nodesize); root 529 fs/btrfs/tests/qgroup-tests.c ret = test_multiple_refs(root, sectorsize, nodesize); root 531 fs/btrfs/tests/qgroup-tests.c btrfs_free_dummy_root(root); root 86 fs/btrfs/transaction.c struct btrfs_root *root, *tmp; root 89 fs/btrfs/transaction.c list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, root 91 fs/btrfs/transaction.c list_del_init(&root->dirty_list); root 92 fs/btrfs/transaction.c free_extent_buffer(root->commit_root); root 93 fs/btrfs/transaction.c root->commit_root = btrfs_root_node(root); root 94 fs/btrfs/transaction.c if (is_fstree(root->root_key.objectid)) root 95 fs/btrfs/transaction.c btrfs_unpin_free_ino(root); root 96 fs/btrfs/transaction.c extent_io_tree_release(&root->dirty_log_pages); root 97 fs/btrfs/transaction.c btrfs_qgroup_clean_swapped_blocks(root); root 103 fs/btrfs/transaction.c root = list_first_entry(&cur_trans->dropped_roots, root 105 fs/btrfs/transaction.c list_del_init(&root->root_list); root 107 fs/btrfs/transaction.c btrfs_free_log(trans, root); root 108 fs/btrfs/transaction.c btrfs_drop_and_free_fs_root(fs_info, root); root 285 fs/btrfs/transaction.c struct btrfs_root *root, root 288 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 290 fs/btrfs/transaction.c if ((test_bit(BTRFS_ROOT_REF_COWS, &root->state) && root 291 fs/btrfs/transaction.c root->last_trans < trans->transid) || force) { root 292 fs/btrfs/transaction.c WARN_ON(root == fs_info->extent_root); root 293 fs/btrfs/transaction.c WARN_ON(!force && root->commit_root != root->node); root 300 fs/btrfs/transaction.c set_bit(BTRFS_ROOT_IN_TRANS_SETUP, &root->state); root 308 fs/btrfs/transaction.c if (root->last_trans == trans->transid && !force) { root 313 fs/btrfs/transaction.c (unsigned long)root->root_key.objectid, root 316 fs/btrfs/transaction.c root->last_trans = trans->transid; root 337 fs/btrfs/transaction.c btrfs_init_reloc_root(trans, root); root 339 fs/btrfs/transaction.c clear_bit(BTRFS_ROOT_IN_TRANS_SETUP, &root->state); root 346 fs/btrfs/transaction.c struct btrfs_root *root) root 348 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 353 fs/btrfs/transaction.c list_add_tail(&root->root_list, &cur_trans->dropped_roots); root 359 fs/btrfs/transaction.c (unsigned long)root->root_key.objectid, root 365 fs/btrfs/transaction.c struct btrfs_root *root) root 367 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 369 fs/btrfs/transaction.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 377 fs/btrfs/transaction.c if (root->last_trans == trans->transid && root 378 fs/btrfs/transaction.c !test_bit(BTRFS_ROOT_IN_TRANS_SETUP, &root->state)) root 382 fs/btrfs/transaction.c record_root_in_trans(trans, root, 0); root 429 fs/btrfs/transaction.c static inline bool need_reserve_reloc_root(struct btrfs_root *root) root 431 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 434 fs/btrfs/transaction.c !test_bit(BTRFS_ROOT_REF_COWS, &root->state) || root 435 fs/btrfs/transaction.c root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || root 436 fs/btrfs/transaction.c root->reloc_root) root 443 fs/btrfs/transaction.c start_transaction(struct btrfs_root *root, unsigned int num_items, root 447 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 476 fs/btrfs/transaction.c if (num_items && root != fs_info->chunk_root) { root 481 fs/btrfs/transaction.c ret = btrfs_qgroup_reserve_meta_pertrans(root, qgroup_reserved, root 502 fs/btrfs/transaction.c if (need_reserve_reloc_root(root)) { root 507 fs/btrfs/transaction.c ret = btrfs_block_rsv_add(root, rsv, num_bytes, flush); root 568 fs/btrfs/transaction.c h->root = root; root 570 fs/btrfs/transaction.c h->fs_info = root->fs_info; root 604 fs/btrfs/transaction.c btrfs_record_root_in_trans(h, root); root 617 fs/btrfs/transaction.c btrfs_qgroup_free_meta_pertrans(root, qgroup_reserved); root 621 fs/btrfs/transaction.c struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, root 624 fs/btrfs/transaction.c return start_transaction(root, num_items, TRANS_START, root 629 fs/btrfs/transaction.c struct btrfs_root *root, root 633 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 644 fs/btrfs/transaction.c trans = start_transaction(root, num_items, TRANS_START, root 649 fs/btrfs/transaction.c trans = btrfs_start_transaction(root, 0); root 669 fs/btrfs/transaction.c struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) root 671 fs/btrfs/transaction.c return start_transaction(root, 0, TRANS_JOIN, BTRFS_RESERVE_NO_FLUSH, root 675 fs/btrfs/transaction.c struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root) root 677 fs/btrfs/transaction.c return start_transaction(root, 0, TRANS_JOIN_NOLOCK, root 685 fs/btrfs/transaction.c struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root) root 687 fs/btrfs/transaction.c return start_transaction(root, 0, TRANS_JOIN_NOSTART, root 704 fs/btrfs/transaction.c struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root) root 706 fs/btrfs/transaction.c return start_transaction(root, 0, TRANS_ATTACH, root 718 fs/btrfs/transaction.c btrfs_attach_transaction_barrier(struct btrfs_root *root) root 722 fs/btrfs/transaction.c trans = start_transaction(root, 0, TRANS_ATTACH, root 725 fs/btrfs/transaction.c btrfs_wait_for_commit(root->fs_info, 0); root 1085 fs/btrfs/transaction.c struct btrfs_root *root) root 1090 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 1093 fs/btrfs/transaction.c old_root_used = btrfs_root_used(&root->root_item); root 1096 fs/btrfs/transaction.c old_root_bytenr = btrfs_root_bytenr(&root->root_item); root 1097 fs/btrfs/transaction.c if (old_root_bytenr == root->node->start && root 1098 fs/btrfs/transaction.c old_root_used == btrfs_root_used(&root->root_item)) root 1101 fs/btrfs/transaction.c btrfs_set_root_node(&root->root_item, root->node); root 1103 fs/btrfs/transaction.c &root->root_key, root 1104 fs/btrfs/transaction.c &root->root_item); root 1108 fs/btrfs/transaction.c old_root_used = btrfs_root_used(&root->root_item); root 1163 fs/btrfs/transaction.c struct btrfs_root *root; root 1166 fs/btrfs/transaction.c root = list_entry(next, struct btrfs_root, dirty_list); root 1167 fs/btrfs/transaction.c clear_bit(BTRFS_ROOT_DIRTY, &root->state); root 1169 fs/btrfs/transaction.c if (root != fs_info->extent_root) root 1170 fs/btrfs/transaction.c list_add_tail(&root->dirty_list, root 1172 fs/btrfs/transaction.c ret = update_cowonly_root(trans, root); root 1207 fs/btrfs/transaction.c void btrfs_add_dead_root(struct btrfs_root *root) root 1209 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 1212 fs/btrfs/transaction.c if (list_empty(&root->root_list)) root 1213 fs/btrfs/transaction.c list_add_tail(&root->root_list, &fs_info->dead_roots); root 1237 fs/btrfs/transaction.c struct btrfs_root *root = gang[i]; root 1239 fs/btrfs/transaction.c (unsigned long)root->root_key.objectid, root 1243 fs/btrfs/transaction.c btrfs_free_log(trans, root); root 1244 fs/btrfs/transaction.c btrfs_update_reloc_root(trans, root); root 1246 fs/btrfs/transaction.c btrfs_save_ino_cache(root, trans); root 1249 fs/btrfs/transaction.c clear_bit(BTRFS_ROOT_FORCE_COW, &root->state); root 1252 fs/btrfs/transaction.c if (root->commit_root != root->node) { root 1253 fs/btrfs/transaction.c list_add_tail(&root->dirty_list, root 1255 fs/btrfs/transaction.c btrfs_set_root_node(&root->root_item, root 1256 fs/btrfs/transaction.c root->node); root 1260 fs/btrfs/transaction.c &root->root_key, root 1261 fs/btrfs/transaction.c &root->root_item); root 1265 fs/btrfs/transaction.c btrfs_qgroup_free_meta_all_pertrans(root); root 1276 fs/btrfs/transaction.c int btrfs_defrag_root(struct btrfs_root *root) root 1278 fs/btrfs/transaction.c struct btrfs_fs_info *info = root->fs_info; root 1282 fs/btrfs/transaction.c if (test_and_set_bit(BTRFS_ROOT_DEFRAG_RUNNING, &root->state)) root 1286 fs/btrfs/transaction.c trans = btrfs_start_transaction(root, 0); root 1290 fs/btrfs/transaction.c ret = btrfs_defrag_leaves(trans, root); root 1305 fs/btrfs/transaction.c clear_bit(BTRFS_ROOT_DEFRAG_RUNNING, &root->state); root 1412 fs/btrfs/transaction.c struct btrfs_root *root = pending->root; root 1448 fs/btrfs/transaction.c pending->error = btrfs_block_rsv_add(root, root 1468 fs/btrfs/transaction.c parent_root = BTRFS_I(parent_inode)->root; root 1506 fs/btrfs/transaction.c record_root_in_trans(trans, root, 0); root 1507 fs/btrfs/transaction.c btrfs_set_root_last_snapshot(&root->root_item, trans->transid); root 1508 fs/btrfs/transaction.c memcpy(new_root_item, &root->root_item, sizeof(*new_root_item)); root 1522 fs/btrfs/transaction.c memcpy(new_root_item->parent_uuid, root->root_item.uuid, root 1536 fs/btrfs/transaction.c old = btrfs_lock_root_node(root); root 1537 fs/btrfs/transaction.c ret = btrfs_cow_block(trans, root, old, NULL, 0, &old); root 1547 fs/btrfs/transaction.c ret = btrfs_copy_root(trans, root, old, &tmp, objectid); root 1556 fs/btrfs/transaction.c set_bit(BTRFS_ROOT_FORCE_COW, &root->state); root 1608 fs/btrfs/transaction.c ret = qgroup_account_snapshot(trans, root, parent_root, root 1701 fs/btrfs/transaction.c super->root = root_item->bytenr; root 1798 fs/btrfs/transaction.c ac->newtrans = btrfs_join_transaction(trans->root); root 1875 fs/btrfs/transaction.c trace_btrfs_transaction_commit(trans->root); root 1928 fs/btrfs/transaction.c ret = btrfs_start_delalloc_snapshot(pending->root); root 1953 fs/btrfs/transaction.c btrfs_wait_ordered_extents(pending->root, root 2328 fs/btrfs/transaction.c trace_btrfs_transaction_commit(trans->root); root 2364 fs/btrfs/transaction.c int btrfs_clean_one_deleted_snapshot(struct btrfs_root *root) root 2367 fs/btrfs/transaction.c struct btrfs_fs_info *fs_info = root->fs_info; root 2374 fs/btrfs/transaction.c root = list_first_entry(&fs_info->dead_roots, root 2376 fs/btrfs/transaction.c list_del_init(&root->root_list); root 2379 fs/btrfs/transaction.c btrfs_debug(fs_info, "cleaner removing %llu", root->root_key.objectid); root 2381 fs/btrfs/transaction.c btrfs_kill_all_delayed_nodes(root); root 2383 fs/btrfs/transaction.c if (btrfs_header_backref_rev(root->node) < root 2385 fs/btrfs/transaction.c ret = btrfs_drop_snapshot(root, NULL, 0, 0); root 2387 fs/btrfs/transaction.c ret = btrfs_drop_snapshot(root, NULL, 1, 0); root 125 fs/btrfs/transaction.h struct btrfs_root *root; root 133 fs/btrfs/transaction.h struct btrfs_root *root; root 151 fs/btrfs/transaction.h BTRFS_I(inode)->last_sub_trans = BTRFS_I(inode)->root->log_transid; root 152 fs/btrfs/transaction.h BTRFS_I(inode)->last_log_commit = BTRFS_I(inode)->root->last_log_commit; root 180 fs/btrfs/transaction.h struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, root 183 fs/btrfs/transaction.h struct btrfs_root *root, root 186 fs/btrfs/transaction.h struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root); root 187 fs/btrfs/transaction.h struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root); root 188 fs/btrfs/transaction.h struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root); root 189 fs/btrfs/transaction.h struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root); root 191 fs/btrfs/transaction.h struct btrfs_root *root); root 194 fs/btrfs/transaction.h void btrfs_add_dead_root(struct btrfs_root *root); root 195 fs/btrfs/transaction.h int btrfs_defrag_root(struct btrfs_root *root); root 196 fs/btrfs/transaction.h int btrfs_clean_one_deleted_snapshot(struct btrfs_root *root); root 218 fs/btrfs/transaction.h struct btrfs_root *root); root 223 fs/btrfs/transaction.h int btrfs_wait_tree_log_extents(struct btrfs_root *root, int mark); root 229 fs/btrfs/transaction.h struct btrfs_root *root); root 20 fs/btrfs/tree-defrag.c struct btrfs_root *root) root 30 fs/btrfs/tree-defrag.c if (root->fs_info->extent_root == root) { root 38 fs/btrfs/tree-defrag.c if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) root 45 fs/btrfs/tree-defrag.c level = btrfs_header_level(root->node); root 50 fs/btrfs/tree-defrag.c if (root->defrag_progress.objectid == 0) { root 54 fs/btrfs/tree-defrag.c root_node = btrfs_lock_root_node(root); root 57 fs/btrfs/tree-defrag.c root->defrag_max.objectid = 0; root 59 fs/btrfs/tree-defrag.c btrfs_node_key_to_cpu(root_node, &root->defrag_max, root 65 fs/btrfs/tree-defrag.c memcpy(&key, &root->defrag_progress, sizeof(key)); root 70 fs/btrfs/tree-defrag.c ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); root 84 fs/btrfs/tree-defrag.c wret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 100 fs/btrfs/tree-defrag.c ret = btrfs_realloc_node(trans, root, root 103 fs/btrfs/tree-defrag.c &root->defrag_progress); root 118 fs/btrfs/tree-defrag.c next_key_ret = btrfs_find_next_key(root, path, &key, 1, root 121 fs/btrfs/tree-defrag.c memcpy(&root->defrag_progress, &key, sizeof(key)); root 127 fs/btrfs/tree-defrag.c if (root->defrag_max.objectid > root->defrag_progress.objectid) root 129 fs/btrfs/tree-defrag.c if (root->defrag_max.type > root->defrag_progress.type) root 131 fs/btrfs/tree-defrag.c if (root->defrag_max.offset > root->defrag_progress.offset) root 137 fs/btrfs/tree-defrag.c memset(&root->defrag_progress, 0, root 138 fs/btrfs/tree-defrag.c sizeof(root->defrag_progress)); root 139 fs/btrfs/tree-defrag.c root->defrag_trans_start = trans->transid; root 95 fs/btrfs/tree-log.c struct btrfs_root *root, struct btrfs_inode *inode, root 101 fs/btrfs/tree-log.c struct btrfs_root *root, root 104 fs/btrfs/tree-log.c struct btrfs_root *root, root 138 fs/btrfs/tree-log.c struct btrfs_root *root, root 141 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 144 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 146 fs/btrfs/tree-log.c if (root->log_root) { root 152 fs/btrfs/tree-log.c if (!root->log_start_pid) { root 153 fs/btrfs/tree-log.c clear_bit(BTRFS_ROOT_MULTI_LOG_TASKS, &root->state); root 154 fs/btrfs/tree-log.c root->log_start_pid = current->pid; root 155 fs/btrfs/tree-log.c } else if (root->log_start_pid != current->pid) { root 156 fs/btrfs/tree-log.c set_bit(BTRFS_ROOT_MULTI_LOG_TASKS, &root->state); root 166 fs/btrfs/tree-log.c ret = btrfs_add_log_tree(trans, root); root 170 fs/btrfs/tree-log.c clear_bit(BTRFS_ROOT_MULTI_LOG_TASKS, &root->state); root 171 fs/btrfs/tree-log.c root->log_start_pid = current->pid; root 174 fs/btrfs/tree-log.c atomic_inc(&root->log_batch); root 175 fs/btrfs/tree-log.c atomic_inc(&root->log_writers); root 177 fs/btrfs/tree-log.c int index = root->log_transid % 2; root 178 fs/btrfs/tree-log.c list_add_tail(&ctx->list, &root->log_ctxs[index]); root 179 fs/btrfs/tree-log.c ctx->log_transid = root->log_transid; root 183 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 192 fs/btrfs/tree-log.c static int join_running_log_trans(struct btrfs_root *root) root 196 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 197 fs/btrfs/tree-log.c if (root->log_root) { root 199 fs/btrfs/tree-log.c atomic_inc(&root->log_writers); root 201 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 210 fs/btrfs/tree-log.c void btrfs_pin_log_trans(struct btrfs_root *root) root 212 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 213 fs/btrfs/tree-log.c atomic_inc(&root->log_writers); root 214 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 221 fs/btrfs/tree-log.c void btrfs_end_log_trans(struct btrfs_root *root) root 223 fs/btrfs/tree-log.c if (atomic_dec_and_test(&root->log_writers)) { root 225 fs/btrfs/tree-log.c cond_wake_up_nomb(&root->log_writer_wait); root 343 fs/btrfs/tree-log.c struct btrfs_root *root, root 357 fs/btrfs/tree-log.c if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) root 364 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); root 458 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, root 553 fs/btrfs/tree-log.c static noinline struct inode *read_one_inode(struct btrfs_root *root, root 562 fs/btrfs/tree-log.c inode = btrfs_iget(root->fs_info->sb, &key, root, NULL); root 581 fs/btrfs/tree-log.c struct btrfs_root *root, root 586 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 620 fs/btrfs/tree-log.c inode = read_one_inode(root, key->objectid); root 631 fs/btrfs/tree-log.c ret = btrfs_lookup_file_extent(trans, root, path, root 663 fs/btrfs/tree-log.c ret = btrfs_drop_extents(trans, root, inode, start, extent_end, 1); root 677 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, key, root 723 fs/btrfs/tree-log.c root->root_key.objectid, root 734 fs/btrfs/tree-log.c root->root_key.objectid, root 751 fs/btrfs/tree-log.c ret = btrfs_lookup_csums_range(root->log_root, root 828 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); root 835 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, inode); root 851 fs/btrfs/tree-log.c struct btrfs_root *root, root 874 fs/btrfs/tree-log.c inode = read_one_inode(root, location.objectid); root 880 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, path, location.objectid); root 884 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, dir, BTRFS_I(inode), name, root 901 fs/btrfs/tree-log.c static noinline int inode_in_dir(struct btrfs_root *root, root 910 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(NULL, root, path, dirid, root 920 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(NULL, root, path, dirid, name, name_len, 0); root 1000 fs/btrfs/tree-log.c struct btrfs_root *root, root 1022 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); root 1061 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, dir, inode, root 1086 fs/btrfs/tree-log.c extref = btrfs_lookup_inode_extref(NULL, root, path, name, namelen, root 1124 fs/btrfs/tree-log.c victim_parent = read_one_inode(root, root 1130 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, root 1155 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(dir), root 1158 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); root 1165 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(dir), root 1168 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); root 1229 fs/btrfs/tree-log.c struct btrfs_root *root, root 1243 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); root 1282 fs/btrfs/tree-log.c dir = read_one_inode(root, parent_id); root 1288 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), root 1330 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, BTRFS_I(inode)->root, &key, path, 0, 0); root 1349 fs/btrfs/tree-log.c static int add_link(struct btrfs_trans_handle *trans, struct btrfs_root *root, root 1363 fs/btrfs/tree-log.c dir_item = btrfs_lookup_dir_item(NULL, root, path, root 1381 fs/btrfs/tree-log.c other_inode = read_one_inode(root, key.objectid); root 1386 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), BTRFS_I(other_inode), root 1417 fs/btrfs/tree-log.c struct btrfs_root *root, root 1459 fs/btrfs/tree-log.c dir = read_one_inode(root, parent_objectid); root 1465 fs/btrfs/tree-log.c inode = read_one_inode(root, inode_objectid); root 1480 fs/btrfs/tree-log.c dir = read_one_inode(root, parent_objectid); root 1493 fs/btrfs/tree-log.c if (!inode_in_dir(root, path, btrfs_ino(BTRFS_I(dir)), root 1505 fs/btrfs/tree-log.c ret = __add_inode_ref(trans, root, path, log, root 1530 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, root 1546 fs/btrfs/tree-log.c ret = add_link(trans, root, dir, inode, name, namelen, root 1551 fs/btrfs/tree-log.c btrfs_update_inode(trans, root, inode); root 1571 fs/btrfs/tree-log.c ret = unlink_old_inode_refs(trans, root, path, BTRFS_I(inode), eb, slot, root 1577 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); root 1587 fs/btrfs/tree-log.c struct btrfs_root *root, u64 ino) root 1591 fs/btrfs/tree-log.c ret = btrfs_insert_orphan_item(trans, root, ino); root 1598 fs/btrfs/tree-log.c static int count_inode_extrefs(struct btrfs_root *root, root 1613 fs/btrfs/tree-log.c ret = btrfs_find_one_extref(root, inode_objectid, offset, path, root 1642 fs/btrfs/tree-log.c static int count_inode_refs(struct btrfs_root *root, root 1658 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 1710 fs/btrfs/tree-log.c struct btrfs_root *root, root 1722 fs/btrfs/tree-log.c ret = count_inode_refs(root, BTRFS_I(inode), path); root 1728 fs/btrfs/tree-log.c ret = count_inode_extrefs(root, BTRFS_I(inode), path); root 1738 fs/btrfs/tree-log.c btrfs_update_inode(trans, root, inode); root 1744 fs/btrfs/tree-log.c ret = replay_dir_deletes(trans, root, NULL, path, root 1749 fs/btrfs/tree-log.c ret = insert_orphan_item(trans, root, ino); root 1758 fs/btrfs/tree-log.c struct btrfs_root *root, root 1769 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 1784 fs/btrfs/tree-log.c ret = btrfs_del_item(trans, root, path); root 1789 fs/btrfs/tree-log.c inode = read_one_inode(root, key.offset); root 1793 fs/btrfs/tree-log.c ret = fixup_inode_link_count(trans, root, inode); root 1818 fs/btrfs/tree-log.c struct btrfs_root *root, root 1826 fs/btrfs/tree-log.c inode = read_one_inode(root, objectid); root 1834 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); root 1842 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, inode); root 1859 fs/btrfs/tree-log.c struct btrfs_root *root, root 1868 fs/btrfs/tree-log.c inode = read_one_inode(root, location->objectid); root 1872 fs/btrfs/tree-log.c dir = read_one_inode(root, dirid); root 1929 fs/btrfs/tree-log.c struct btrfs_root *root, root 1947 fs/btrfs/tree-log.c dir = read_one_inode(root, key->objectid); root 1963 fs/btrfs/tree-log.c exists = btrfs_lookup_inode(trans, root, path, &log_key, 0); root 1971 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_item(trans, root, path, key->objectid, root 1974 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_index_item(trans, root, path, root 2009 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, BTRFS_I(dir), dst_di); root 2019 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, dir); root 2028 fs/btrfs/tree-log.c if (name_in_log_ref(root->log_root, name, name_len, root 2036 fs/btrfs/tree-log.c ret = insert_one_name(trans, root, key->objectid, key->offset, root 2054 fs/btrfs/tree-log.c struct btrfs_root *root, root 2072 fs/btrfs/tree-log.c ret = replay_one_name(trans, root, path, eb, di, key); root 2117 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, fixup_path, root 2139 fs/btrfs/tree-log.c static noinline int find_dir_range(struct btrfs_root *root, root 2157 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 2188 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 2216 fs/btrfs/tree-log.c struct btrfs_root *root, root 2268 fs/btrfs/tree-log.c inode = read_one_inode(root, location.objectid); root 2274 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, root 2283 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), root 2295 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, dir_key, path, root 2319 fs/btrfs/tree-log.c struct btrfs_root *root, root 2338 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); root 2379 fs/btrfs/tree-log.c di = btrfs_lookup_xattr(trans, root, path, ino, root 2387 fs/btrfs/tree-log.c ret = btrfs_delete_one_dir_name(trans, root, root 2404 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 2427 fs/btrfs/tree-log.c struct btrfs_root *root, root 2447 fs/btrfs/tree-log.c dir = read_one_inode(root, dirid); root 2472 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &dir_key, path, root 2479 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 2494 fs/btrfs/tree-log.c ret = check_item_in_log(trans, root, log, path, root 2540 fs/btrfs/tree-log.c struct btrfs_root *root = wc->replay_dest; root 2584 fs/btrfs/tree-log.c ret = replay_xattr_deletes(wc->trans, root, log, root 2591 fs/btrfs/tree-log.c root, log, path, key.objectid, 0); root 2595 fs/btrfs/tree-log.c ret = overwrite_item(wc->trans, root, path, root 2612 fs/btrfs/tree-log.c inode = read_one_inode(root, key.objectid); root 2618 fs/btrfs/tree-log.c root->fs_info->sectorsize); root 2619 fs/btrfs/tree-log.c ret = btrfs_drop_extents(wc->trans, root, inode, root 2624 fs/btrfs/tree-log.c root, inode); root 2631 fs/btrfs/tree-log.c ret = link_to_fixup_dir(wc->trans, root, root 2642 fs/btrfs/tree-log.c ret = replay_one_dir_item(wc->trans, root, path, root 2653 fs/btrfs/tree-log.c ret = overwrite_item(wc->trans, root, path, root 2659 fs/btrfs/tree-log.c ret = add_inode_ref(wc->trans, root, log, path, root 2665 fs/btrfs/tree-log.c ret = replay_one_extent(wc->trans, root, path, root 2670 fs/btrfs/tree-log.c ret = replay_one_dir_item(wc->trans, root, path, root 2681 fs/btrfs/tree-log.c struct btrfs_root *root, root 2685 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 2724 fs/btrfs/tree-log.c ret = wc->process_func(root, next, wc, ptr_gen, root 2788 fs/btrfs/tree-log.c struct btrfs_root *root, root 2792 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 2807 fs/btrfs/tree-log.c if (path->nodes[*level] == root->node) root 2813 fs/btrfs/tree-log.c ret = wc->process_func(root, path->nodes[*level], wc, root 2953 fs/btrfs/tree-log.c static void wait_log_commit(struct btrfs_root *root, int transid) root 2964 fs/btrfs/tree-log.c prepare_to_wait(&root->log_commit_wait[index], root 2967 fs/btrfs/tree-log.c if (!(root->log_transid_committed < transid && root 2968 fs/btrfs/tree-log.c atomic_read(&root->log_commit[index]))) root 2971 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 2973 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 2975 fs/btrfs/tree-log.c finish_wait(&root->log_commit_wait[index], &wait); root 2978 fs/btrfs/tree-log.c static void wait_for_writer(struct btrfs_root *root) root 2983 fs/btrfs/tree-log.c prepare_to_wait(&root->log_writer_wait, &wait, root 2985 fs/btrfs/tree-log.c if (!atomic_read(&root->log_writers)) root 2988 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 2990 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 2992 fs/btrfs/tree-log.c finish_wait(&root->log_writer_wait, &wait); root 2995 fs/btrfs/tree-log.c static inline void btrfs_remove_log_ctx(struct btrfs_root *root, root 3001 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 3003 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3010 fs/btrfs/tree-log.c static inline void btrfs_remove_all_log_ctxs(struct btrfs_root *root, root 3016 fs/btrfs/tree-log.c list_for_each_entry_safe(ctx, safe, &root->log_ctxs[index], list) { root 3021 fs/btrfs/tree-log.c INIT_LIST_HEAD(&root->log_ctxs[index]); root 3037 fs/btrfs/tree-log.c struct btrfs_root *root, struct btrfs_log_ctx *ctx) root 3043 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 3044 fs/btrfs/tree-log.c struct btrfs_root *log = root->log_root; root 3051 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 3053 fs/btrfs/tree-log.c if (root->log_transid_committed >= log_transid) { root 3054 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3059 fs/btrfs/tree-log.c if (atomic_read(&root->log_commit[index1])) { root 3060 fs/btrfs/tree-log.c wait_log_commit(root, log_transid); root 3061 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3064 fs/btrfs/tree-log.c ASSERT(log_transid == root->log_transid); root 3065 fs/btrfs/tree-log.c atomic_set(&root->log_commit[index1], 1); root 3068 fs/btrfs/tree-log.c if (atomic_read(&root->log_commit[(index1 + 1) % 2])) root 3069 fs/btrfs/tree-log.c wait_log_commit(root, log_transid - 1); root 3072 fs/btrfs/tree-log.c int batch = atomic_read(&root->log_batch); root 3075 fs/btrfs/tree-log.c test_bit(BTRFS_ROOT_MULTI_LOG_TASKS, &root->state)) { root 3076 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3078 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 3080 fs/btrfs/tree-log.c wait_for_writer(root); root 3081 fs/btrfs/tree-log.c if (batch == atomic_read(&root->log_batch)) root 3088 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3106 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3126 fs/btrfs/tree-log.c root->log_transid++; root 3127 fs/btrfs/tree-log.c log->log_transid = root->log_transid; root 3128 fs/btrfs/tree-log.c root->log_start_pid = 0; root 3134 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3263 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 3264 fs/btrfs/tree-log.c if (root->last_log_commit < log_transid) root 3265 fs/btrfs/tree-log.c root->last_log_commit = log_transid; root 3266 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3283 fs/btrfs/tree-log.c mutex_lock(&root->log_mutex); root 3284 fs/btrfs/tree-log.c btrfs_remove_all_log_ctxs(root, index1, ret); root 3285 fs/btrfs/tree-log.c root->log_transid_committed++; root 3286 fs/btrfs/tree-log.c atomic_set(&root->log_commit[index1], 0); root 3287 fs/btrfs/tree-log.c mutex_unlock(&root->log_mutex); root 3294 fs/btrfs/tree-log.c cond_wake_up(&root->log_commit_wait[index1]); root 3325 fs/btrfs/tree-log.c int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root) root 3327 fs/btrfs/tree-log.c if (root->log_root) { root 3328 fs/btrfs/tree-log.c free_log_tree(trans, root->log_root); root 3329 fs/btrfs/tree-log.c root->log_root = NULL; root 3390 fs/btrfs/tree-log.c struct btrfs_root *root, root 3405 fs/btrfs/tree-log.c ret = join_running_log_trans(root); root 3411 fs/btrfs/tree-log.c log = root->log_root; root 3491 fs/btrfs/tree-log.c btrfs_end_log_trans(root); root 3498 fs/btrfs/tree-log.c struct btrfs_root *root, root 3509 fs/btrfs/tree-log.c ret = join_running_log_trans(root); root 3512 fs/btrfs/tree-log.c log = root->log_root; root 3523 fs/btrfs/tree-log.c btrfs_end_log_trans(root); root 3567 fs/btrfs/tree-log.c struct btrfs_root *root, struct btrfs_inode *inode, root 3574 fs/btrfs/tree-log.c struct btrfs_root *log = root->log_root; root 3584 fs/btrfs/tree-log.c log = root->log_root; root 3590 fs/btrfs/tree-log.c ret = btrfs_search_forward(root, &min_key, path, trans->transid); root 3601 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0); root 3606 fs/btrfs/tree-log.c ret = btrfs_previous_item(root, path, ino, key_type); root 3624 fs/btrfs/tree-log.c ret = btrfs_previous_item(root, path, ino, key_type); root 3649 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0); root 3712 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 3767 fs/btrfs/tree-log.c struct btrfs_root *root, struct btrfs_inode *inode, root 3781 fs/btrfs/tree-log.c ret = log_dir_items(trans, root, inode, path, dst_path, key_type, root 3963 fs/btrfs/tree-log.c struct btrfs_root *log = inode->root->log_root; root 4143 fs/btrfs/tree-log.c struct btrfs_inode *inode, struct btrfs_root *root, root 4148 fs/btrfs/tree-log.c struct btrfs_root *log = root->log_root; root 4239 fs/btrfs/tree-log.c struct btrfs_root *root = inode->root; root 4258 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4270 fs/btrfs/tree-log.c ret = btrfs_previous_item(root, path, ino, BTRFS_EXTENT_DATA_KEY); root 4308 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 4334 fs/btrfs/tree-log.c root->log_root, root 4368 fs/btrfs/tree-log.c struct btrfs_root *root, root 4385 fs/btrfs/tree-log.c test_gen = root->fs_info->last_trans_committed; root 4452 fs/btrfs/tree-log.c ret = log_one_extent(trans, inode, root, em, path, ctx); root 4517 fs/btrfs/tree-log.c struct btrfs_root *root, root 4532 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4549 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 4587 fs/btrfs/tree-log.c struct btrfs_root *root, root 4591 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 4605 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4615 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 4639 fs/btrfs/tree-log.c ret = btrfs_insert_file_extent(trans, root->log_root, root 4653 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4682 fs/btrfs/tree-log.c ret = btrfs_insert_file_extent(trans, root->log_root, root 4794 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(NULL, inode->root, search_path, root 4835 fs/btrfs/tree-log.c struct btrfs_root *root, root 4852 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 4870 fs/btrfs/tree-log.c inode = btrfs_iget(fs_info->sb, &key, root, NULL); root 4880 fs/btrfs/tree-log.c inode = btrfs_iget(fs_info->sb, &key, root, root 4885 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, root 4945 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(inode), root 4955 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4968 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 5025 fs/btrfs/tree-log.c struct btrfs_root *root, struct btrfs_inode *inode, root 5031 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 5036 fs/btrfs/tree-log.c struct btrfs_root *log = root->log_root; root 5174 fs/btrfs/tree-log.c ret = btrfs_search_forward(root, &min_key, root 5223 fs/btrfs/tree-log.c err = log_conflicting_inodes(trans, root, path, root 5308 fs/btrfs/tree-log.c err = btrfs_log_all_xattrs(trans, root, inode, path, dst_path); root 5315 fs/btrfs/tree-log.c err = btrfs_log_holes(trans, root, inode, path); root 5325 fs/btrfs/tree-log.c err = btrfs_log_all_xattrs(trans, root, inode, path, root 5333 fs/btrfs/tree-log.c ret = btrfs_log_changed_extents(trans, root, inode, dst_path, root 5372 fs/btrfs/tree-log.c ret = log_directory_changes(trans, root, inode, path, dst_path, root 5421 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = inode->root->fs_info; root 5545 fs/btrfs/tree-log.c struct btrfs_root *root, root 5549 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 5550 fs/btrfs/tree-log.c struct btrfs_root *log = root->log_root; root 5618 fs/btrfs/tree-log.c di_inode = btrfs_iget(fs_info->sb, &di_key, root, NULL); root 5632 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(di_inode), root 5683 fs/btrfs/tree-log.c struct btrfs_root *root = inode->root; root 5695 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 5707 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 5745 fs/btrfs/tree-log.c root, NULL); root 5776 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(dir_inode), root 5782 fs/btrfs/tree-log.c ret = log_new_dir_dentries(trans, root, root 5797 fs/btrfs/tree-log.c struct btrfs_root *root, root 5806 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 5819 fs/btrfs/tree-log.c inode = btrfs_iget(fs_info->sb, &search_key, root, NULL); root 5824 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, BTRFS_I(inode), root 5835 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); root 5842 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 5864 fs/btrfs/tree-log.c struct btrfs_root *root = inode->root; root 5865 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 5876 fs/btrfs/tree-log.c if (root != inode->root) root 5880 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, inode, root 5902 fs/btrfs/tree-log.c struct btrfs_root *root = inode->root; root 5923 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); root 5935 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); root 5968 fs/btrfs/tree-log.c ret = log_new_ancestors(trans, root, path, ctx); root 5994 fs/btrfs/tree-log.c struct btrfs_root *root = inode->root; root 5995 fs/btrfs/tree-log.c struct btrfs_fs_info *fs_info = root->fs_info; root 6018 fs/btrfs/tree-log.c if (btrfs_root_refs(&root->root_item) == 0) { root 6039 fs/btrfs/tree-log.c ret = start_log_trans(trans, root, ctx); root 6043 fs/btrfs/tree-log.c ret = btrfs_log_inode(trans, root, inode, inode_only, start, end, ctx); root 6115 fs/btrfs/tree-log.c ret = log_new_dir_dentries(trans, root, inode, ctx); root 6125 fs/btrfs/tree-log.c btrfs_remove_log_ctx(root, ctx); root 6126 fs/btrfs/tree-log.c btrfs_end_log_trans(root); root 6270 fs/btrfs/tree-log.c struct btrfs_root *root = wc.replay_dest; root 6282 fs/btrfs/tree-log.c ret = btrfs_find_highest_objectid(root, root 6283 fs/btrfs/tree-log.c &root->highest_objectid); root 6466 fs/btrfs/tree-log.c ret = btrfs_sync_log(trans, inode->root, &ctx2); root 45 fs/btrfs/tree-log.h struct btrfs_root *root, struct btrfs_log_ctx *ctx); root 46 fs/btrfs/tree-log.h int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); root 56 fs/btrfs/tree-log.h struct btrfs_root *root, root 60 fs/btrfs/tree-log.h struct btrfs_root *root, root 63 fs/btrfs/tree-log.h void btrfs_end_log_trans(struct btrfs_root *root); root 64 fs/btrfs/tree-log.h void btrfs_pin_log_trans(struct btrfs_root *root); root 50 fs/btrfs/ulist.c ulist->root = RB_ROOT; root 69 fs/btrfs/ulist.c ulist->root = RB_ROOT; root 120 fs/btrfs/ulist.c struct rb_node *n = ulist->root.rb_node; root 137 fs/btrfs/ulist.c rb_erase(&node->rb_node, &ulist->root); root 146 fs/btrfs/ulist.c struct rb_node **p = &ulist->root.rb_node; root 162 fs/btrfs/ulist.c rb_insert_color(&ins->rb_node, &ulist->root); root 42 fs/btrfs/ulist.h struct rb_root root; root 253 fs/btrfs/uuid-tree.c struct btrfs_root *root = fs_info->uuid_root; root 273 fs/btrfs/uuid-tree.c ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); root 313 fs/btrfs/uuid-tree.c ret = btrfs_uuid_iter_rem(root, uuid, key.type, root 335 fs/btrfs/uuid-tree.c ret = btrfs_next_item(root, path); root 1602 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->dev_root; root 1644 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 1648 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, key.objectid, key.type); root 1657 fs/btrfs/volumes.c ret = btrfs_next_leaf(root, path); root 1766 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->dev_root; root 1782 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 1784 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, key.objectid, root 1808 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); root 1827 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->dev_root; root 1841 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 1999 fs/btrfs/volumes.c struct btrfs_root *root = device->fs_info->chunk_root; root 2009 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); root 2018 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 2027 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); root 2523 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->chunk_root; root 2543 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 2550 fs/btrfs/volumes.c ret = btrfs_next_leaf(root, path); root 2594 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->dev_root; root 2649 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); root 2761 fs/btrfs/volumes.c trans = btrfs_attach_transaction(root); root 2815 fs/btrfs/volumes.c struct btrfs_root *root = device->fs_info->chunk_root; root 2828 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); root 2897 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->chunk_root; root 2910 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 2920 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); root 3101 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->chunk_root; root 3126 fs/btrfs/volumes.c trans = btrfs_start_trans_remove_block_group(root->fs_info, root 3130 fs/btrfs/volumes.c btrfs_handle_fs_error(root->fs_info, ret, NULL); root 3261 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->tree_root; root 3274 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); root 3284 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, root 3314 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->tree_root; root 3324 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); root 3334 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); root 3342 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); root 4462 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->tree_root; root 4483 fs/btrfs/volumes.c ret = btrfs_search_forward(root, &key, path, root 4718 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->dev_root; root 4749 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); root 4785 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 4791 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, 0, key.type); root 4860 fs/btrfs/volumes.c trans = btrfs_start_transaction(root, 0); root 7055 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->tree_root; root 7080 fs/btrfs/volumes.c btrfs_set_buffer_lockdep_class(root->root_key.objectid, sb, 0); root 7240 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->chunk_root; root 7269 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 7276 fs/btrfs/volumes.c ret = btrfs_next_leaf(root, path); root 7827 fs/btrfs/volumes.c struct btrfs_root *root = fs_info->dev_root; root 7842 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 7847 fs/btrfs/volumes.c ret = btrfs_next_item(root, path); root 7891 fs/btrfs/volumes.c ret = btrfs_next_item(root, path); root 27 fs/btrfs/xattr.c struct btrfs_root *root = BTRFS_I(inode)->root; root 38 fs/btrfs/xattr.c di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), root 83 fs/btrfs/xattr.c struct btrfs_root *root = BTRFS_I(inode)->root; root 84 fs/btrfs/xattr.c struct btrfs_fs_info *fs_info = root->fs_info; root 91 fs/btrfs/xattr.c if (name_len + size > BTRFS_MAX_XATTR_SIZE(root->fs_info)) root 100 fs/btrfs/xattr.c di = btrfs_lookup_xattr(trans, root, path, root 107 fs/btrfs/xattr.c ret = btrfs_delete_one_dir_name(trans, root, path, di); root 120 fs/btrfs/xattr.c di = btrfs_lookup_xattr(NULL, root, path, root 132 fs/btrfs/xattr.c ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(BTRFS_I(inode)), root 193 fs/btrfs/xattr.c ret = btrfs_delete_one_dir_name(trans, root, path, di); root 228 fs/btrfs/xattr.c struct btrfs_root *root = BTRFS_I(inode)->root; root 232 fs/btrfs/xattr.c trans = btrfs_start_transaction(root, 2); root 242 fs/btrfs/xattr.c ret = btrfs_update_inode(trans, root, inode); root 253 fs/btrfs/xattr.c struct btrfs_root *root = BTRFS_I(inode)->root; root 273 fs/btrfs/xattr.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); root 294 fs/btrfs/xattr.c ret = btrfs_next_leaf(root, path); root 378 fs/btrfs/xattr.c struct btrfs_root *root = BTRFS_I(inode)->root; root 385 fs/btrfs/xattr.c trans = btrfs_start_transaction(root, 2); root 393 fs/btrfs/xattr.c ret = btrfs_update_inode(trans, root, inode); root 86 fs/cachefiles/bind.c struct dentry *graveyard, *cachedir, *root; root 119 fs/cachefiles/bind.c root = path.dentry; root 123 fs/cachefiles/bind.c if (d_is_negative(root) || root 124 fs/cachefiles/bind.c !d_backing_inode(root)->i_op->lookup || root 125 fs/cachefiles/bind.c !d_backing_inode(root)->i_op->mkdir || root 126 fs/cachefiles/bind.c !(d_backing_inode(root)->i_opflags & IOP_XATTR) || root 127 fs/cachefiles/bind.c !root->d_sb->s_op->statfs || root 128 fs/cachefiles/bind.c !root->d_sb->s_op->sync_fs) root 132 fs/cachefiles/bind.c if (sb_rdonly(root->d_sb)) root 137 fs/cachefiles/bind.c ret = cachefiles_determine_cache_security(cache, root, &saved_cred); root 189 fs/cachefiles/bind.c cachedir = cachefiles_get_directory(cache, root, "cache"); root 203 fs/cachefiles/bind.c graveyard = cachefiles_get_directory(cache, root, "graveyard"); root 226 fs/cachefiles/bind.c dput(root); root 243 fs/cachefiles/bind.c dput(root); root 225 fs/cachefiles/internal.h struct dentry *root, root 50 fs/cachefiles/security.c struct dentry *root) root 54 fs/cachefiles/security.c ret = security_inode_mkdir(d_backing_inode(root), root, 0); root 61 fs/cachefiles/security.c ret = security_inode_create(d_backing_inode(root), root, 0); root 76 fs/cachefiles/security.c struct dentry *root, root 94 fs/cachefiles/security.c ret = set_create_files_as(new, d_backing_inode(root)); root 106 fs/cachefiles/security.c ret = cachefiles_check_cache_dir(cache, root); root 83 fs/ceph/snap.c static void __insert_snap_realm(struct rb_root *root, root 86 fs/ceph/snap.c struct rb_node **p = &root->rb_node; root 102 fs/ceph/snap.c rb_insert_color(&new->node, root); root 578 fs/ceph/super.c static int ceph_show_options(struct seq_file *m, struct dentry *root) root 580 fs/ceph/super.c struct ceph_fs_client *fsc = ceph_sb_to_client(root->d_sb); root 919 fs/ceph/super.c struct dentry *root; root 928 fs/ceph/super.c root = ERR_PTR(-ENOMEM); root 943 fs/ceph/super.c root = d_make_root(inode); root 944 fs/ceph/super.c if (!root) { root 945 fs/ceph/super.c root = ERR_PTR(-ENOMEM); root 948 fs/ceph/super.c dout("open_root_inode success, root dentry is %p\n", root); root 950 fs/ceph/super.c root = ERR_PTR(err); root 954 fs/ceph/super.c return root; root 964 fs/ceph/super.c struct dentry *root; root 988 fs/ceph/super.c root = open_root_dentry(fsc, path, started); root 989 fs/ceph/super.c if (IS_ERR(root)) { root 990 fs/ceph/super.c err = PTR_ERR(root); root 993 fs/ceph/super.c fsc->sb->s_root = dget(root); root 995 fs/ceph/super.c root = dget(fsc->sb->s_root); root 1001 fs/ceph/super.c return root; root 471 fs/cifs/cifsfs.c cifs_show_options(struct seq_file *s, struct dentry *root) root 473 fs/cifs/cifsfs.c struct cifs_sb_info *cifs_sb = CIFS_SB(root->d_sb); root 585 fs/cifs/cifsfs.c if (root->d_sb->s_flags & SB_POSIXACL) root 663 fs/cifs/cifsfs.c static int cifs_show_stats(struct seq_file *s, struct dentry *root) root 780 fs/cifs/cifsfs.c struct dentry *root; root 797 fs/cifs/cifsfs.c root = ERR_PTR(-ENOMEM); root 803 fs/cifs/cifsfs.c root = ERR_PTR(-ENOMEM); root 809 fs/cifs/cifsfs.c root = ERR_PTR(rc); root 818 fs/cifs/cifsfs.c root = ERR_PTR(rc); root 831 fs/cifs/cifsfs.c root = ERR_CAST(sb); root 842 fs/cifs/cifsfs.c root = ERR_PTR(rc); root 849 fs/cifs/cifsfs.c root = cifs_get_root(volume_info, sb); root 850 fs/cifs/cifsfs.c if (IS_ERR(root)) root 853 fs/cifs/cifsfs.c cifs_dbg(FYI, "dentry root is: %p\n", root); root 860 fs/cifs/cifsfs.c return root; root 336 fs/cifs/connect.c static void tlink_rb_insert(struct rb_root *root, struct tcon_link *new_tlink); root 4746 fs/cifs/connect.c struct cifs_tcon **root) root 4752 fs/cifs/connect.c *root = tcon; root 5166 fs/cifs/connect.c struct rb_root *root = &cifs_sb->tlink_tree; root 5173 fs/cifs/connect.c while ((node = rb_first(root))) { root 5177 fs/cifs/connect.c rb_erase(node, root); root 5335 fs/cifs/connect.c tlink_rb_search(struct rb_root *root, kuid_t uid) root 5337 fs/cifs/connect.c struct rb_node *node = root->rb_node; root 5355 fs/cifs/connect.c tlink_rb_insert(struct rb_root *root, struct tcon_link *new_tlink) root 5357 fs/cifs/connect.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 5371 fs/cifs/connect.c rb_insert_color(&new_tlink->tl_rbnode, root); root 5472 fs/cifs/connect.c struct rb_root *root = &cifs_sb->tlink_tree; root 5485 fs/cifs/connect.c node = rb_first(root); root 5498 fs/cifs/connect.c rb_erase(tmp, root); root 149 fs/coda/inode.c struct inode *root = NULL; root 209 fs/coda/inode.c root = coda_cnode_make(&fid, sb); root 210 fs/coda/inode.c if (IS_ERR(root)) { root 211 fs/coda/inode.c error = PTR_ERR(root); root 218 fs/coda/inode.c __func__, root->i_ino, root->i_sb->s_id); root 219 fs/coda/inode.c sb->s_root = d_make_root(root); root 81 fs/coda/upcall.c insize = SIZE(root); root 1130 fs/configfs/dir.c struct dentry *root; root 1136 fs/configfs/dir.c root = configfs_pin_fs(); root 1137 fs/configfs/dir.c if (IS_ERR(root)) root 1138 fs/configfs/dir.c return PTR_ERR(root); root 1145 fs/configfs/dir.c inode_lock(d_inode(root)); root 1147 fs/configfs/dir.c subsys_sd = configfs_find_subsys_dentry(root->d_fsdata, s_item); root 1157 fs/configfs/dir.c inode_unlock(d_inode(root)); root 1210 fs/configfs/dir.c struct config_group *root, *parent; root 1225 fs/configfs/dir.c root = parent; root 1229 fs/configfs/dir.c for (root = parent; !configfs_is_root(&root->cg_item); root 1230 fs/configfs/dir.c root = root->cg_item.ci_group) root 1240 fs/configfs/dir.c inode_lock(d_inode(root->cg_item.ci_dentry)); root 1247 fs/configfs/dir.c root->cg_item.ci_dentry->d_fsdata, root 1264 fs/configfs/dir.c inode_unlock(d_inode(root->cg_item.ci_dentry)); root 1869 fs/configfs/dir.c struct dentry *root; root 1877 fs/configfs/dir.c root = configfs_pin_fs(); root 1878 fs/configfs/dir.c if (IS_ERR(root)) { root 1880 fs/configfs/dir.c return PTR_ERR(root); root 1886 fs/configfs/dir.c sd = root->d_fsdata; root 1889 fs/configfs/dir.c inode_lock_nested(d_inode(root), I_MUTEX_PARENT); root 1892 fs/configfs/dir.c dentry = d_alloc_name(root, group->cg_item.ci_name); root 1909 fs/configfs/dir.c inode_unlock(d_inode(root)); root 1924 fs/configfs/dir.c struct dentry *root = dentry->d_sb->s_root; root 1928 fs/configfs/dir.c if (dentry->d_parent != root) { root 1937 fs/configfs/dir.c inode_lock_nested(d_inode(root), root 1950 fs/configfs/dir.c fsnotify_rmdir(d_inode(root), dentry); root 1955 fs/configfs/dir.c inode_unlock(d_inode(root)); root 68 fs/configfs/mount.c struct dentry *root; root 88 fs/configfs/mount.c root = d_make_root(inode); root 89 fs/configfs/mount.c if (!root) { root 94 fs/configfs/mount.c configfs_root_group.cg_item.ci_dentry = root; root 95 fs/configfs/mount.c root->d_fsdata = &configfs_root; root 96 fs/configfs/mount.c sb->s_root = root; root 743 fs/coredump.c struct path root; root 746 fs/coredump.c get_fs_root(init_task.fs, &root); root 748 fs/coredump.c cprm.file = file_open_root(root.dentry, root.mnt, root 750 fs/coredump.c path_put(&root); root 512 fs/cramfs/inode.c sync_filesystem(fc->root->d_sb); root 563 fs/cramfs/inode.c if (!S_ISDIR(super->root.mode)) { root 568 fs/cramfs/inode.c super->root.mode |= 0555; root 570 fs/cramfs/inode.c root_offset = super->root.offset << 2; root 598 fs/cramfs/inode.c struct inode *root; root 605 fs/cramfs/inode.c root = get_cramfs_inode(sb, cramfs_root, 0); root 606 fs/cramfs/inode.c if (IS_ERR(root)) root 607 fs/cramfs/inode.c return PTR_ERR(root); root 608 fs/cramfs/inode.c sb->s_root = d_make_root(root); root 632 fs/cramfs/inode.c return cramfs_finalize_super(sb, &super.root); root 673 fs/cramfs/inode.c return cramfs_finalize_super(sb, &super.root); root 76 fs/d_path.c const struct path *root, root 100 fs/d_path.c while (dentry != root->dentry || vfsmnt != root->mnt) { root 177 fs/d_path.c const struct path *root, root 184 fs/d_path.c error = prepend_path(path, root, &res, &buflen); root 196 fs/d_path.c struct path root = {}; root 201 fs/d_path.c error = prepend_path(path, &root, &res, &buflen); root 214 fs/d_path.c const struct path *root, root 224 fs/d_path.c return prepend_path(path, root, buf, buflen); root 232 fs/d_path.c static void get_fs_root_rcu(struct fs_struct *fs, struct path *root) root 238 fs/d_path.c *root = fs->root; root 261 fs/d_path.c struct path root; root 280 fs/d_path.c get_fs_root_rcu(current->fs, &root); root 281 fs/d_path.c error = path_with_deleted(path, &root, &res, &buflen); root 395 fs/d_path.c static void get_fs_root_and_pwd_rcu(struct fs_struct *fs, struct path *root, root 402 fs/d_path.c *root = fs->root; root 428 fs/d_path.c struct path pwd, root; root 435 fs/d_path.c get_fs_root_and_pwd_rcu(current->fs, &root, &pwd); root 444 fs/d_path.c error = prepend_path(&pwd, &root, &cwd, &buflen); root 3094 fs/dcache.c struct dentry *root = data; root 3095 fs/dcache.c if (dentry != root) { root 179 fs/debugfs/inode.c static int debugfs_show_options(struct seq_file *m, struct dentry *root) root 181 fs/debugfs/inode.c struct debugfs_fs_info *fsi = root->d_sb->s_fs_info; root 328 fs/devpts/inode.c struct dentry *root = sb->s_root; root 334 fs/devpts/inode.c inode_lock(d_inode(root)); root 342 fs/devpts/inode.c dentry = d_alloc_name(root, "ptmx"); root 371 fs/devpts/inode.c inode_unlock(d_inode(root)); root 403 fs/devpts/inode.c static int devpts_show_options(struct seq_file *seq, struct dentry *root) root 405 fs/devpts/inode.c struct pts_fs_info *fsi = DEVPTS_SB(root->d_sb); root 567 fs/devpts/inode.c struct dentry *root; root 571 fs/devpts/inode.c root = sb->s_root; root 586 fs/devpts/inode.c dentry = d_alloc_name(root, s); root 590 fs/devpts/inode.c fsnotify_create(d_inode(root), dentry); root 132 fs/ecryptfs/super.c static int ecryptfs_show_options(struct seq_file *m, struct dentry *root) root 134 fs/ecryptfs/super.c struct super_block *sb = root->d_sb; root 112 fs/efivarfs/super.c struct dentry *dentry, *root = sb->s_root; root 144 fs/efivarfs/super.c inode = efivarfs_get_inode(sb, d_inode(root), S_IFREG | 0644, 0, root 149 fs/efivarfs/super.c dentry = efivarfs_alloc_dentry(root, name); root 193 fs/efivarfs/super.c struct dentry *root; root 209 fs/efivarfs/super.c root = d_make_root(inode); root 210 fs/efivarfs/super.c sb->s_root = root; root 211 fs/efivarfs/super.c if (!root) root 254 fs/efs/super.c struct inode *root; root 314 fs/efs/super.c root = efs_iget(s, EFS_ROOTINODE); root 315 fs/efs/super.c if (IS_ERR(root)) { root 317 fs/efs/super.c return PTR_ERR(root); root 320 fs/efs/super.c s->s_root = d_make_root(root); root 546 fs/erofs/super.c static int erofs_show_options(struct seq_file *seq, struct dentry *root) root 548 fs/erofs/super.c struct erofs_sb_info *sbi __maybe_unused = EROFS_SB(root->d_sb); root 201 fs/ext2/balloc.c static void __rsv_window_dump(struct rb_root *root, int verbose, root 209 fs/ext2/balloc.c n = rb_first(root); root 243 fs/ext2/balloc.c #define rsv_window_dump(root, verbose) \ root 244 fs/ext2/balloc.c __rsv_window_dump((root), (verbose), __func__) root 246 fs/ext2/balloc.c #define rsv_window_dump(root, verbose) do {} while (0) root 293 fs/ext2/balloc.c search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) root 295 fs/ext2/balloc.c struct rb_node *n = root->rb_node; root 334 fs/ext2/balloc.c struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root; root 338 fs/ext2/balloc.c struct rb_node ** p = &root->rb_node; root 352 fs/ext2/balloc.c rsv_window_dump(root, 1); root 358 fs/ext2/balloc.c rb_insert_color(node, root); root 239 fs/ext2/super.c static int ext2_show_options(struct seq_file *seq, struct dentry *root) root 241 fs/ext2/super.c struct super_block *sb = root->d_sb; root 829 fs/ext2/super.c struct inode *root; root 1175 fs/ext2/super.c root = ext2_iget(sb, EXT2_ROOT_INO); root 1176 fs/ext2/super.c if (IS_ERR(root)) { root 1177 fs/ext2/super.c ret = PTR_ERR(root); root 1180 fs/ext2/super.c if (!S_ISDIR(root->i_mode) || !root->i_blocks || !root->i_size) { root 1181 fs/ext2/super.c iput(root); root 1186 fs/ext2/super.c sb->s_root = d_make_root(root); root 58 fs/ext4/block_validity.c &system_blks->root, node) root 72 fs/ext4/block_validity.c struct rb_node **n = &system_blks->root.rb_node, *node; root 104 fs/ext4/block_validity.c rb_insert_color(new_node, &system_blks->root); root 114 fs/ext4/block_validity.c rb_erase(node, &system_blks->root); root 125 fs/ext4/block_validity.c rb_erase(node, &system_blks->root); root 139 fs/ext4/block_validity.c node = rb_first(&sbi->system_blks->root); root 173 fs/ext4/block_validity.c n = system_blks->root.rb_node; root 403 fs/ext4/dir.c static void free_rb_tree_fname(struct rb_root *root) root 407 fs/ext4/dir.c rbtree_postorder_for_each_entry_safe(fname, next, root, rb_hash) root 414 fs/ext4/dir.c *root = RB_ROOT; root 433 fs/ext4/dir.c free_rb_tree_fname(&p->root); root 455 fs/ext4/dir.c p = &info->root.rb_node; root 496 fs/ext4/dir.c rb_insert_color(&new_fn->rb_hash, &info->root); root 553 fs/ext4/dir.c free_rb_tree_fname(&info->root); root 570 fs/ext4/dir.c info->curr_node = rb_first(&info->root); root 581 fs/ext4/dir.c free_rb_tree_fname(&info->root); root 592 fs/ext4/dir.c info->curr_node = rb_first(&info->root); root 192 fs/ext4/ext4.h struct rb_root root; root 2174 fs/ext4/ext4.h struct rb_root root; root 173 fs/ext4/extents_status.c tree->root = RB_ROOT; root 185 fs/ext4/extents_status.c node = rb_first(&tree->root); root 210 fs/ext4/extents_status.c static struct extent_status *__es_tree_search(struct rb_root *root, root 213 fs/ext4/extents_status.c struct rb_node *node = root->rb_node; root 282 fs/ext4/extents_status.c es1 = __es_tree_search(&tree->root, lblk); root 544 fs/ext4/extents_status.c rb_erase(&es->rb_node, &tree->root); root 568 fs/ext4/extents_status.c rb_erase(node, &tree->root); root 751 fs/ext4/extents_status.c struct rb_node **p = &tree->root.rb_node; root 793 fs/ext4/extents_status.c rb_insert_color(&es->rb_node, &tree->root); root 888 fs/ext4/extents_status.c es = __es_tree_search(&EXT4_I(inode)->i_es_tree.root, lblk); root 929 fs/ext4/extents_status.c node = tree->root.rb_node; root 1116 fs/ext4/extents_status.c static struct pending_reservation *__pr_tree_search(struct rb_root *root, root 1119 fs/ext4/extents_status.c struct rb_node *node = root->rb_node; root 1255 fs/ext4/extents_status.c pr = __pr_tree_search(&tree->root, first_lclu); root 1259 fs/ext4/extents_status.c rb_erase(&pr->rb_node, &tree->root); root 1303 fs/ext4/extents_status.c es = __es_tree_search(&tree->root, lblk); root 1375 fs/ext4/extents_status.c rb_erase(&es->rb_node, &tree->root); root 1679 fs/ext4/extents_status.c es = __es_tree_search(&tree->root, ei->i_es_shrink_lblk); root 1702 fs/ext4/extents_status.c rb_erase(&es->rb_node, &tree->root); root 1755 fs/ext4/extents_status.c node = rb_first(&tree->root); root 1760 fs/ext4/extents_status.c rb_erase(&es->rb_node, &tree->root); root 1777 fs/ext4/extents_status.c node = rb_first(&tree->root); root 1806 fs/ext4/extents_status.c tree->root = RB_ROOT; root 1826 fs/ext4/extents_status.c node = (&tree->root)->rb_node; root 1854 fs/ext4/extents_status.c struct rb_node **p = &tree->root.rb_node; root 1884 fs/ext4/extents_status.c rb_insert_color(&pr->rb_node, &tree->root); root 1908 fs/ext4/extents_status.c rb_erase(&pr->rb_node, &tree->root); root 2034 fs/ext4/extents_status.c es = __es_tree_search(&tree->root, start); root 67 fs/ext4/extents_status.h struct rb_root root; root 123 fs/ext4/extents_status.h struct rb_root root; root 412 fs/ext4/namei.c struct dx_root_info *root; root 422 fs/ext4/namei.c root = (struct dx_root_info *)(((void *)dp + 12)); root 423 fs/ext4/namei.c if (root->reserved_zero || root 424 fs/ext4/namei.c root->info_length != sizeof(struct dx_root_info)) root 755 fs/ext4/namei.c struct dx_root *root; root 765 fs/ext4/namei.c root = (struct dx_root *) frame->bh->b_data; root 766 fs/ext4/namei.c if (root->info.hash_version != DX_HASH_TEA && root 767 fs/ext4/namei.c root->info.hash_version != DX_HASH_HALF_MD4 && root 768 fs/ext4/namei.c root->info.hash_version != DX_HASH_LEGACY) { root 770 fs/ext4/namei.c root->info.hash_version); root 775 fs/ext4/namei.c hinfo->hash_version = root->info.hash_version; root 783 fs/ext4/namei.c if (root->info.unused_flags & 1) { root 785 fs/ext4/namei.c root->info.unused_flags); root 789 fs/ext4/namei.c indirect = root->info.indirect_levels; root 802 fs/ext4/namei.c entries = (struct dx_entry *)(((char *)&root->info) + root 803 fs/ext4/namei.c root->info.info_length); root 806 fs/ext4/namei.c root->info.info_length)) { root 809 fs/ext4/namei.c dx_root_limit(dir, root->info.info_length)); root 2042 fs/ext4/namei.c struct dx_root *root; root 2066 fs/ext4/namei.c root = (struct dx_root *) bh->b_data; root 2069 fs/ext4/namei.c fde = &root->dotdot; root 2072 fs/ext4/namei.c if ((char *) de >= (((char *) root) + blocksize)) { root 2077 fs/ext4/namei.c len = ((char *) root) + (blocksize - csum_size) - (char *) de; root 2100 fs/ext4/namei.c de = (struct ext4_dir_entry_2 *) (&root->dotdot); root 2103 fs/ext4/namei.c memset (&root->info, 0, sizeof(root->info)); root 2104 fs/ext4/namei.c root->info.info_length = sizeof(root->info); root 2105 fs/ext4/namei.c root->info.hash_version = EXT4_SB(dir->i_sb)->s_def_hash_version; root 2106 fs/ext4/namei.c entries = root->entries; root 2109 fs/ext4/namei.c dx_set_limit(entries, dx_root_limit(dir, sizeof(root->info))); root 2112 fs/ext4/namei.c fname->hinfo.hash_version = root->info.hash_version; root 67 fs/ext4/super.c static int ext4_show_options(struct seq_file *seq, struct dentry *root); root 2271 fs/ext4/super.c static int ext4_show_options(struct seq_file *seq, struct dentry *root) root 2273 fs/ext4/super.c return _ext4_show_options(seq, root->d_sb, 0); root 3626 fs/ext4/super.c struct inode *root; root 4521 fs/ext4/super.c root = ext4_iget(sb, EXT4_ROOT_INO, EXT4_IGET_SPECIAL); root 4522 fs/ext4/super.c if (IS_ERR(root)) { root 4524 fs/ext4/super.c ret = PTR_ERR(root); root 4525 fs/ext4/super.c root = NULL; root 4528 fs/ext4/super.c if (!S_ISDIR(root->i_mode) || !root->i_blocks || !root->i_size) { root 4530 fs/ext4/super.c iput(root); root 4539 fs/ext4/super.c sb->s_root = d_make_root(root); root 30 fs/f2fs/extent_cache.c static struct rb_entry *__lookup_rb_tree_slow(struct rb_root_cached *root, root 33 fs/f2fs/extent_cache.c struct rb_node *node = root->rb_root.rb_node; root 49 fs/f2fs/extent_cache.c struct rb_entry *f2fs_lookup_rb_tree(struct rb_root_cached *root, root 56 fs/f2fs/extent_cache.c return __lookup_rb_tree_slow(root, ofs); root 62 fs/f2fs/extent_cache.c struct rb_root_cached *root, root 66 fs/f2fs/extent_cache.c struct rb_node **p = &root->rb_root.rb_node; root 95 fs/f2fs/extent_cache.c struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root, root 104 fs/f2fs/extent_cache.c struct rb_node **pnode = &root->rb_root.rb_node; root 113 fs/f2fs/extent_cache.c if (RB_EMPTY_ROOT(&root->rb_root)) root 169 fs/f2fs/extent_cache.c struct rb_root_cached *root) root 172 fs/f2fs/extent_cache.c struct rb_node *cur = rb_first_cached(root), *next; root 218 fs/f2fs/extent_cache.c rb_insert_color_cached(&en->rb_node, &et->root, leftmost); root 227 fs/f2fs/extent_cache.c rb_erase_cached(&en->rb_node, &et->root); root 266 fs/f2fs/extent_cache.c et->root = RB_ROOT_CACHED; root 287 fs/f2fs/extent_cache.c struct rb_node **p = &et->root.rb_root.rb_node; root 306 fs/f2fs/extent_cache.c node = rb_first_cached(&et->root); root 398 fs/f2fs/extent_cache.c en = (struct extent_node *)f2fs_lookup_rb_tree(&et->root, root 479 fs/f2fs/extent_cache.c p = f2fs_lookup_rb_tree_for_insert(sbi, &et->root, &parent, root 532 fs/f2fs/extent_cache.c en = (struct extent_node *)f2fs_lookup_rb_tree_ret(&et->root, root 347 fs/f2fs/f2fs.h struct rb_root_cached root; /* root of discard rb-tree */ root 588 fs/f2fs/f2fs.h struct rb_root_cached root; /* root of extent info rb-tree */ root 2258 fs/f2fs/f2fs.h static inline void f2fs_radix_tree_insert(struct radix_tree_root *root, root 2261 fs/f2fs/f2fs.h while (radix_tree_insert(root, index, item)) root 3531 fs/f2fs/f2fs.h struct rb_entry *f2fs_lookup_rb_tree(struct rb_root_cached *root, root 3534 fs/f2fs/f2fs.h struct rb_root_cached *root, root 3537 fs/f2fs/f2fs.h struct rb_entry *f2fs_lookup_rb_tree_ret(struct rb_root_cached *root, root 3543 fs/f2fs/f2fs.h struct rb_root_cached *root); root 978 fs/f2fs/segment.c rb_insert_color_cached(&dc->rb_node, &dcc->root, leftmost); root 990 fs/f2fs/segment.c rb_erase_cached(&dc->rb_node, &dcc->root); root 1238 fs/f2fs/segment.c p = f2fs_lookup_rb_tree_for_insert(sbi, &dcc->root, &parent, root 1306 fs/f2fs/segment.c dc = (struct discard_cmd *)f2fs_lookup_rb_tree_ret(&dcc->root, root 1417 fs/f2fs/segment.c dc = (struct discard_cmd *)f2fs_lookup_rb_tree_ret(&dcc->root, root 1495 fs/f2fs/segment.c &dcc->root)); root 1643 fs/f2fs/segment.c dc = (struct discard_cmd *)f2fs_lookup_rb_tree(&dcc->root, root 2060 fs/f2fs/segment.c dcc->root = RB_ROOT_CACHED; root 2761 fs/f2fs/segment.c &dcc->root)); root 2763 fs/f2fs/segment.c dc = (struct discard_cmd *)f2fs_lookup_rb_tree_ret(&dcc->root, root 1337 fs/f2fs/super.c static int f2fs_show_options(struct seq_file *seq, struct dentry *root) root 1339 fs/f2fs/super.c struct f2fs_sb_info *sbi = F2FS_SB(root->d_sb); root 3189 fs/f2fs/super.c struct inode *root; root 3454 fs/f2fs/super.c root = f2fs_iget(sb, F2FS_ROOT_INO(sbi)); root 3455 fs/f2fs/super.c if (IS_ERR(root)) { root 3457 fs/f2fs/super.c err = PTR_ERR(root); root 3460 fs/f2fs/super.c if (!S_ISDIR(root->i_mode) || !root->i_blocks || root 3461 fs/f2fs/super.c !root->i_size || !root->i_nlink) { root 3462 fs/f2fs/super.c iput(root); root 3467 fs/f2fs/super.c sb->s_root = d_make_root(root); /* allocate root dentry */ root 927 fs/fat/inode.c static int fat_show_options(struct seq_file *m, struct dentry *root); root 940 fs/fat/inode.c static int fat_show_options(struct seq_file *m, struct dentry *root) root 942 fs/fat/inode.c struct msdos_sb_info *sbi = MSDOS_SB(root->d_sb); root 212 fs/freevxfs/vxfs_super.c struct inode *root; root 283 fs/freevxfs/vxfs_super.c root = vxfs_iget(sbp, VXFS_ROOT_INO); root 284 fs/freevxfs/vxfs_super.c if (IS_ERR(root)) { root 285 fs/freevxfs/vxfs_super.c ret = PTR_ERR(root); root 288 fs/freevxfs/vxfs_super.c sbp->s_root = d_make_root(root); root 284 fs/fs_context.c fc->root = dget(reference); root 330 fs/fs_context.c struct super_block *sb = fc->root->d_sb; root 331 fs/fs_context.c dput(fc->root); root 332 fs/fs_context.c fc->root = NULL; root 493 fs/fs_context.c if (fc->root) { root 494 fs/fs_context.c sb = fc->root->d_sb; root 495 fs/fs_context.c dput(fc->root); root 496 fs/fs_context.c fc->root = NULL; root 645 fs/fs_context.c struct dentry *root; root 647 fs/fs_context.c root = fc->fs_type->mount(fc->fs_type, fc->sb_flags, root 649 fs/fs_context.c if (IS_ERR(root)) root 650 fs/fs_context.c return PTR_ERR(root); root 652 fs/fs_context.c sb = root->d_sb; root 655 fs/fs_context.c fc->root = root; root 665 fs/fs_context.c struct super_block *sb = fc->root->d_sb; root 22 fs/fs_struct.c old_root = fs->root; root 23 fs/fs_struct.c fs->root = *path; root 72 fs/fs_struct.c hits += replace_path(&fs->root, old_root, new_root); root 90 fs/fs_struct.c path_put(&fs->root); root 124 fs/fs_struct.c fs->root = old->root; root 125 fs/fs_struct.c path_get(&fs->root); root 235 fs/fsopen.c sb = fc->root->d_sb; root 248 fs/fsopen.c sb = fc->root->d_sb; root 556 fs/fuse/inode.c static int fuse_show_options(struct seq_file *m, struct dentry *root) root 558 fs/fuse/inode.c struct super_block *sb = root->d_sb; root 1123 fs/fuse/inode.c struct inode *root; root 1189 fs/fuse/inode.c root = fuse_get_root_inode(sb, ctx->rootmode); root 1191 fs/fuse/inode.c root_dentry = d_make_root(root); root 1201 fs/fuse/virtio_fs.c WARN_ON(fsc->root); root 1202 fs/fuse/virtio_fs.c fsc->root = dget(sb->s_root); root 1226 fs/gfs2/ops_fstype.c sdp = fc->root->d_sb->s_fs_info; root 1227 fs/gfs2/ops_fstype.c dput(fc->root); root 1229 fs/gfs2/ops_fstype.c fc->root = dget(sdp->sd_master_dir); root 1231 fs/gfs2/ops_fstype.c fc->root = dget(sdp->sd_root_dir); root 1448 fs/gfs2/ops_fstype.c struct super_block *sb = fc->root->d_sb; root 1548 fs/gfs2/ops_fstype.c struct gfs2_sbd *sdp = fc->root->d_sb->s_fs_info; root 1604 fs/gfs2/ops_fstype.c fc->root = dget(sdp->sd_master_dir); root 1041 fs/gfs2/super.c static int gfs2_show_options(struct seq_file *s, struct dentry *root) root 1043 fs/gfs2/super.c struct gfs2_sbd *sdp = root->d_sb->s_fs_info; root 1047 fs/gfs2/super.c if (is_ancestor(root, sdp->sd_master_dir)) root 107 fs/hfs/bfind.c nidx = tree->root; root 205 fs/hfs/bnode.c tree->root = 0; root 76 fs/hfs/brec.c if (!tree->root) root 149 fs/hfs/brec.c new_node->parent = tree->root; root 430 fs/hfs/brec.c new_node->parent = tree->root; root 466 fs/hfs/brec.c if (tree->root) { root 467 fs/hfs/brec.c node = hfs_bnode_find(tree, tree->root); root 477 fs/hfs/brec.c tree->root = new_node->this; root 504 fs/hfs/brec.c node->parent = tree->root; root 84 fs/hfs/btree.c tree->root = be32_to_cpu(head->root); root 174 fs/hfs/btree.c head->root = cpu_to_be32(tree->root); root 23 fs/hfs/btree.h u32 root; root 142 fs/hfs/btree.h __be32 root; /* (V) The node number of the root node */ root 134 fs/hfs/super.c static int hfs_show_options(struct seq_file *seq, struct dentry *root) root 136 fs/hfs/super.c struct hfs_sb_info *sbi = HFS_SB(root->d_sb); root 176 fs/hfsplus/bfind.c nidx = tree->root; root 370 fs/hfsplus/bnode.c tree->root = 0; root 74 fs/hfsplus/brec.c if (!tree->root) root 149 fs/hfsplus/brec.c new_node->parent = tree->root; root 434 fs/hfsplus/brec.c new_node->parent = tree->root; root 470 fs/hfsplus/brec.c if (tree->root) { root 471 fs/hfsplus/brec.c node = hfs_bnode_find(tree, tree->root); root 481 fs/hfsplus/brec.c tree->root = new_node->this; root 508 fs/hfsplus/brec.c node->parent = tree->root; root 168 fs/hfsplus/btree.c tree->root = be32_to_cpu(head->root); root 297 fs/hfsplus/btree.c head->root = cpu_to_be32(tree->root); root 79 fs/hfsplus/hfsplus_fs.h u32 root; root 503 fs/hfsplus/hfsplus_fs.h int hfsplus_show_options(struct seq_file *seq, struct dentry *root); root 169 fs/hfsplus/hfsplus_raw.h __be32 root; root 217 fs/hfsplus/options.c int hfsplus_show_options(struct seq_file *seq, struct dentry *root) root 219 fs/hfsplus/options.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(root->d_sb); root 381 fs/hfsplus/super.c struct inode *root, *inode; root 504 fs/hfsplus/super.c root = hfsplus_iget(sb, HFSPLUS_ROOT_CNID); root 505 fs/hfsplus/super.c if (IS_ERR(root)) { root 507 fs/hfsplus/super.c err = PTR_ERR(root); root 512 fs/hfsplus/super.c sb->s_root = d_make_root(root); root 555 fs/hfsplus/super.c sbi->hidden_dir = hfsplus_new_inode(sb, root, S_IFDIR); root 561 fs/hfsplus/super.c err = hfsplus_create_cat(sbi->hidden_dir->i_ino, root, root 569 fs/hfsplus/super.c root, &str); root 578 fs/hfsplus/super.c root, &str); root 94 fs/hostfs/hostfs.h extern int do_statfs(char *root, long *bsize_out, long long *blocks_out, root 87 fs/hostfs/hostfs_kern.c char *root; root 90 fs/hostfs/hostfs_kern.c root = dentry->d_sb->s_fs_info; root 91 fs/hostfs/hostfs_kern.c len = strlen(root); root 103 fs/hostfs/hostfs_kern.c strlcpy(name, root, PATH_MAX); root 251 fs/hostfs/hostfs_kern.c static int hostfs_show_options(struct seq_file *seq, struct dentry *root) root 253 fs/hostfs/hostfs_kern.c const char *root_path = root->d_sb->s_fs_info; root 386 fs/hostfs/hostfs_user.c int do_statfs(char *root, long *bsize_out, long long *blocks_out, root 394 fs/hostfs/hostfs_user.c err = statfs64(root, &buf); root 533 fs/hpfs/dnode.c int root = dnode->root_dnode; root 537 fs/hpfs/dnode.c if (hpfs_sb(i->i_sb)->sb_chk) if (root && !down) { root 545 fs/hpfs/dnode.c if (root) { root 86 fs/hpfs/hpfs.h __le32 root; /* fnode of root directory */ root 495 fs/hpfs/super.c static int hpfs_show_options(struct seq_file *seq, struct dentry *root) root 497 fs/hpfs/super.c struct hpfs_sb_info *sbi = hpfs_sb(root->d_sb); root 545 fs/hpfs/super.c struct inode *root; root 620 fs/hpfs/super.c sbi->sb_root = le32_to_cpu(superblock->root); root 709 fs/hpfs/super.c root = iget_locked(s, sbi->sb_root); root 710 fs/hpfs/super.c if (!root) root 712 fs/hpfs/super.c hpfs_init_inode(root); root 713 fs/hpfs/super.c hpfs_read_inode(root); root 714 fs/hpfs/super.c unlock_new_inode(root); root 715 fs/hpfs/super.c s->s_root = d_make_root(root); root 725 fs/hpfs/super.c de = map_dirent(root, root_dno, "\001\001", 2, NULL, &qbh); root 729 fs/hpfs/super.c root->i_atime.tv_sec = local_to_gmt(s, le32_to_cpu(de->read_date)); root 730 fs/hpfs/super.c root->i_atime.tv_nsec = 0; root 731 fs/hpfs/super.c root->i_mtime.tv_sec = local_to_gmt(s, le32_to_cpu(de->write_date)); root 732 fs/hpfs/super.c root->i_mtime.tv_nsec = 0; root 733 fs/hpfs/super.c root->i_ctime.tv_sec = local_to_gmt(s, le32_to_cpu(de->creation_date)); root 734 fs/hpfs/super.c root->i_ctime.tv_nsec = 0; root 735 fs/hpfs/super.c hpfs_i(root)->i_ea_size = le32_to_cpu(de->ea_size); root 736 fs/hpfs/super.c hpfs_i(root)->i_parent_dir = root->i_ino; root 737 fs/hpfs/super.c if (root->i_size == -1) root 738 fs/hpfs/super.c root->i_size = 2048; root 739 fs/hpfs/super.c if (root->i_blocks == -1) root 740 fs/hpfs/super.c root->i_blocks = 5; root 356 fs/hugetlbfs/inode.c hugetlb_vmdelete_list(struct rb_root_cached *root, pgoff_t start, pgoff_t end) root 364 fs/hugetlbfs/inode.c vma_interval_tree_foreach(vma, root, start, end ? end : ULONG_MAX) { root 924 fs/hugetlbfs/inode.c static int hugetlbfs_show_options(struct seq_file *m, struct dentry *root) root 926 fs/hugetlbfs/inode.c struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(root->d_sb); root 63 fs/internal.h struct path *path, struct path *root); root 486 fs/isofs/inode.c static int isofs_show_options(struct seq_file *m, struct dentry *root) root 488 fs/isofs/inode.c struct isofs_sb_info *sbi = ISOFS_SB(root->d_sb); root 504 fs/isofs/inode.c if (root->d_sb->s_blocksize != 1024) root 505 fs/isofs/inode.c seq_printf(m, ",blocksize=%lu", root->d_sb->s_blocksize); root 169 fs/jffs2/nodelist.c static int no_overlapping_node(struct jffs2_sb_info *c, struct rb_root *root, root 193 fs/jffs2/nodelist.c rb_link_node(&holefrag->rb, NULL, &root->rb_node); root 195 fs/jffs2/nodelist.c rb_insert_color(&holefrag->rb, root); root 207 fs/jffs2/nodelist.c rb_link_node(&newfrag->rb, NULL, &root->rb_node); root 209 fs/jffs2/nodelist.c rb_insert_color(&newfrag->rb, root); root 215 fs/jffs2/nodelist.c static int jffs2_add_frag_to_fragtree(struct jffs2_sb_info *c, struct rb_root *root, struct jffs2_node_frag *newfrag) root 221 fs/jffs2/nodelist.c this = jffs2_lookup_node_frag(root, newfrag->node->ofs); root 246 fs/jffs2/nodelist.c return no_overlapping_node(c, root, newfrag, this, lastend); root 298 fs/jffs2/nodelist.c rb_insert_color(&newfrag->rb, root); root 301 fs/jffs2/nodelist.c rb_insert_color(&newfrag2->rb, root); root 310 fs/jffs2/nodelist.c rb_insert_color(&newfrag->rb, root); root 317 fs/jffs2/nodelist.c rb_replace_node(&this->rb, &newfrag->rb, root); root 327 fs/jffs2/nodelist.c rb_insert_color(&this->rb, root); root 338 fs/jffs2/nodelist.c rb_erase(&this->rb, root); root 565 fs/jffs2/nodelist.c void jffs2_kill_fragtree(struct rb_root *root, struct jffs2_sb_info *c) root 570 fs/jffs2/nodelist.c rbtree_postorder_for_each_entry_safe(frag, next, root, rb) { root 327 fs/jffs2/nodelist.h static inline struct jffs2_node_frag *frag_first(struct rb_root *root) root 329 fs/jffs2/nodelist.h struct rb_node *node = rb_first(root); root 337 fs/jffs2/nodelist.h static inline struct jffs2_node_frag *frag_last(struct rb_root *root) root 339 fs/jffs2/nodelist.h struct rb_node *node = rb_last(root); root 372 fs/jffs2/nodelist.h void jffs2_kill_fragtree(struct rb_root *root, struct jffs2_sb_info *c_delete); root 402 fs/jffs2/readinode.c static void eat_last(struct rb_root *root, struct rb_node *node) root 411 fs/jffs2/readinode.c link = &root->rb_node; root 84 fs/jffs2/super.c static int jffs2_show_options(struct seq_file *s, struct dentry *root) root 86 fs/jffs2/super.c struct jffs2_sb_info *c = JFFS2_SB_INFO(root->d_sb); root 226 fs/jffs2/super.c struct super_block *sb = fc->root->d_sb; root 697 fs/jfs/super.c static int jfs_show_options(struct seq_file *seq, struct dentry *root) root 699 fs/jfs/super.c struct jfs_sb_info *sbi = JFS_SBI(root->d_sb); root 460 fs/kernfs/dir.c struct kernfs_root *root = kernfs_root(kn); root 474 fs/kernfs/dir.c wait_event(root->deactivate_waitq, root 509 fs/kernfs/dir.c struct kernfs_root *root; root 517 fs/kernfs/dir.c root = kernfs_root(kn); root 539 fs/kernfs/dir.c idr_remove(&root->ino_idr, kn->id.ino); root 549 fs/kernfs/dir.c idr_destroy(&root->ino_idr); root 550 fs/kernfs/dir.c kfree(root); root 617 fs/kernfs/dir.c static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root, root 637 fs/kernfs/dir.c ret = idr_alloc_cyclic(&root->ino_idr, kn, 1, 0, GFP_ATOMIC); root 638 fs/kernfs/dir.c if (ret >= 0 && ret < root->last_ino) root 639 fs/kernfs/dir.c root->next_generation++; root 640 fs/kernfs/dir.c gen = root->next_generation; root 641 fs/kernfs/dir.c root->last_ino = ret; root 682 fs/kernfs/dir.c idr_remove(&root->ino_idr, kn->id.ino); root 714 fs/kernfs/dir.c struct kernfs_node *kernfs_find_and_get_node_by_ino(struct kernfs_root *root, root 720 fs/kernfs/dir.c kn = idr_find(&root->ino_idr, ino); root 955 fs/kernfs/dir.c struct kernfs_root *root; root 958 fs/kernfs/dir.c root = kzalloc(sizeof(*root), GFP_KERNEL); root 959 fs/kernfs/dir.c if (!root) root 962 fs/kernfs/dir.c idr_init(&root->ino_idr); root 963 fs/kernfs/dir.c INIT_LIST_HEAD(&root->supers); root 964 fs/kernfs/dir.c root->next_generation = 1; root 966 fs/kernfs/dir.c kn = __kernfs_new_node(root, NULL, "", S_IFDIR | S_IRUGO | S_IXUGO, root 970 fs/kernfs/dir.c idr_destroy(&root->ino_idr); root 971 fs/kernfs/dir.c kfree(root); root 976 fs/kernfs/dir.c kn->dir.root = root; root 978 fs/kernfs/dir.c root->syscall_ops = scops; root 979 fs/kernfs/dir.c root->flags = flags; root 980 fs/kernfs/dir.c root->kn = kn; root 981 fs/kernfs/dir.c init_waitqueue_head(&root->deactivate_waitq); root 983 fs/kernfs/dir.c if (!(root->flags & KERNFS_ROOT_CREATE_DEACTIVATED)) root 986 fs/kernfs/dir.c return root; root 996 fs/kernfs/dir.c void kernfs_destroy_root(struct kernfs_root *root) root 998 fs/kernfs/dir.c kernfs_remove(root->kn); /* will also free @root */ root 1027 fs/kernfs/dir.c kn->dir.root = parent->dir.root; root 1060 fs/kernfs/dir.c kn->dir.root = parent->dir.root; root 1221 fs/kernfs/dir.c struct kernfs_node *root) root 1229 fs/kernfs/dir.c return kernfs_leftmost_descendant(root); root 1232 fs/kernfs/dir.c if (pos == root) root 619 fs/kernfs/file.c struct kernfs_root *root = kernfs_root(kn); root 635 fs/kernfs/file.c if (root->flags & KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK) { root 47 fs/kernfs/kernfs-internal.h return kn->dir.root; root 60 fs/kernfs/kernfs-internal.h struct kernfs_root *root; root 112 fs/kernfs/kernfs-internal.h struct kernfs_node *kernfs_find_and_get_node_by_ino(struct kernfs_root *root, root 26 fs/kernfs/mount.c struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry)); root 27 fs/kernfs/mount.c struct kernfs_syscall_ops *scops = root->syscall_ops; root 30 fs/kernfs/mount.c return scops->show_options(sf, root); root 37 fs/kernfs/mount.c struct kernfs_root *root = kernfs_root(node); root 38 fs/kernfs/mount.c struct kernfs_syscall_ops *scops = root->syscall_ops; root 41 fs/kernfs/mount.c return scops->show_path(sf, node, root); root 60 fs/kernfs/mount.c struct kernfs_node *kernfs_get_node_by_id(struct kernfs_root *root, root 65 fs/kernfs/mount.c kn = kernfs_find_and_get_node_by_ino(root, id->ino); root 85 fs/kernfs/mount.c kn = kernfs_find_and_get_node_by_ino(info->root, ino); root 138 fs/kernfs/mount.c return kernfs_info(sb)->root; root 217 fs/kernfs/mount.c struct dentry *root; root 227 fs/kernfs/mount.c if (info->root->flags & KERNFS_ROOT_SUPPORT_EXPORTOP) root 236 fs/kernfs/mount.c inode = kernfs_get_inode(sb, info->root->kn); root 244 fs/kernfs/mount.c root = d_make_root(inode); root 245 fs/kernfs/mount.c if (!root) { root 249 fs/kernfs/mount.c sb->s_root = root; root 259 fs/kernfs/mount.c return sb_info->root == info->root && sb_info->ns == info->ns; root 303 fs/kernfs/mount.c info->root = kfc->root; root 325 fs/kernfs/mount.c list_add(&info->node, &info->root->supers); root 329 fs/kernfs/mount.c fc->root = dget(sb->s_root); root 249 fs/libfs.c struct inode *root; root 258 fs/libfs.c root = new_inode(s); root 259 fs/libfs.c if (!root) root 267 fs/libfs.c root->i_ino = 1; root 268 fs/libfs.c root->i_mode = S_IFDIR | S_IRUSR | S_IWUSR; root 269 fs/libfs.c root->i_atime = root->i_mtime = root->i_ctime = current_time(root); root 270 fs/libfs.c s->s_root = d_make_root(root); root 536 fs/libfs.c struct dentry *root; root 559 fs/libfs.c root = d_make_root(inode); root 560 fs/libfs.c if (!root) root 572 fs/libfs.c dentry = d_alloc_name(root, files->name); root 586 fs/libfs.c s->s_root = root; root 589 fs/libfs.c d_genocide(root); root 590 fs/libfs.c shrink_dcache_parent(root); root 591 fs/libfs.c dput(root); root 11 fs/mount.h struct mount * root; root 134 fs/mount.h struct path root; root 491 fs/namei.c struct path root; root 600 fs/namei.c path_put(&nd->root); root 644 fs/namei.c if (!nd->root.mnt || (nd->flags & LOOKUP_ROOT)) root 647 fs/namei.c return legitimize_path(nd, &nd->root, nd->root_seq); root 780 fs/namei.c nd->root.mnt = NULL; root 810 fs/namei.c nd->root = fs->root; root 811 fs/namei.c nd->root_seq = __read_seqcount_begin(&nd->root.dentry->d_seq); root 814 fs/namei.c get_fs_root(fs, &nd->root); root 842 fs/namei.c nd->path = nd->root; root 850 fs/namei.c nd->path = nd->root; root 1083 fs/namei.c if (!nd->root.mnt) root 1349 fs/namei.c if (path_equal(&nd->path, &nd->root)) root 1477 fs/namei.c if (path_equal(&nd->path, &nd->root)) root 1701 fs/namei.c if (!nd->root.mnt) root 2176 fs/namei.c struct dentry *root = nd->root.dentry; root 2177 fs/namei.c struct inode *inode = root->d_inode; root 2178 fs/namei.c if (*s && unlikely(!d_can_lookup(root))) root 2180 fs/namei.c nd->path = nd->root; root 2192 fs/namei.c nd->root.mnt = NULL; root 2328 fs/namei.c struct path *path, struct path *root) root 2334 fs/namei.c if (unlikely(root)) { root 2335 fs/namei.c nd.root = *root; root 2442 fs/namei.c struct path root = {.mnt = mnt, .dentry = dentry}; root 2445 fs/namei.c flags , path, &root); root 3575 fs/namei.c nd.root.mnt = mnt; root 3576 fs/namei.c nd.root.dentry = dentry; root 898 fs/namespace.c static struct mount *next_mnt(struct mount *p, struct mount *root) root 903 fs/namespace.c if (p == root) root 937 fs/namespace.c if (!fc->root) root 947 fs/namespace.c atomic_inc(&fc->root->d_sb->s_active); root 948 fs/namespace.c mnt->mnt.mnt_sb = fc->root->d_sb; root 949 fs/namespace.c mnt->mnt.mnt_root = dget(fc->root); root 964 fs/namespace.c up_write(&fc->root->d_sb->s_umount); root 1016 fs/namespace.c static struct mount *clone_mnt(struct mount *old, struct dentry *root, root 1043 fs/namespace.c mnt->mnt.mnt_root = dget(root); root 1522 fs/namespace.c if (&mnt->mnt == current->fs->root.mnt || root 1564 fs/namespace.c if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { root 1887 fs/namespace.c struct vfsmount *root) root 1890 fs/namespace.c int res = f(root, arg); root 1893 fs/namespace.c list_for_each_entry(mnt, &real_mount(root)->mnt_list, mnt_list) { root 2343 fs/namespace.c ns->root = mnt; root 2751 fs/namespace.c struct super_block *sb = fc->root->d_sb; root 3229 fs/namespace.c old = ns->root; root 3251 fs/namespace.c new_ns->root = new; root 3265 fs/namespace.c if (&p->mnt == new_fs->root.mnt) { root 3266 fs/namespace.c new_fs->root.mnt = mntget(&q->mnt); root 3305 fs/namespace.c ns->root = mnt; root 3438 fs/namespace.c if (!fc->root) root 3442 fs/namespace.c if (mount_too_revealing(fc->root->d_sb, &mnt_flags)) { root 3460 fs/namespace.c newmount.dentry = dget(fc->root); root 3477 fs/namespace.c ns->root = mnt; root 3572 fs/namespace.c const struct path *root) root 3574 fs/namespace.c while (&mnt->mnt != root->mnt && mnt_has_parent(mnt)) { root 3578 fs/namespace.c return &mnt->mnt == root->mnt && is_subdir(dentry, root->dentry); root 3619 fs/namespace.c struct path new, old, root; root 3641 fs/namespace.c get_fs_root(current->fs, &root); root 3649 fs/namespace.c root_mnt = real_mount(root.mnt); root 3668 fs/namespace.c if (root.mnt->mnt_root != root.dentry) root 3680 fs/namespace.c if (!is_path_reachable(new_mnt, new.dentry, &root)) root 3699 fs/namespace.c chroot_fs_refs(&root, &new); root 3706 fs/namespace.c path_put(&root); root 3720 fs/namespace.c struct path root; root 3731 fs/namespace.c ns->root = m; root 3737 fs/namespace.c root.mnt = mnt; root 3738 fs/namespace.c root.dentry = mnt->mnt_root; root 3741 fs/namespace.c set_fs_pwd(current->fs, &root); root 3742 fs/namespace.c set_fs_root(current->fs, &root); root 3784 fs/namespace.c drop_collected_mounts(&ns->root->mnt); root 3827 fs/namespace.c ns_root.mnt = ¤t->nsproxy->mnt_ns->root->mnt; root 3968 fs/namespace.c struct path root; root 3987 fs/namespace.c err = vfs_path_lookup(mnt_ns->root->mnt.mnt_root, &mnt_ns->root->mnt, root 3988 fs/namespace.c "/", LOOKUP_DOWN, &root); root 3999 fs/namespace.c set_fs_pwd(fs, &root); root 4000 fs/namespace.c set_fs_root(fs, &root); root 4002 fs/namespace.c path_put(&root); root 19 fs/nfs/blocklayout/extent_tree.c ext_tree_first(struct rb_root *root) root 21 fs/nfs/blocklayout/extent_tree.c struct rb_node *node = rb_first(root); root 46 fs/nfs/blocklayout/extent_tree.c __ext_tree_search(struct rb_root *root, sector_t start) root 48 fs/nfs/blocklayout/extent_tree.c struct rb_node *node = root->rb_node; root 95 fs/nfs/blocklayout/extent_tree.c ext_try_to_merge_left(struct rb_root *root, struct pnfs_block_extent *be) root 101 fs/nfs/blocklayout/extent_tree.c rb_erase(&be->be_node, root); root 111 fs/nfs/blocklayout/extent_tree.c ext_try_to_merge_right(struct rb_root *root, struct pnfs_block_extent *be) root 117 fs/nfs/blocklayout/extent_tree.c rb_erase(&right->be_node, root); root 136 fs/nfs/blocklayout/extent_tree.c __ext_tree_insert(struct rb_root *root, root 139 fs/nfs/blocklayout/extent_tree.c struct rb_node **p = &root->rb_node, *parent = NULL; root 152 fs/nfs/blocklayout/extent_tree.c be = ext_try_to_merge_left(root, be); root 159 fs/nfs/blocklayout/extent_tree.c be = ext_try_to_merge_right(root, be); root 169 fs/nfs/blocklayout/extent_tree.c rb_insert_color(&new->be_node, root); root 177 fs/nfs/blocklayout/extent_tree.c __ext_tree_remove(struct rb_root *root, root 185 fs/nfs/blocklayout/extent_tree.c be = __ext_tree_search(root, start); root 219 fs/nfs/blocklayout/extent_tree.c __ext_tree_insert(root, new, true); root 237 fs/nfs/blocklayout/extent_tree.c rb_erase(&be->be_node, root); root 258 fs/nfs/blocklayout/extent_tree.c struct rb_root *root; root 264 fs/nfs/blocklayout/extent_tree.c root = &bl->bl_ext_rw; root 268 fs/nfs/blocklayout/extent_tree.c root = &bl->bl_ext_ro; root 277 fs/nfs/blocklayout/extent_tree.c be = __ext_tree_search(root, new->be_f_offset); root 279 fs/nfs/blocklayout/extent_tree.c __ext_tree_insert(root, new, true); root 295 fs/nfs/blocklayout/extent_tree.c __ext_tree_insert(root, new, true); root 309 fs/nfs/blocklayout/extent_tree.c __ext_tree_insert(root, split, true); root 322 fs/nfs/blocklayout/extent_tree.c __ext_tree_lookup(struct rb_root *root, sector_t isect, root 328 fs/nfs/blocklayout/extent_tree.c node = root->rb_node; root 380 fs/nfs/blocklayout/extent_tree.c ext_tree_split(struct rb_root *root, struct pnfs_block_extent *be, root 400 fs/nfs/blocklayout/extent_tree.c __ext_tree_insert(root, new, false); root 408 fs/nfs/blocklayout/extent_tree.c struct rb_root *root = &bl->bl_ext_rw; root 425 fs/nfs/blocklayout/extent_tree.c for (be = __ext_tree_search(root, start); be; be = ext_tree_next(be)) { root 444 fs/nfs/blocklayout/extent_tree.c err = ext_tree_split(root, be, start); root 462 fs/nfs/blocklayout/extent_tree.c err = ext_tree_split(root, be, end); root 470 fs/nfs/blocklayout/extent_tree.c be = ext_try_to_merge_left(root, be); root 471 fs/nfs/blocklayout/extent_tree.c be = ext_try_to_merge_right(root, be); root 618 fs/nfs/blocklayout/extent_tree.c struct rb_root *root = &bl->bl_ext_rw; root 626 fs/nfs/blocklayout/extent_tree.c for (be = ext_tree_first(root); be; be = ext_tree_next(be)) { root 643 fs/nfs/blocklayout/extent_tree.c be = ext_try_to_merge_left(root, be); root 644 fs/nfs/blocklayout/extent_tree.c be = ext_try_to_merge_right(root, be); root 726 fs/nfs/super.c int nfs_show_options(struct seq_file *m, struct dentry *root) root 728 fs/nfs/super.c struct nfs_server *nfss = NFS_SB(root->d_sb); root 795 fs/nfs/super.c int nfs_show_devname(struct seq_file *m, struct dentry *root) root 802 fs/nfs/super.c devname = nfs_path(&dummy, root, page, PAGE_SIZE, 0); root 822 fs/nfs/super.c int nfs_show_stats(struct seq_file *m, struct dentry *root) root 825 fs/nfs/super.c struct nfs_server *nfss = NFS_SB(root->d_sb); root 835 fs/nfs/super.c seq_puts(m, sb_rdonly(root->d_sb) ? "ro" : "rw"); root 836 fs/nfs/super.c seq_puts(m, root->d_sb->s_flags & SB_SYNCHRONOUS ? ",sync" : ""); root 837 fs/nfs/super.c seq_puts(m, root->d_sb->s_flags & SB_NOATIME ? ",noatime" : ""); root 838 fs/nfs/super.c seq_puts(m, root->d_sb->s_flags & SB_NODIRATIME ? ",nodiratime" : ""); root 2027 fs/nfs/super.c data->root.size = NFS2_FHSIZE; root 2028 fs/nfs/super.c memcpy(data->root.data, data->old_root.data, NFS2_FHSIZE); root 2041 fs/nfs/super.c if (data->root.size > NFS3_FHSIZE || data->root.size == 0) root 2043 fs/nfs/super.c mntfh->size = data->root.size; root 2051 fs/nfs/super.c memcpy(mntfh->data, data->root.data, mntfh->size); root 2634 fs/nfsd/nfs4state.c add_clp_to_name_tree(struct nfs4_client *new_clp, struct rb_root *root) root 2636 fs/nfsd/nfs4state.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 2650 fs/nfsd/nfs4state.c rb_insert_color(&new_clp->cl_namenode, root); root 2654 fs/nfsd/nfs4state.c find_clp_in_name_tree(struct xdr_netobj *name, struct rb_root *root) root 2657 fs/nfsd/nfs4state.c struct rb_node *node = root->rb_node; root 2145 fs/nfsd/nfs4xdr.c const struct path *root, root 2161 fs/nfsd/nfs4xdr.c if (path_equal(&cur, root)) root 1252 fs/nfsd/nfsctl.c static void nfsdfs_remove_files(struct dentry *root) root 1256 fs/nfsd/nfsctl.c list_for_each_entry_safe(dentry, tmp, &root->d_subdirs, d_child) { root 1261 fs/nfsd/nfsctl.c nfsdfs_remove_file(d_inode(root), dentry); root 1267 fs/nfsd/nfsctl.c static int nfsdfs_create_files(struct dentry *root, root 1270 fs/nfsd/nfsctl.c struct inode *dir = d_inode(root); root 1279 fs/nfsd/nfsctl.c dentry = d_alloc_name(root, files->name); root 1282 fs/nfsd/nfsctl.c inode = nfsd_get_inode(d_inode(root)->i_sb, root 1296 fs/nfsd/nfsctl.c nfsdfs_remove_files(root); root 972 fs/nilfs2/btree.c struct nilfs_btree_node *root, *child; root 975 fs/nilfs2/btree.c root = nilfs_btree_get_root(btree); root 979 fs/nilfs2/btree.c n = nilfs_btree_node_get_nchildren(root); root 981 fs/nilfs2/btree.c nilfs_btree_node_move_right(root, child, n, root 983 fs/nilfs2/btree.c nilfs_btree_node_set_level(root, level + 1); root 1393 fs/nilfs2/btree.c struct nilfs_btree_node *root, *child; root 1398 fs/nilfs2/btree.c root = nilfs_btree_get_root(btree); root 1402 fs/nilfs2/btree.c nilfs_btree_node_delete(root, 0, NULL, NULL, root 1404 fs/nilfs2/btree.c nilfs_btree_node_set_level(root, level); root 1406 fs/nilfs2/btree.c nilfs_btree_node_move_left(root, child, n, root 1640 fs/nilfs2/btree.c struct nilfs_btree_node *root, *node; root 1645 fs/nilfs2/btree.c root = nilfs_btree_get_root(btree); root 1649 fs/nilfs2/btree.c node = root; root 1652 fs/nilfs2/btree.c nchildren = nilfs_btree_node_get_nchildren(root); root 1655 fs/nilfs2/btree.c ptr = nilfs_btree_node_get_ptr(root, nchildren - 1, root 1680 fs/nilfs2/btree.c struct nilfs_btree_node *node, *root; root 1686 fs/nilfs2/btree.c root = nilfs_btree_get_root(btree); root 1690 fs/nilfs2/btree.c node = root; root 1694 fs/nilfs2/btree.c nchildren = nilfs_btree_node_get_nchildren(root); root 1696 fs/nilfs2/btree.c ptr = nilfs_btree_node_get_ptr(root, nchildren - 1, root 180 fs/nilfs2/ifile.c int nilfs_ifile_read(struct super_block *sb, struct nilfs_root *root, root 187 fs/nilfs2/ifile.c ifile = nilfs_iget_locked(sb, root, NILFS_IFILE_INO); root 41 fs/nilfs2/ifile.h int nilfs_ifile_read(struct super_block *sb, struct nilfs_root *root, root 35 fs/nilfs2/inode.c struct nilfs_root *root; root 43 fs/nilfs2/inode.c struct nilfs_root *root = NILFS_I(inode)->i_root; root 46 fs/nilfs2/inode.c if (root) root 47 fs/nilfs2/inode.c atomic64_add(n, &root->blocks_count); root 52 fs/nilfs2/inode.c struct nilfs_root *root = NILFS_I(inode)->i_root; root 55 fs/nilfs2/inode.c if (root) root 56 fs/nilfs2/inode.c atomic64_sub(n, &root->blocks_count); root 321 fs/nilfs2/inode.c struct nilfs_root *root, root 325 fs/nilfs2/inode.c .ino = ino, .root = root, .cno = 0, .for_gc = 0 root 337 fs/nilfs2/inode.c struct nilfs_root *root; root 348 fs/nilfs2/inode.c root = NILFS_I(dir)->i_root; root 351 fs/nilfs2/inode.c ii->i_root = root; root 353 fs/nilfs2/inode.c err = nilfs_ifile_create_inode(root->ifile, &ino, &ii->i_bh); root 358 fs/nilfs2/inode.c atomic64_inc(&root->inodes_count); root 382 fs/nilfs2/inode.c if (nilfs_insert_inode_locked(inode, root, ino) < 0) { root 474 fs/nilfs2/inode.c struct nilfs_root *root, unsigned long ino, root 483 fs/nilfs2/inode.c err = nilfs_ifile_get_inode_block(root->ifile, ino, &bh); root 487 fs/nilfs2/inode.c raw_inode = nilfs_ifile_map_inode(root->ifile, ino, bh); root 511 fs/nilfs2/inode.c nilfs_ifile_unmap_inode(root->ifile, ino, bh); root 520 fs/nilfs2/inode.c nilfs_ifile_unmap_inode(root->ifile, ino, bh); root 533 fs/nilfs2/inode.c if (args->ino != inode->i_ino || args->root != NILFS_I(inode)->i_root) root 553 fs/nilfs2/inode.c if (args->root && args->ino == NILFS_ROOT_INO) root 554 fs/nilfs2/inode.c nilfs_get_root(args->root); root 555 fs/nilfs2/inode.c NILFS_I(inode)->i_root = args->root; root 560 fs/nilfs2/inode.c struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root, root 564 fs/nilfs2/inode.c .ino = ino, .root = root, .cno = 0, .for_gc = 0 root 570 fs/nilfs2/inode.c struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root, root 574 fs/nilfs2/inode.c .ino = ino, .root = root, .cno = 0, .for_gc = 0 root 580 fs/nilfs2/inode.c struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root, root 586 fs/nilfs2/inode.c inode = nilfs_iget_locked(sb, root, ino); root 592 fs/nilfs2/inode.c err = __nilfs_read_inode(sb, root, ino, inode); root 605 fs/nilfs2/inode.c .ino = ino, .root = NULL, .cno = cno, .for_gc = 1 root 856 fs/nilfs2/inode.c struct nilfs_root *root = NILFS_I(inode)->i_root; root 858 fs/nilfs2/inode.c if ((mask & MAY_WRITE) && root && root 859 fs/nilfs2/inode.c root->cno != NILFS_CPTREE_CURRENT_CNO) root 441 fs/nilfs2/namei.c struct nilfs_root *root; root 447 fs/nilfs2/namei.c root = NILFS_I(d_inode(child))->i_root; root 449 fs/nilfs2/namei.c inode = nilfs_iget(child->d_sb, root, ino); root 459 fs/nilfs2/namei.c struct nilfs_root *root; root 465 fs/nilfs2/namei.c root = nilfs_lookup_root(sb->s_fs_info, cno); root 466 fs/nilfs2/namei.c if (!root) root 469 fs/nilfs2/namei.c inode = nilfs_iget(sb, root, ino); root 470 fs/nilfs2/namei.c nilfs_put_root(root); root 510 fs/nilfs2/namei.c struct nilfs_root *root = NILFS_I(inode)->i_root; root 522 fs/nilfs2/namei.c fid->cno = root->cno; root 259 fs/nilfs2/nilfs.h struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root, root 261 fs/nilfs2/nilfs.h struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root, root 263 fs/nilfs2/nilfs.h struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root, root 335 fs/nilfs2/nilfs.h struct nilfs_root **root); root 493 fs/nilfs2/recovery.c struct nilfs_root *root, root 505 fs/nilfs2/recovery.c inode = nilfs_iget(sb, root, rb->ino); root 569 fs/nilfs2/recovery.c struct nilfs_root *root, root 640 fs/nilfs2/recovery.c nilfs, sb, root, &dsync_blocks, root 734 fs/nilfs2/recovery.c struct nilfs_root *root; root 740 fs/nilfs2/recovery.c err = nilfs_attach_checkpoint(sb, ri->ri_cno, true, &root); root 747 fs/nilfs2/recovery.c err = nilfs_do_roll_forward(nilfs, sb, root, ri); root 760 fs/nilfs2/recovery.c err = nilfs_attach_log_writer(sb, root); root 779 fs/nilfs2/recovery.c nilfs_put_root(root); root 811 fs/nilfs2/segment.c struct nilfs_root *root) root 815 fs/nilfs2/segment.c if (nilfs_mdt_fetch_dirty(root->ifile)) root 2645 fs/nilfs2/segment.c struct nilfs_root *root) root 2656 fs/nilfs2/segment.c nilfs_get_root(root); root 2657 fs/nilfs2/segment.c sci->sc_root = root; root 2765 fs/nilfs2/segment.c int nilfs_attach_log_writer(struct super_block *sb, struct nilfs_root *root) root 2779 fs/nilfs2/segment.c nilfs->ns_writer = nilfs_segctor_new(sb, root); root 237 fs/nilfs2/segment.h int nilfs_attach_log_writer(struct super_block *sb, struct nilfs_root *root); root 508 fs/nilfs2/super.c struct nilfs_root *root; root 513 fs/nilfs2/super.c root = nilfs_find_or_create_root( root 515 fs/nilfs2/super.c if (!root) root 518 fs/nilfs2/super.c if (root->ifile) root 535 fs/nilfs2/super.c err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size, root 536 fs/nilfs2/super.c &raw_cp->cp_ifile_inode, &root->ifile); root 540 fs/nilfs2/super.c atomic64_set(&root->inodes_count, root 542 fs/nilfs2/super.c atomic64_set(&root->blocks_count, root 548 fs/nilfs2/super.c *rootp = root; root 554 fs/nilfs2/super.c nilfs_put_root(root); root 590 fs/nilfs2/super.c struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root; root 591 fs/nilfs2/super.c struct the_nilfs *nilfs = root->nilfs; root 622 fs/nilfs2/super.c err = nilfs_ifile_count_free_inodes(root->ifile, root 634 fs/nilfs2/super.c nmaxinodes = atomic64_read(&root->inodes_count); root 660 fs/nilfs2/super.c struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root; root 664 fs/nilfs2/super.c if (root->cno != NILFS_CPTREE_CURRENT_CNO) root 665 fs/nilfs2/super.c seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); root 894 fs/nilfs2/super.c struct nilfs_root *root, root 901 fs/nilfs2/super.c inode = nilfs_iget(sb, root, NILFS_ROOT_INO); root 914 fs/nilfs2/super.c if (root->cno == NILFS_CPTREE_CURRENT_CNO) { root 945 fs/nilfs2/super.c struct nilfs_root *root; root 964 fs/nilfs2/super.c ret = nilfs_attach_checkpoint(s, cno, false, &root); root 971 fs/nilfs2/super.c ret = nilfs_get_root_dentry(s, root, root_dentry); root 972 fs/nilfs2/super.c nilfs_put_root(root); root 993 fs/nilfs2/super.c struct nilfs_root *root; root 1005 fs/nilfs2/super.c root = nilfs_lookup_root(nilfs, cno); root 1006 fs/nilfs2/super.c if (root) { root 1007 fs/nilfs2/super.c inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO); root 1016 fs/nilfs2/super.c nilfs_put_root(root); root 1146 fs/nilfs2/super.c struct nilfs_root *root; root 1167 fs/nilfs2/super.c root = NILFS_I(d_inode(sb->s_root))->i_root; root 1168 fs/nilfs2/super.c err = nilfs_attach_log_writer(sb, root); root 111 fs/nilfs2/sysfs.c struct nilfs_root *root, char *buf) root 114 fs/nilfs2/sysfs.c (unsigned long long)atomic64_read(&root->inodes_count)); root 119 fs/nilfs2/sysfs.c struct nilfs_root *root, char *buf) root 122 fs/nilfs2/sysfs.c (unsigned long long)atomic64_read(&root->blocks_count)); root 132 fs/nilfs2/sysfs.c struct nilfs_root *root, char *buf) root 151 fs/nilfs2/sysfs.c struct nilfs_root *root = root 156 fs/nilfs2/sysfs.c return a->show ? a->show(a, root, buf) : 0; root 163 fs/nilfs2/sysfs.c struct nilfs_root *root = root 168 fs/nilfs2/sysfs.c return a->store ? a->store(a, root, buf, len) : 0; root 173 fs/nilfs2/sysfs.c struct nilfs_root *root = container_of(kobj, struct nilfs_root, root 175 fs/nilfs2/sysfs.c complete(&root->snapshot_kobj_unregister); root 189 fs/nilfs2/sysfs.c int nilfs_sysfs_create_snapshot_group(struct nilfs_root *root) root 195 fs/nilfs2/sysfs.c nilfs = root->nilfs; root 197 fs/nilfs2/sysfs.c root->snapshot_kobj.kset = nilfs_kset; root 198 fs/nilfs2/sysfs.c init_completion(&root->snapshot_kobj_unregister); root 200 fs/nilfs2/sysfs.c if (root->cno == NILFS_CPTREE_CURRENT_CNO) { root 201 fs/nilfs2/sysfs.c err = kobject_init_and_add(&root->snapshot_kobj, root 206 fs/nilfs2/sysfs.c err = kobject_init_and_add(&root->snapshot_kobj, root 209 fs/nilfs2/sysfs.c "%llu", root->cno); root 218 fs/nilfs2/sysfs.c void nilfs_sysfs_delete_snapshot_group(struct nilfs_root *root) root 220 fs/nilfs2/sysfs.c kobject_del(&root->snapshot_kobj); root 719 fs/nilfs2/the_nilfs.c struct nilfs_root *root; root 724 fs/nilfs2/the_nilfs.c root = rb_entry(n, struct nilfs_root, rb_node); root 726 fs/nilfs2/the_nilfs.c if (cno < root->cno) { root 728 fs/nilfs2/the_nilfs.c } else if (cno > root->cno) { root 731 fs/nilfs2/the_nilfs.c refcount_inc(&root->count); root 733 fs/nilfs2/the_nilfs.c return root; root 745 fs/nilfs2/the_nilfs.c struct nilfs_root *root, *new; root 748 fs/nilfs2/the_nilfs.c root = nilfs_lookup_root(nilfs, cno); root 749 fs/nilfs2/the_nilfs.c if (root) root 750 fs/nilfs2/the_nilfs.c return root; root 752 fs/nilfs2/the_nilfs.c new = kzalloc(sizeof(*root), GFP_KERNEL); root 763 fs/nilfs2/the_nilfs.c root = rb_entry(parent, struct nilfs_root, rb_node); root 765 fs/nilfs2/the_nilfs.c if (cno < root->cno) { root 767 fs/nilfs2/the_nilfs.c } else if (cno > root->cno) { root 770 fs/nilfs2/the_nilfs.c refcount_inc(&root->count); root 773 fs/nilfs2/the_nilfs.c return root; root 798 fs/nilfs2/the_nilfs.c void nilfs_put_root(struct nilfs_root *root) root 800 fs/nilfs2/the_nilfs.c if (refcount_dec_and_test(&root->count)) { root 801 fs/nilfs2/the_nilfs.c struct the_nilfs *nilfs = root->nilfs; root 803 fs/nilfs2/the_nilfs.c nilfs_sysfs_delete_snapshot_group(root); root 806 fs/nilfs2/the_nilfs.c rb_erase(&root->rb_node, &nilfs->ns_cptree); root 808 fs/nilfs2/the_nilfs.c iput(root->ifile); root 810 fs/nilfs2/the_nilfs.c kfree(root); root 286 fs/nilfs2/the_nilfs.h void nilfs_put_root(struct nilfs_root *root); root 292 fs/nilfs2/the_nilfs.h static inline void nilfs_get_root(struct nilfs_root *root) root 294 fs/nilfs2/the_nilfs.h refcount_inc(&root->count); root 2280 fs/ntfs/inode.c int ntfs_show_options(struct seq_file *sf, struct dentry *root) root 2282 fs/ntfs/inode.c ntfs_volume *vol = NTFS_SB(root->d_sb); root 287 fs/ntfs/inode.h extern int ntfs_show_options(struct seq_file *sf, struct dentry *root); root 532 fs/ocfs2/refcounttree.c struct rb_root *root = &osb->osb_rf_lock_tree; root 534 fs/ocfs2/refcounttree.c while ((node = rb_last(root)) != NULL) { root 540 fs/ocfs2/refcounttree.c rb_erase(&tree->rf_node, root); root 309 fs/ocfs2/reservations.c struct rb_root *root = &resmap->m_reservations; root 311 fs/ocfs2/reservations.c struct rb_node **p = &root->rb_node; root 341 fs/ocfs2/reservations.c rb_insert_color(&new->r_node, root); root 466 fs/ocfs2/reservations.c struct rb_root *root = &resmap->m_reservations; root 482 fs/ocfs2/reservations.c goal, wanted, RB_EMPTY_ROOT(root)); root 486 fs/ocfs2/reservations.c if (RB_EMPTY_ROOT(root)) { root 529 fs/ocfs2/reservations.c next = rb_first(root); root 93 fs/ocfs2/super.c static int ocfs2_show_options(struct seq_file *s, struct dentry *root); root 974 fs/ocfs2/super.c struct dentry *root; root 1103 fs/ocfs2/super.c root = d_make_root(inode); root 1104 fs/ocfs2/super.c if (!root) { root 1110 fs/ocfs2/super.c sb->s_root = root; root 1475 fs/ocfs2/super.c static int ocfs2_show_options(struct seq_file *s, struct dentry *root) root 1477 fs/ocfs2/super.c struct ocfs2_super *osb = OCFS2_SB(root->d_sb); root 131 fs/ocfs2/uptodate.c static unsigned int ocfs2_purge_copied_metadata_tree(struct rb_root *root) root 137 fs/ocfs2/uptodate.c while ((node = rb_last(root)) != NULL) { root 143 fs/ocfs2/uptodate.c rb_erase(&item->c_node, root); root 160 fs/ocfs2/uptodate.c struct rb_root root = RB_ROOT; root 176 fs/ocfs2/uptodate.c root = ci->ci_cache.ci_tree; root 181 fs/ocfs2/uptodate.c purged = ocfs2_purge_copied_metadata_tree(&root); root 297 fs/omfs/inode.c static int omfs_show_options(struct seq_file *m, struct dentry *root) root 299 fs/omfs/inode.c struct omfs_sb_info *sbi = OMFS_SB(root->d_sb); root 463 fs/omfs/inode.c struct inode *root; root 578 fs/omfs/inode.c root = omfs_iget(sb, be64_to_cpu(omfs_rb->r_root_dir)); root 579 fs/omfs/inode.c if (IS_ERR(root)) { root 580 fs/omfs/inode.c ret = PTR_ERR(root); root 584 fs/omfs/inode.c sb->s_root = d_make_root(root); root 40 fs/orangefs/super.c static int orangefs_show_options(struct seq_file *m, struct dentry *root) root 42 fs/orangefs/super.c struct orangefs_sb_info_s *orangefs_sb = ORANGEFS_SB(root->d_sb); root 44 fs/orangefs/super.c if (root->d_sb->s_flags & SB_POSIXACL) root 417 fs/orangefs/super.c struct inode *root; root 454 fs/orangefs/super.c root = orangefs_iget(sb, &root_object); root 455 fs/orangefs/super.c if (IS_ERR(root)) root 456 fs/orangefs/super.c return PTR_ERR(root); root 460 fs/orangefs/super.c root, root 461 fs/orangefs/super.c root->i_mode); root 464 fs/orangefs/super.c root_dentry = d_make_root(root); root 35 fs/overlayfs/readdir.c struct rb_root root; root 42 fs/overlayfs/readdir.c struct rb_root *root; root 92 fs/overlayfs/readdir.c static struct ovl_cache_entry *ovl_cache_entry_find(struct rb_root *root, root 95 fs/overlayfs/readdir.c struct rb_node *node = root->rb_node; root 177 fs/overlayfs/readdir.c struct rb_node **newp = &rdd->root->rb_node; root 192 fs/overlayfs/readdir.c rb_insert_color(&p->node, rdd->root); root 203 fs/overlayfs/readdir.c p = ovl_cache_entry_find(rdd->root, name, namelen); root 356 fs/overlayfs/readdir.c struct rb_root *root) root 364 fs/overlayfs/readdir.c .root = root, root 424 fs/overlayfs/readdir.c cache->root = RB_ROOT; root 426 fs/overlayfs/readdir.c res = ovl_dir_read_merged(dentry, &cache->entries, &cache->root); root 552 fs/overlayfs/readdir.c struct rb_root *root) root 560 fs/overlayfs/readdir.c .root = root, root 564 fs/overlayfs/readdir.c *root = RB_ROOT; root 582 fs/overlayfs/readdir.c struct rb_node **newp = &root->rb_node; root 590 fs/overlayfs/readdir.c rb_insert_color(&p->node, root); root 614 fs/overlayfs/readdir.c res = ovl_dir_read_impure(path, &cache->entries, &cache->root); root 663 fs/overlayfs/readdir.c p = ovl_cache_entry_find(&rdt->cache->root, name, namelen); root 922 fs/overlayfs/readdir.c struct rb_root root = RB_ROOT; root 926 fs/overlayfs/readdir.c err = ovl_dir_read_merged(dentry, list, &root); root 1027 fs/overlayfs/readdir.c struct rb_root root = RB_ROOT; root 1033 fs/overlayfs/readdir.c .root = &root, root 1092 fs/overlayfs/readdir.c struct rb_root root = RB_ROOT; root 1098 fs/overlayfs/readdir.c .root = &root, root 39 fs/pnode.c const struct path *root) root 45 fs/pnode.c if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) root 60 fs/pnode.c int get_dominating_id(struct mount *mnt, const struct path *root) root 65 fs/pnode.c struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); root 46 fs/pnode.h int get_dominating_id(struct mount *mnt, const struct path *root); root 54 fs/pnode.h const struct path *root); root 170 fs/proc/base.c static int get_task_root(struct task_struct *task, struct path *root) root 176 fs/proc/base.c get_fs_root(task->fs, root); root 93 fs/proc/generic.c struct rb_root *root = &dir->subdir; root 94 fs/proc/generic.c struct rb_node **new = &root->rb_node, *parent = NULL; root 114 fs/proc/generic.c rb_insert_color(&de->subdir_node, root); root 691 fs/proc/generic.c struct proc_dir_entry *root = NULL, *de, *next; root 702 fs/proc/generic.c root = pde_subdir_find(parent, fn, len); root 703 fs/proc/generic.c if (!root) { root 707 fs/proc/generic.c rb_erase(&root->subdir_node, &parent->subdir); root 709 fs/proc/generic.c de = root; root 724 fs/proc/generic.c if (de == root) root 731 fs/proc/generic.c pde_put(root); root 105 fs/proc/inode.c static int proc_show_options(struct seq_file *seq, struct dentry *root) root 107 fs/proc/inode.c struct super_block *sb = root->d_sb; root 73 fs/proc/proc_sysctl.c .root = &sysctl_table_root, root 114 fs/proc/proc_sysctl.c struct rb_node *node = dir->root.rb_node; root 143 fs/proc/proc_sysctl.c struct rb_node **p = &head->parent->root.rb_node; root 175 fs/proc/proc_sysctl.c rb_insert_color(node, &head->parent->root); root 183 fs/proc/proc_sysctl.c rb_erase(node, &head->parent->root); root 187 fs/proc/proc_sysctl.c struct ctl_table_root *root, struct ctl_table_set *set, root 196 fs/proc/proc_sysctl.c head->root = root; root 226 fs/proc/proc_sysctl.c if (!RB_EMPTY_ROOT(&dir->root)) root 359 fs/proc/proc_sysctl.c lookup_header_set(struct ctl_table_root *root) root 361 fs/proc/proc_sysctl.c struct ctl_table_set *set = &root->default_set; root 362 fs/proc/proc_sysctl.c if (root->lookup) root 363 fs/proc/proc_sysctl.c set = root->lookup(root); root 404 fs/proc/proc_sysctl.c ctl_node = first_usable_entry(rb_first(&dir->root)); root 452 fs/proc/proc_sysctl.c struct ctl_table_root *root = head->root; root 455 fs/proc/proc_sysctl.c if (root->permissions) root 456 fs/proc/proc_sysctl.c mode = root->permissions(head, table); root 466 fs/proc/proc_sysctl.c struct ctl_table_root *root = head->root; root 504 fs/proc/proc_sysctl.c if (root->set_ownership) root 505 fs/proc/proc_sysctl.c root->set_ownership(head, table, &inode->i_uid, &inode->i_gid); root 985 fs/proc/proc_sysctl.c init_header(&new->header, set->dir.header.root, set, node, table); root 1069 fs/proc/proc_sysctl.c struct ctl_table_root *root; root 1077 fs/proc/proc_sysctl.c root = (*pentry)->data; root 1078 fs/proc/proc_sysctl.c set = lookup_header_set(root); root 1199 fs/proc/proc_sysctl.c init_header(links, dir->header.root, dir->header.set, node, link_table); root 1247 fs/proc/proc_sysctl.c if (get_links(core_parent, head->ctl_table, head->root)) root 1253 fs/proc/proc_sysctl.c links = new_links(core_parent, head->ctl_table, head->root); root 1261 fs/proc/proc_sysctl.c if (get_links(core_parent, head->ctl_table, head->root)) { root 1320 fs/proc/proc_sysctl.c struct ctl_table_root *root = set->dir.header.root; root 1337 fs/proc/proc_sysctl.c init_header(header, root, set, node, table); root 1616 fs/proc/proc_sysctl.c struct ctl_table_root *root = header->root; root 1636 fs/proc/proc_sysctl.c (S_ISLNK(link->mode) && (link->data == root)))) { root 1704 fs/proc/proc_sysctl.c struct ctl_table_root *root, root 1709 fs/proc/proc_sysctl.c init_header(&set->dir.header, root, set, NULL, root_table); root 1714 fs/proc/proc_sysctl.c WARN_ON(!RB_EMPTY_ROOT(&set->dir.root)); root 147 fs/proc/root.c struct super_block *sb = fc->root->d_sb; root 114 fs/proc_namespace.c err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); root 151 fs/proc_namespace.c err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); root 163 fs/proc_namespace.c int dom = get_dominating_id(r, &p->root); root 218 fs/proc_namespace.c err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); root 244 fs/proc_namespace.c struct path root; root 267 fs/proc_namespace.c get_fs_root(task->fs, &root); root 280 fs/proc_namespace.c p->root = root; root 287 fs/proc_namespace.c path_put(&root); root 298 fs/proc_namespace.c path_put(&p->root); root 258 fs/pstore/inode.c static int pstore_show_options(struct seq_file *m, struct dentry *root) root 293 fs/pstore/inode.c int pstore_mkfile(struct dentry *root, struct pstore_record *record) root 303 fs/pstore/inode.c WARN_ON(!inode_is_locked(d_inode(root))); root 319 fs/pstore/inode.c inode = pstore_get_inode(root->d_sb); root 333 fs/pstore/inode.c dentry = d_alloc_name(root, name); root 370 fs/pstore/inode.c struct dentry *root; root 375 fs/pstore/inode.c root = pstore_sb->s_root; root 377 fs/pstore/inode.c inode_lock(d_inode(root)); root 378 fs/pstore/inode.c pstore_get_backend_records(psi, root, quiet); root 379 fs/pstore/inode.c inode_unlock(d_inode(root)); root 33 fs/pstore/internal.h struct dentry *root, int quiet); root 34 fs/pstore/internal.h extern int pstore_mkfile(struct dentry *root, root 720 fs/pstore/platform.c struct dentry *root, int quiet) root 725 fs/pstore/platform.c if (!psi || !root) root 757 fs/pstore/platform.c rc = pstore_mkfile(root, record); root 190 fs/qnx4/inode.c struct inode *root; root 226 fs/qnx4/inode.c root = qnx4_iget(s, QNX4_ROOT_INO * QNX4_INODES_PER_BLOCK); root 227 fs/qnx4/inode.c if (IS_ERR(root)) { root 229 fs/qnx4/inode.c return PTR_ERR(root); root 232 fs/qnx4/inode.c s->s_root = d_make_root(root); root 36 fs/qnx6/inode.c static int qnx6_show_options(struct seq_file *seq, struct dentry *root); root 47 fs/qnx6/inode.c static int qnx6_show_options(struct seq_file *seq, struct dentry *root) root 49 fs/qnx6/inode.c struct super_block *sb = root->d_sb; root 186 fs/qnx6/inode.c struct inode *root = d_inode(s->s_root); root 187 fs/qnx6/inode.c struct address_space *mapping = root->i_mapping; root 303 fs/qnx6/inode.c struct inode *root; root 446 fs/qnx6/inode.c root = qnx6_iget(s, QNX6_ROOT_INO); root 447 fs/qnx6/inode.c if (IS_ERR(root)) { root 449 fs/qnx6/inode.c ret = PTR_ERR(root); root 454 fs/qnx6/inode.c s->s_root = d_make_root(root); root 165 fs/ramfs/inode.c static int ramfs_show_options(struct seq_file *m, struct dentry *root) root 167 fs/ramfs/inode.c struct ramfs_fs_info *fsi = root->d_sb->s_fs_info; root 721 fs/reiserfs/super.c static int reiserfs_show_options(struct seq_file *seq, struct dentry *root) root 723 fs/reiserfs/super.c struct super_block *s = root->d_sb; root 428 fs/romfs/super.c sync_filesystem(fc->root->d_sb); root 462 fs/romfs/super.c struct inode *root; root 532 fs/romfs/super.c root = romfs_iget(sb, pos); root 533 fs/romfs/super.c if (IS_ERR(root)) root 534 fs/romfs/super.c return PTR_ERR(root); root 536 fs/romfs/super.c sb->s_root = d_make_root(root); root 502 fs/seq_file.c const struct path *root, const char *esc) root 511 fs/seq_file.c p = __d_path(path, root, buf, size); root 72 fs/squashfs/super.c struct inode *root; root 304 fs/squashfs/super.c root = new_inode(sb); root 305 fs/squashfs/super.c if (!root) { root 310 fs/squashfs/super.c err = squashfs_read_inode(root, root_inode); root 312 fs/squashfs/super.c make_bad_inode(root); root 313 fs/squashfs/super.c iput(root); root 316 fs/squashfs/super.c insert_inode_hash(root); root 318 fs/squashfs/super.c sb->s_root = d_make_root(root); root 353 fs/squashfs/super.c sync_filesystem(fc->root->d_sb); root 905 fs/super.c struct super_block *sb = fc->root->d_sb; root 1196 fs/super.c fc->root = dget(sb->s_root); root 1198 fs/super.c fc->root = dget(sb->s_root); root 1202 fs/super.c dput(fc->root); root 1203 fs/super.c fc->root = NULL; root 1352 fs/super.c BUG_ON(fc->root); root 1353 fs/super.c fc->root = dget(s->s_root); root 1541 fs/super.c if (fc->root) root 1551 fs/super.c if (!fc->root) { root 1560 fs/super.c sb = fc->root->d_sb; root 36 fs/sysfs/mount.c fc->root->d_sb->s_iflags |= SB_I_USERNS_VISIBLE; root 70 fs/sysfs/mount.c kfc->root = sysfs_root; root 241 fs/tracefs/inode.c static int tracefs_show_options(struct seq_file *m, struct dentry *root) root 243 fs/tracefs/inode.c struct tracefs_fs_info *fsi = root->d_sb->s_fs_info; root 842 fs/ubifs/orphan.c struct rb_root root; root 856 fs/ubifs/orphan.c static int dbg_ins_check_orphan(struct rb_root *root, ino_t inum) root 866 fs/ubifs/orphan.c p = &root->rb_node; root 880 fs/ubifs/orphan.c rb_insert_color(&orphan->rb, root); root 884 fs/ubifs/orphan.c static int dbg_find_check_orphan(struct rb_root *root, ino_t inum) root 889 fs/ubifs/orphan.c p = root->rb_node; root 902 fs/ubifs/orphan.c static void dbg_free_check_tree(struct rb_root *root) root 906 fs/ubifs/orphan.c rbtree_postorder_for_each_entry_safe(o, n, root, rb) root 932 fs/ubifs/orphan.c if (!dbg_find_check_orphan(&ci->root, inum) && root 958 fs/ubifs/orphan.c err = dbg_ins_check_orphan(&ci->root, inum); root 1012 fs/ubifs/orphan.c ci.root = RB_ROOT; root 1040 fs/ubifs/orphan.c dbg_free_check_tree(&ci.root); root 418 fs/ubifs/super.c static int ubifs_show_options(struct seq_file *s, struct dentry *root) root 420 fs/ubifs/super.c struct ubifs_info *c = root->d_sb->s_fs_info; root 2133 fs/ubifs/super.c struct inode *root; root 2184 fs/ubifs/super.c root = ubifs_iget(sb, UBIFS_ROOT_INO); root 2185 fs/ubifs/super.c if (IS_ERR(root)) { root 2186 fs/ubifs/super.c err = PTR_ERR(root); root 2190 fs/ubifs/super.c sb->s_root = d_make_root(root); root 315 fs/udf/super.c static int udf_show_options(struct seq_file *seq, struct dentry *root) root 317 fs/udf/super.c struct super_block *sb = root->d_sb; root 800 fs/udf/super.c struct kernel_lb_addr *root) root 808 fs/udf/super.c *root = lelb_to_cpu(fset->rootDirectoryICB.extLocation); root 812 fs/udf/super.c root->logicalBlockNum, root->partitionReferenceNum); root 818 fs/udf/super.c struct kernel_lb_addr *root) root 840 fs/udf/super.c ret = udf_load_fileset(sb, (struct fileSetDesc *)bh->b_data, root); root 1392 fs/ufs/super.c static int ufs_show_options(struct seq_file *seq, struct dentry *root) root 1394 fs/ufs/super.c struct ufs_sb_info *sbi = UFS_SB(root->d_sb); root 346 fs/unicode/mkutf8data.c void *root; root 385 fs/unicode/mkutf8data.c node = tree->root; root 428 fs/unicode/mkutf8data.c printf("%s_%x root %p\n", tree->type, tree->maxage, tree->root); root 430 fs/unicode/mkutf8data.c assert(tree->root); root 431 fs/unicode/mkutf8data.c tree->leaf_print(tree->root, indent); root 435 fs/unicode/mkutf8data.c node = tree->root; root 543 fs/unicode/mkutf8data.c cursor = &tree->root; root 582 fs/unicode/mkutf8data.c tree->root = leaf; root 673 fs/unicode/mkutf8data.c if (!tree->root) root 677 fs/unicode/mkutf8data.c node = tree->root; root 831 fs/unicode/mkutf8data.c node = tree->root; root 879 fs/unicode/mkutf8data.c node = tree->root; root 961 fs/unicode/mkutf8data.c index += tree->leaf_size(tree->root); root 966 fs/unicode/mkutf8data.c node = tree->root; root 1077 fs/unicode/mkutf8data.c node = tree->root; root 1097 fs/unicode/mkutf8data.c n = next->root; root 1210 fs/unicode/mkutf8data.c assert(tree->root); root 1211 fs/unicode/mkutf8data.c tree->leaf_emit(tree->root, data); root 1212 fs/unicode/mkutf8data.c size = tree->leaf_size(tree->root); root 1219 fs/unicode/mkutf8data.c node = tree->root; root 261 fs/xfs/libxfs/xfs_bmap.c int root, root 284 fs/xfs/libxfs/xfs_bmap.c if (root) root 290 fs/xfs/libxfs/xfs_bmap.c if (root) root 123 fs/xfs/scrub/agheader_repair.c return xfs_verify_agbno(mp, agno, fab->root) && root 161 fs/xfs/scrub/agheader_repair.c if (fab[XREP_AGF_RMAPBT].root != root 211 fs/xfs/scrub/agheader_repair.c cpu_to_be32(fab[XREP_AGF_BNOBT].root); root 216 fs/xfs/scrub/agheader_repair.c cpu_to_be32(fab[XREP_AGF_CNTBT].root); root 221 fs/xfs/scrub/agheader_repair.c cpu_to_be32(fab[XREP_AGF_RMAPBT].root); root 227 fs/xfs/scrub/agheader_repair.c cpu_to_be32(fab[XREP_AGF_REFCOUNTBT].root); root 798 fs/xfs/scrub/agheader_repair.c agi->agi_root = cpu_to_be32(fab[XREP_AGI_INOBT].root); root 802 fs/xfs/scrub/agheader_repair.c agi->agi_free_root = cpu_to_be32(fab[XREP_AGI_FINOBT].root); root 791 fs/xfs/scrub/repair.c fab->root = NULLAGBLOCK; root 811 fs/xfs/scrub/repair.c fab->root = agbno; root 813 fs/xfs/scrub/repair.c fab->root = NULLAGBLOCK; root 885 fs/xfs/scrub/repair.c fab->root = NULLAGBLOCK; root 46 fs/xfs/scrub/repair.h xfs_agblock_t root; root 1416 fs/xfs/xfs_super.c struct dentry *root) root 1418 fs/xfs/xfs_super.c xfs_showargs(XFS_M(root->d_sb), m); root 1582 fs/xfs/xfs_super.c struct inode *root; root 1736 fs/xfs/xfs_super.c root = igrab(VFS_I(mp->m_rootip)); root 1737 fs/xfs/xfs_super.c if (!root) { root 1741 fs/xfs/xfs_super.c sb->s_root = d_make_root(root); root 89 include/acpi/acpi_drivers.h struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root); root 84 include/drm/drm_debugfs.h int count, struct dentry *root, root 90 include/drm/drm_debugfs.h int count, struct dentry *root, root 890 include/linux/acpi.h int acpi_ioapic_add(acpi_handle root); root 892 include/linux/acpi.h static inline int acpi_ioapic_add(acpi_handle root) { return 0; } root 23 include/linux/assoc_array.h struct assoc_array_ptr *root; /* The node at the root of the tree */ root 56 include/linux/assoc_array.h array->root = NULL; root 191 include/linux/ceph/libceph.h static void insert_##name(struct rb_root *root, type *t) \ root 193 include/linux/ceph/libceph.h struct rb_node **n = &root->rb_node; \ root 213 include/linux/ceph/libceph.h rb_insert_color(&t->nodefld, root); \ root 215 include/linux/ceph/libceph.h static void erase_##name(struct rb_root *root, type *t) \ root 218 include/linux/ceph/libceph.h rb_erase(&t->nodefld, root); \ root 228 include/linux/ceph/libceph.h static type *lookup_##name(struct rb_root *root, lookup_param_type key) \ root 230 include/linux/ceph/libceph.h struct rb_node *n = root->rb_node; \ root 429 include/linux/cgroup-defs.h struct cgroup_root *root; root 701 include/linux/cgroup-defs.h struct cgroup_root *root; root 568 include/linux/cgroup.h if (cgrp->root != ancestor->root || cgrp->level < ancestor->level) root 1548 include/linux/device.h extern void root_device_unregister(struct device *root); root 104 include/linux/eisa.h int eisa_root_register (struct eisa_root_device *root); root 92 include/linux/fs_context.h struct dentry *root; /* The root and superblock */ root 15 include/linux/fs_struct.h struct path root, pwd; root 27 include/linux/fs_struct.h static inline void get_fs_root(struct fs_struct *fs, struct path *root) root 30 include/linux/fs_struct.h *root = fs->root; root 31 include/linux/fs_struct.h path_get(root); root 47 include/linux/generic-radix-tree.h struct genradix_root __rcu *root; root 57 include/linux/generic-radix-tree.h .root = NULL, \ root 16 include/linux/interval_tree.h struct rb_root_cached *root); root 20 include/linux/interval_tree.h struct rb_root_cached *root); root 23 include/linux/interval_tree.h interval_tree_iter_first(struct rb_root_cached *root, root 39 include/linux/interval_tree_generic.h struct rb_root_cached *root) \ root 41 include/linux/interval_tree_generic.h struct rb_node **link = &root->rb_root.rb_node, *rb_parent = NULL; \ root 61 include/linux/interval_tree_generic.h rb_insert_augmented_cached(&node->ITRB, root, \ root 66 include/linux/interval_tree_generic.h struct rb_root_cached *root) \ root 68 include/linux/interval_tree_generic.h rb_erase_augmented_cached(&node->ITRB, root, &ITPREFIX ## _augment); \ root 119 include/linux/interval_tree_generic.h ITPREFIX ## _iter_first(struct rb_root_cached *root, \ root 124 include/linux/interval_tree_generic.h if (!root->rb_root.rb_node) \ root 140 include/linux/interval_tree_generic.h node = rb_entry(root->rb_root.rb_node, ITSTRUCT, ITRB); \ root 144 include/linux/interval_tree_generic.h leftmost = rb_entry(root->rb_leftmost, ITSTRUCT, ITRB); \ root 181 include/linux/ioport.h extern struct resource *request_resource_conflict(struct resource *root, struct resource *new); root 182 include/linux/ioport.h extern int request_resource(struct resource *root, struct resource *new); root 185 include/linux/ioport.h extern void reserve_region_with_split(struct resource *root, root 190 include/linux/ioport.h extern void insert_resource_expand_to_fit(struct resource *root, struct resource *new); root 193 include/linux/ioport.h extern int allocate_resource(struct resource *root, struct resource *new, root 201 include/linux/ioport.h struct resource *lookup_resource(struct resource *root, resource_size_t start); root 256 include/linux/ioport.h extern int devm_request_resource(struct device *dev, struct resource *root, root 93 include/linux/kernfs.h struct kernfs_root *root; root 172 include/linux/kernfs.h int (*show_options)(struct seq_file *sf, struct kernfs_root *root); root 180 include/linux/kernfs.h struct kernfs_root *root); root 280 include/linux/kernfs.h struct kernfs_root *root; /* Root of the hierarchy being mounted */ root 342 include/linux/kernfs.h void kernfs_destroy_root(struct kernfs_root *root); root 386 include/linux/kernfs.h struct kernfs_node *kernfs_get_node_by_id(struct kernfs_root *root, root 439 include/linux/kernfs.h static inline void kernfs_destroy_root(struct kernfs_root *root) { } root 372 include/linux/memcontrol.h enum mem_cgroup_protection mem_cgroup_protected(struct mem_cgroup *root, root 498 include/linux/memcontrol.h struct mem_cgroup *root) root 500 include/linux/memcontrol.h if (root == memcg) root 502 include/linux/memcontrol.h if (!root->use_hierarchy) root 504 include/linux/memcontrol.h return cgroup_is_descendant(memcg->css.cgroup, root->css.cgroup); root 857 include/linux/memcontrol.h struct mem_cgroup *root, struct mem_cgroup *memcg) root 938 include/linux/memcontrol.h mem_cgroup_iter(struct mem_cgroup *root, root 945 include/linux/memcontrol.h static inline void mem_cgroup_iter_break(struct mem_cgroup *root, root 126 include/linux/mempolicy.h struct rb_root root; root 200 include/linux/mlx5/driver.h struct dentry *root; root 268 include/linux/mlx5/driver.h struct dentry *root; root 2243 include/linux/mm.h struct rb_root_cached *root); root 2246 include/linux/mm.h struct rb_root_cached *root); root 2248 include/linux/mm.h struct rb_root_cached *root); root 2249 include/linux/mm.h struct vm_area_struct *vma_interval_tree_iter_first(struct rb_root_cached *root, root 2254 include/linux/mm.h #define vma_interval_tree_foreach(vma, root, start, last) \ root 2255 include/linux/mm.h for (vma = vma_interval_tree_iter_first(root, start, last); \ root 2259 include/linux/mm.h struct rb_root_cached *root); root 2261 include/linux/mm.h struct rb_root_cached *root); root 2263 include/linux/mm.h anon_vma_interval_tree_iter_first(struct rb_root_cached *root, root 2271 include/linux/mm.h #define anon_vma_interval_tree_foreach(avc, root, start, last) \ root 2272 include/linux/mm.h for (avc = anon_vma_interval_tree_iter_first(root, start, last); \ root 70 include/linux/of_platform.h extern int of_platform_bus_probe(struct device_node *root, root 74 include/linux/of_platform.h extern int of_platform_populate(struct device_node *root, root 78 include/linux/of_platform.h extern int of_platform_default_populate(struct device_node *root, root 87 include/linux/of_platform.h static inline int of_platform_populate(struct device_node *root, root 94 include/linux/of_platform.h static inline int of_platform_default_populate(struct device_node *root, root 53 include/linux/oprofile.h int (*create_files)(struct dentry * root); root 127 include/linux/oprofile.h int oprofilefs_create_file(struct dentry * root, root 130 include/linux/oprofile.h int oprofilefs_create_file_perm(struct dentry * root, root 134 include/linux/oprofile.h int oprofilefs_create_ulong(struct dentry * root, root 138 include/linux/oprofile.h int oprofilefs_create_ro_ulong(struct dentry * root, root 142 include/linux/oprofile.h int oprofilefs_create_ro_atomic(struct dentry * root, root 29 include/linux/pci-acpi.h extern int pci_mcfg_lookup(struct acpi_pci_root *root, struct resource *cfgres, root 64 include/linux/pci-acpi.h struct acpi_pci_root *root; root 79 include/linux/pci-acpi.h extern struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, root 72 include/linux/radix-tree.h #define INIT_RADIX_TREE(root, mask) xa_init_flags(root, mask) root 74 include/linux/radix-tree.h static inline bool radix_tree_empty(const struct radix_tree_root *root) root 76 include/linux/radix-tree.h return root->xa_head == NULL; root 251 include/linux/radix-tree.h void __rcu **idr_get_free(struct radix_tree_root *root, root 311 include/linux/radix-tree.h radix_tree_iter_lookup(const struct radix_tree_root *root, root 315 include/linux/radix-tree.h return radix_tree_next_chunk(root, iter, RADIX_TREE_ITER_CONTIG); root 437 include/linux/radix-tree.h #define radix_tree_for_each_slot(slot, root, iter, start) \ root 439 include/linux/radix-tree.h slot || (slot = radix_tree_next_chunk(root, iter, 0)) ; \ root 453 include/linux/radix-tree.h #define radix_tree_for_each_tagged(slot, root, iter, start, tag) \ root 455 include/linux/radix-tree.h slot || (slot = radix_tree_next_chunk(root, iter, \ root 40 include/linux/rbtree.h #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL) root 65 include/linux/rbtree.h struct rb_root *root); root 67 include/linux/rbtree.h struct rb_root *root); root 109 include/linux/rbtree.h #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ root 110 include/linux/rbtree.h for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \ root 133 include/linux/rbtree.h #define rb_first_cached(root) (root)->rb_leftmost root 136 include/linux/rbtree.h struct rb_root_cached *root, root 140 include/linux/rbtree.h root->rb_leftmost = node; root 141 include/linux/rbtree.h rb_insert_color(node, &root->rb_root); root 145 include/linux/rbtree.h struct rb_root_cached *root) root 147 include/linux/rbtree.h if (root->rb_leftmost == node) root 148 include/linux/rbtree.h root->rb_leftmost = rb_next(node); root 149 include/linux/rbtree.h rb_erase(node, &root->rb_root); root 154 include/linux/rbtree.h struct rb_root_cached *root) root 156 include/linux/rbtree.h if (root->rb_leftmost == victim) root 157 include/linux/rbtree.h root->rb_leftmost = new; root 158 include/linux/rbtree.h rb_replace_node(victim, new, &root->rb_root); root 33 include/linux/rbtree_augmented.h extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, root 47 include/linux/rbtree_augmented.h rb_insert_augmented(struct rb_node *node, struct rb_root *root, root 50 include/linux/rbtree_augmented.h __rb_insert_augmented(node, root, augment->rotate); root 55 include/linux/rbtree_augmented.h struct rb_root_cached *root, bool newleft, root 59 include/linux/rbtree_augmented.h root->rb_leftmost = node; root 60 include/linux/rbtree_augmented.h rb_insert_augmented(node, &root->rb_root, augment); root 170 include/linux/rbtree_augmented.h struct rb_node *parent, struct rb_root *root) root 178 include/linux/rbtree_augmented.h WRITE_ONCE(root->rb_node, new); root 183 include/linux/rbtree_augmented.h struct rb_node *parent, struct rb_root *root) root 191 include/linux/rbtree_augmented.h rcu_assign_pointer(root->rb_node, new); root 194 include/linux/rbtree_augmented.h extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, root 198 include/linux/rbtree_augmented.h __rb_erase_augmented(struct rb_node *node, struct rb_root *root, root 216 include/linux/rbtree_augmented.h __rb_change_child(node, child, parent, root); root 227 include/linux/rbtree_augmented.h __rb_change_child(node, tmp, parent, root); root 283 include/linux/rbtree_augmented.h __rb_change_child(node, successor, tmp, root); root 302 include/linux/rbtree_augmented.h rb_erase_augmented(struct rb_node *node, struct rb_root *root, root 305 include/linux/rbtree_augmented.h struct rb_node *rebalance = __rb_erase_augmented(node, root, augment); root 307 include/linux/rbtree_augmented.h __rb_erase_color(rebalance, root, augment->rotate); root 311 include/linux/rbtree_augmented.h rb_erase_augmented_cached(struct rb_node *node, struct rb_root_cached *root, root 314 include/linux/rbtree_augmented.h if (root->rb_leftmost == node) root 315 include/linux/rbtree_augmented.h root->rb_leftmost = rb_next(node); root 316 include/linux/rbtree_augmented.h rb_erase_augmented(node, &root->rb_root, augment); root 79 include/linux/rbtree_latch.h struct rb_root *root = <r->tree[idx]; root 80 include/linux/rbtree_latch.h struct rb_node **link = &root->rb_node; root 96 include/linux/rbtree_latch.h rb_insert_color(node, root); root 145 include/linux/rbtree_latch.h struct latch_tree_root *root, root 148 include/linux/rbtree_latch.h raw_write_seqcount_latch(&root->seq); root 149 include/linux/rbtree_latch.h __lt_insert(node, root, 0, ops->less); root 150 include/linux/rbtree_latch.h raw_write_seqcount_latch(&root->seq); root 151 include/linux/rbtree_latch.h __lt_insert(node, root, 1, ops->less); root 172 include/linux/rbtree_latch.h struct latch_tree_root *root, root 175 include/linux/rbtree_latch.h raw_write_seqcount_latch(&root->seq); root 176 include/linux/rbtree_latch.h __lt_erase(node, root, 0); root 177 include/linux/rbtree_latch.h raw_write_seqcount_latch(&root->seq); root 178 include/linux/rbtree_latch.h __lt_erase(node, root, 1); root 200 include/linux/rbtree_latch.h latch_tree_find(void *key, struct latch_tree_root *root, root 207 include/linux/rbtree_latch.h seq = raw_read_seqcount_latch(&root->seq); root 208 include/linux/rbtree_latch.h node = __lt_find(key, root, seq & 1, ops->comp); root 209 include/linux/rbtree_latch.h } while (read_seqcount_retry(&root->seq, seq)); root 30 include/linux/rmap.h struct anon_vma *root; /* Root of this anon_vma tree */ root 120 include/linux/rmap.h down_write(&anon_vma->root->rwsem); root 125 include/linux/rmap.h up_write(&anon_vma->root->rwsem); root 130 include/linux/rmap.h down_read(&anon_vma->root->rwsem); root 135 include/linux/rmap.h up_read(&anon_vma->root->rwsem); root 140 include/linux/seq_file.h const struct path *root, const char *esc); root 2760 include/linux/skbuff.h unsigned int skb_rbtree_purge(struct rb_root *root); root 3399 include/linux/skbuff.h #define skb_rb_first(root) rb_to_skb(rb_first(root)) root 3400 include/linux/skbuff.h #define skb_rb_last(root) rb_to_skb(rb_last(root)) root 3418 include/linux/skbuff.h #define skb_rbtree_walk(skb, root) \ root 3419 include/linux/skbuff.h for (skb = skb_rb_first(root); skb != NULL; \ root 156 include/linux/sysctl.h struct ctl_table_root *root; root 166 include/linux/sysctl.h struct rb_root root; root 176 include/linux/sysctl.h struct ctl_table_set *(*lookup)(struct ctl_table_root *root); root 193 include/linux/sysctl.h struct ctl_table_root *root, root 236 include/linux/sysctl.h struct ctl_table_root *root, root 129 include/net/inet_frag.h unsigned int inet_frag_rbtree_purge(struct rb_root *root); root 318 include/net/ip6_fib.h struct fib6_node *root, *node; root 412 include/net/ip6_fib.h struct fib6_node *fib6_node_lookup(struct fib6_node *root, root 416 include/net/ip6_fib.h struct fib6_node *fib6_locate(struct fib6_node *root, root 427 include/net/ip6_fib.h int fib6_add(struct fib6_node *root, struct fib6_info *rt, root 493 include/net/iucv/iucv.h struct device *root; root 352 include/net/sch_generic.h void __rcu *root; root 531 include/net/sch_generic.h struct Qdisc *root = qdisc_root(qdisc); root 534 include/net/sch_generic.h return qdisc_lock(root); root 539 include/net/sch_generic.h struct Qdisc *root = qdisc_root_sleeping(qdisc); root 542 include/net/sch_generic.h return qdisc_lock(root); root 547 include/net/sch_generic.h struct Qdisc *root = qdisc_root_sleeping(qdisc); root 550 include/net/sch_generic.h return &root->running; root 1814 include/net/tcp.h void tcp_rbtree_insert(struct rb_root *root, struct sk_buff *skb); root 154 include/rdma/ib_umem_odp.h int rbt_ib_umem_for_each_in_range(struct rb_root_cached *root, root 164 include/rdma/ib_umem_odp.h rbt_ib_umem_lookup(struct rb_root_cached *root, u64 addr, u64 length) root 168 include/rdma/ib_umem_odp.h node = interval_tree_iter_first(root, addr, addr + length - 1); root 146 include/trace/events/btrfs.h TP_PROTO(const struct btrfs_root *root), root 148 include/trace/events/btrfs.h TP_ARGS(root), root 155 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 156 include/trace/events/btrfs.h __entry->generation = root->fs_info->generation; root 157 include/trace/events/btrfs.h __entry->root_objectid = root->root_key.objectid; root 189 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 245 include/trace/events/btrfs.h TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode, root 248 include/trace/events/btrfs.h TP_ARGS(root, inode, map), root 265 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 266 include/trace/events/btrfs.h __entry->root_objectid = root->root_key.objectid; root 354 include/trace/events/btrfs.h TP_fast_assign_btrfs(bi->root->fs_info, root 355 include/trace/events/btrfs.h __entry->root_obj = bi->root->root_key.objectid; root 405 include/trace/events/btrfs.h bi->root->fs_info, root 406 include/trace/events/btrfs.h __entry->root_obj = bi->root->root_key.objectid; root 507 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 593 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 639 include/trace/events/btrfs.h BTRFS_I(page->mapping->host)->root->root_key.objectid; root 672 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 770 include/trace/events/btrfs.h __entry->ref_root = full_ref->root; root 834 include/trace/events/btrfs.h __entry->ref_root = full_ref->root; root 986 include/trace/events/btrfs.h TP_PROTO(const struct btrfs_root *root, const struct extent_buffer *buf, root 989 include/trace/events/btrfs.h TP_ARGS(root, buf, cow), root 1000 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 1001 include/trace/events/btrfs.h __entry->root_objectid = root->root_key.objectid; root 1521 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 1701 include/trace/events/btrfs.h TP_PROTO(struct btrfs_root *root, s64 diff, int type), root 1703 include/trace/events/btrfs.h TP_ARGS(root, diff, type), root 1711 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 1712 include/trace/events/btrfs.h __entry->refroot = root->root_key.objectid; root 1724 include/trace/events/btrfs.h TP_PROTO(struct btrfs_root *root, s64 diff), root 1726 include/trace/events/btrfs.h TP_ARGS(root, diff), root 1733 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 1734 include/trace/events/btrfs.h __entry->refroot = root->root_key.objectid; root 1747 include/trace/events/btrfs.h TP_PROTO(struct btrfs_root *root), root 1749 include/trace/events/btrfs.h TP_ARGS(root), root 1757 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 1758 include/trace/events/btrfs.h __entry->refroot = root->root_key.objectid; root 1759 include/trace/events/btrfs.h spin_lock(&root->qgroup_meta_rsv_lock); root 1760 include/trace/events/btrfs.h __entry->diff = -(s64)root->qgroup_meta_rsv_pertrans; root 1761 include/trace/events/btrfs.h spin_unlock(&root->qgroup_meta_rsv_lock); root 1828 include/trace/events/btrfs.h TP_PROTO(struct btrfs_root *root, u64 ino, int mod), root 1830 include/trace/events/btrfs.h TP_ARGS(root, ino, mod), root 1838 include/trace/events/btrfs.h TP_fast_assign_btrfs(root->fs_info, root 1839 include/trace/events/btrfs.h __entry->root_objectid = root->root_key.objectid; root 1913 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 1952 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 1992 include/trace/events/btrfs.h BTRFS_I(inode)->root->root_key.objectid; root 13 include/trace/events/cgroup.h TP_PROTO(struct cgroup_root *root), root 15 include/trace/events/cgroup.h TP_ARGS(root), root 18 include/trace/events/cgroup.h __field( int, root ) root 20 include/trace/events/cgroup.h __string( name, root->name ) root 24 include/trace/events/cgroup.h __entry->root = root->hierarchy_id; root 25 include/trace/events/cgroup.h __entry->ss_mask = root->subsys_mask; root 26 include/trace/events/cgroup.h __assign_str(name, root->name); root 30 include/trace/events/cgroup.h __entry->root, __entry->ss_mask, __get_str(name)) root 35 include/trace/events/cgroup.h TP_PROTO(struct cgroup_root *root), root 37 include/trace/events/cgroup.h TP_ARGS(root) root 42 include/trace/events/cgroup.h TP_PROTO(struct cgroup_root *root), root 44 include/trace/events/cgroup.h TP_ARGS(root) root 49 include/trace/events/cgroup.h TP_PROTO(struct cgroup_root *root), root 51 include/trace/events/cgroup.h TP_ARGS(root) root 61 include/trace/events/cgroup.h __field( int, root ) root 68 include/trace/events/cgroup.h __entry->root = cgrp->root->hierarchy_id; root 75 include/trace/events/cgroup.h __entry->root, __entry->id, __entry->level, __get_str(path)) root 137 include/trace/events/cgroup.h __entry->dst_root = dst_cgrp->root->hierarchy_id; root 173 include/trace/events/cgroup.h __field( int, root ) root 181 include/trace/events/cgroup.h __entry->root = cgrp->root->hierarchy_id; root 189 include/trace/events/cgroup.h __entry->root, __entry->id, __entry->level, __get_str(path), root 23 include/uapi/linux/adfs_fs.h __le32 root; root 504 include/uapi/linux/btrfs_tree.h __le64 root; root 521 include/uapi/linux/btrfs_tree.h __le64 root; root 63 include/uapi/linux/cramfs_fs.h struct cramfs_inode root; /* root inode data */ root 44 include/uapi/linux/nfs_mount.h struct nfs3_fh root; /* 4 */ root 561 include/uapi/sound/asequencer.h struct snd_seq_addr root; /* client/port id to be searched */ root 129 include/uapi/sound/sfnt_info.h short root; /* midi root key */ root 819 ipc/mqueue.c struct dentry *root = mnt->mnt_root; root 835 ipc/mqueue.c inode_lock(d_inode(root)); root 836 ipc/mqueue.c path.dentry = lookup_one_len(name->name, root, strlen(name->name)); root 856 ipc/mqueue.c inode_unlock(d_inode(root)); root 16 kernel/audit_tree.c struct audit_chunk *root; root 105 kernel/audit_tree.c tree->root = NULL; root 303 kernel/audit_tree.c owner->root = new; root 331 kernel/audit_tree.c if (owner->root == chunk) { root 333 kernel/audit_tree.c owner->root = NULL; root 438 kernel/audit_tree.c if (!tree->root) { root 439 kernel/audit_tree.c tree->root = chunk; root 510 kernel/audit_tree.c if (!tree->root) { root 511 kernel/audit_tree.c tree->root = chunk; root 633 kernel/audit_tree.c if (!tree->root && !tree->goner) { root 657 kernel/audit_tree.c tree->root = NULL; root 1019 kernel/audit_tree.c owner->root = NULL; root 557 kernel/bpf/inode.c static int bpf_show_options(struct seq_file *m, struct dentry *root) root 559 kernel/bpf/inode.c umode_t mode = d_inode(root)->i_mode & S_IALLUGO & ~S_ISVTX; root 24 kernel/bpf/local_storage.c struct rb_root root; root 52 kernel/bpf/local_storage.c struct rb_root *root = &map->root; root 58 kernel/bpf/local_storage.c node = root->rb_node; root 87 kernel/bpf/local_storage.c struct rb_root *root = &map->root; root 88 kernel/bpf/local_storage.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 109 kernel/bpf/local_storage.c rb_insert_color(&storage->node, root); root 312 kernel/bpf/local_storage.c map->root = RB_ROOT; root 322 kernel/bpf/local_storage.c WARN_ON(!RB_EMPTY_ROOT(&map->root)); root 585 kernel/bpf/local_storage.c struct rb_root *root; root 593 kernel/bpf/local_storage.c root = &map->root; root 594 kernel/bpf/local_storage.c rb_erase(&storage->node, root); root 33 kernel/bpf/lpm_trie.c struct lpm_trie_node __rcu *root; root 235 kernel/bpf/lpm_trie.c for (node = rcu_dereference(trie->root); node;) { root 345 kernel/bpf/lpm_trie.c slot = &trie->root; root 453 kernel/bpf/lpm_trie.c trim = &trie->root; root 603 kernel/bpf/lpm_trie.c slot = &trie->root; root 652 kernel/bpf/lpm_trie.c search_root = rcu_dereference(trie->root); root 48 kernel/cgroup/cgroup-internal.h struct cgroup_root *root; root 156 kernel/cgroup/cgroup-internal.h #define for_each_root(root) \ root 157 kernel/cgroup/cgroup-internal.h list_for_each_entry((root), &cgroup_roots, root_list) root 212 kernel/cgroup/cgroup-internal.h struct cgroup_root *root); root 218 kernel/cgroup/cgroup-internal.h void cgroup_free_root(struct cgroup_root *root); root 220 kernel/cgroup/cgroup-internal.h int cgroup_setup_root(struct cgroup_root *root, u16 ss_mask); root 61 kernel/cgroup/cgroup-v1.c struct cgroup_root *root; root 66 kernel/cgroup/cgroup-v1.c for_each_root(root) { root 69 kernel/cgroup/cgroup-v1.c if (root == &cgrp_dfl_root) root 73 kernel/cgroup/cgroup-v1.c from_cgrp = task_cgroup_from_root(from, root); root 550 kernel/cgroup/cgroup-v1.c BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); root 556 kernel/cgroup/cgroup-v1.c strlcpy(cgrp->root->release_agent_path, strstrip(buf), root 557 kernel/cgroup/cgroup-v1.c sizeof(cgrp->root->release_agent_path)); root 568 kernel/cgroup/cgroup-v1.c seq_puts(seq, cgrp->root->release_agent_path); root 673 kernel/cgroup/cgroup-v1.c ss->legacy_name, ss->root->hierarchy_id, root 674 kernel/cgroup/cgroup-v1.c atomic_read(&ss->root->nr_cgrps), root 786 kernel/cgroup/cgroup-v1.c agentbuf = kstrdup(cgrp->root->release_agent_path, GFP_KERNEL); root 852 kernel/cgroup/cgroup-v1.c struct cgroup_root *root = cgroup_root_from_kf(kf_root); root 857 kernel/cgroup/cgroup-v1.c if (root->subsys_mask & (1 << ssid)) root 859 kernel/cgroup/cgroup-v1.c if (root->flags & CGRP_ROOT_NOPREFIX) root 861 kernel/cgroup/cgroup-v1.c if (root->flags & CGRP_ROOT_XATTR) root 863 kernel/cgroup/cgroup-v1.c if (root->flags & CGRP_ROOT_CPUSET_V2_MODE) root 867 kernel/cgroup/cgroup-v1.c if (strlen(root->release_agent_path)) root 869 kernel/cgroup/cgroup-v1.c root->release_agent_path); root 872 kernel/cgroup/cgroup-v1.c if (test_bit(CGRP_CPUSET_CLONE_CHILDREN, &root->cgrp.flags)) root 874 kernel/cgroup/cgroup-v1.c if (strlen(root->name)) root 875 kernel/cgroup/cgroup-v1.c seq_show_option(seq, "name", root->name); root 1044 kernel/cgroup/cgroup-v1.c struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb); root 1045 kernel/cgroup/cgroup-v1.c struct cgroup_root *root = cgroup_root_from_kf(kf_root); root 1056 kernel/cgroup/cgroup-v1.c if (ctx->subsys_mask != root->subsys_mask || ctx->release_agent) root 1060 kernel/cgroup/cgroup-v1.c added_mask = ctx->subsys_mask & ~root->subsys_mask; root 1061 kernel/cgroup/cgroup-v1.c removed_mask = root->subsys_mask & ~ctx->subsys_mask; root 1064 kernel/cgroup/cgroup-v1.c if ((ctx->flags ^ root->flags) || root 1065 kernel/cgroup/cgroup-v1.c (ctx->name && strcmp(ctx->name, root->name))) { root 1067 kernel/cgroup/cgroup-v1.c ctx->flags, ctx->name ?: "", root->flags, root->name); root 1073 kernel/cgroup/cgroup-v1.c if (!list_empty(&root->cgrp.self.children)) { root 1078 kernel/cgroup/cgroup-v1.c ret = rebind_subsystems(root, added_mask); root 1086 kernel/cgroup/cgroup-v1.c strcpy(root->release_agent_path, ctx->release_agent); root 1090 kernel/cgroup/cgroup-v1.c trace_cgroup_remount(root); root 1116 kernel/cgroup/cgroup-v1.c struct cgroup_root *root; root 1134 kernel/cgroup/cgroup-v1.c ss->root == &cgrp_dfl_root) root 1137 kernel/cgroup/cgroup-v1.c if (!percpu_ref_tryget_live(&ss->root->cgrp.self.refcnt)) root 1139 kernel/cgroup/cgroup-v1.c cgroup_put(&ss->root->cgrp); root 1142 kernel/cgroup/cgroup-v1.c for_each_root(root) { root 1145 kernel/cgroup/cgroup-v1.c if (root == &cgrp_dfl_root) root 1154 kernel/cgroup/cgroup-v1.c if (strcmp(ctx->name, root->name)) root 1164 kernel/cgroup/cgroup-v1.c (ctx->subsys_mask != root->subsys_mask)) { root 1170 kernel/cgroup/cgroup-v1.c if (root->flags ^ ctx->flags) root 1173 kernel/cgroup/cgroup-v1.c ctx->root = root; root 1189 kernel/cgroup/cgroup-v1.c root = kzalloc(sizeof(*root), GFP_KERNEL); root 1190 kernel/cgroup/cgroup-v1.c if (!root) root 1193 kernel/cgroup/cgroup-v1.c ctx->root = root; root 1196 kernel/cgroup/cgroup-v1.c ret = cgroup_setup_root(root, ctx->subsys_mask); root 1198 kernel/cgroup/cgroup-v1.c cgroup_free_root(root); root 1214 kernel/cgroup/cgroup-v1.c if (!ret && !percpu_ref_tryget_live(&ctx->root->cgrp.self.refcnt)) root 1222 kernel/cgroup/cgroup-v1.c if (!ret && percpu_ref_is_dying(&ctx->root->cgrp.self.refcnt)) { root 1223 kernel/cgroup/cgroup-v1.c struct super_block *sb = fc->root->d_sb; root 1224 kernel/cgroup/cgroup-v1.c dput(fc->root); root 300 kernel/cgroup/cgroup.c return cgrp->root == &cgrp_dfl_root; root 421 kernel/cgroup/cgroup.c u16 root_ss_mask = cgrp->root->subsys_mask; root 452 kernel/cgroup/cgroup.c return cgrp->root->subsys_mask; root 1034 kernel/cgroup/cgroup.c BUG_ON(cgrp1->root != cgrp2->root); root 1043 kernel/cgroup/cgroup.c if (cgrp1->root == new_cgrp->root) { root 1064 kernel/cgroup/cgroup.c struct cgroup_root *root = cgrp->root; root 1076 kernel/cgroup/cgroup.c if (root->subsys_mask & (1UL << i)) { root 1234 kernel/cgroup/cgroup.c if (c->root == cgrp->root) root 1286 kernel/cgroup/cgroup.c return root_cgrp->root; root 1289 kernel/cgroup/cgroup.c static int cgroup_init_root_id(struct cgroup_root *root) root 1295 kernel/cgroup/cgroup.c id = idr_alloc_cyclic(&cgroup_hierarchy_idr, root, 0, 0, GFP_KERNEL); root 1299 kernel/cgroup/cgroup.c root->hierarchy_id = id; root 1303 kernel/cgroup/cgroup.c static void cgroup_exit_root_id(struct cgroup_root *root) root 1307 kernel/cgroup/cgroup.c idr_remove(&cgroup_hierarchy_idr, root->hierarchy_id); root 1310 kernel/cgroup/cgroup.c void cgroup_free_root(struct cgroup_root *root) root 1312 kernel/cgroup/cgroup.c if (root) { root 1313 kernel/cgroup/cgroup.c idr_destroy(&root->cgroup_idr); root 1314 kernel/cgroup/cgroup.c kfree(root); root 1318 kernel/cgroup/cgroup.c static void cgroup_destroy_root(struct cgroup_root *root) root 1320 kernel/cgroup/cgroup.c struct cgroup *cgrp = &root->cgrp; root 1323 kernel/cgroup/cgroup.c trace_cgroup_destroy_root(root); root 1327 kernel/cgroup/cgroup.c BUG_ON(atomic_read(&root->nr_cgrps)); root 1331 kernel/cgroup/cgroup.c WARN_ON(rebind_subsystems(&cgrp_dfl_root, root->subsys_mask)); root 1347 kernel/cgroup/cgroup.c if (!list_empty(&root->root_list)) { root 1348 kernel/cgroup/cgroup.c list_del(&root->root_list); root 1352 kernel/cgroup/cgroup.c cgroup_exit_root_id(root); root 1356 kernel/cgroup/cgroup.c kernfs_destroy_root(root->kf_root); root 1357 kernel/cgroup/cgroup.c cgroup_free_root(root); root 1365 kernel/cgroup/cgroup.c current_cgns_cgroup_from_root(struct cgroup_root *root) root 1376 kernel/cgroup/cgroup.c res = &root->cgrp; root 1383 kernel/cgroup/cgroup.c if (c->root == root) { root 1397 kernel/cgroup/cgroup.c struct cgroup_root *root) root 1405 kernel/cgroup/cgroup.c res = &root->cgrp; root 1406 kernel/cgroup/cgroup.c } else if (root == &cgrp_dfl_root) { root 1414 kernel/cgroup/cgroup.c if (c->root == root) { root 1430 kernel/cgroup/cgroup.c struct cgroup_root *root) root 1437 kernel/cgroup/cgroup.c return cset_cgroup_from_root(task_css_set(task), root); root 1474 kernel/cgroup/cgroup.c !(cgrp->root->flags & CGRP_ROOT_NOPREFIX)) { root 1733 kernel/cgroup/cgroup.c if (css_next_child(NULL, cgroup_css(&ss->root->cgrp, ss)) && root 1738 kernel/cgroup/cgroup.c if (ss->root != &cgrp_dfl_root && dst_root != &cgrp_dfl_root) root 1743 kernel/cgroup/cgroup.c struct cgroup_root *src_root = ss->root; root 1758 kernel/cgroup/cgroup.c ss->root = dst_root; root 1972 kernel/cgroup/cgroup.c struct cgroup_root *root = ctx->root; root 1973 kernel/cgroup/cgroup.c struct cgroup *cgrp = &root->cgrp; root 1975 kernel/cgroup/cgroup.c INIT_LIST_HEAD(&root->root_list); root 1976 kernel/cgroup/cgroup.c atomic_set(&root->nr_cgrps, 1); root 1977 kernel/cgroup/cgroup.c cgrp->root = root; root 1979 kernel/cgroup/cgroup.c idr_init(&root->cgroup_idr); root 1981 kernel/cgroup/cgroup.c root->flags = ctx->flags; root 1983 kernel/cgroup/cgroup.c strscpy(root->release_agent_path, ctx->release_agent, PATH_MAX); root 1985 kernel/cgroup/cgroup.c strscpy(root->name, ctx->name, MAX_CGROUP_ROOT_NAMELEN); root 1987 kernel/cgroup/cgroup.c set_bit(CGRP_CPUSET_CLONE_CHILDREN, &root->cgrp.flags); root 1990 kernel/cgroup/cgroup.c int cgroup_setup_root(struct cgroup_root *root, u16 ss_mask) root 1993 kernel/cgroup/cgroup.c struct cgroup *root_cgrp = &root->cgrp; root 2000 kernel/cgroup/cgroup.c ret = cgroup_idr_alloc(&root->cgroup_idr, root_cgrp, 1, 2, GFP_KERNEL); root 2022 kernel/cgroup/cgroup.c ret = cgroup_init_root_id(root); root 2026 kernel/cgroup/cgroup.c kf_sops = root == &cgrp_dfl_root ? root 2029 kernel/cgroup/cgroup.c root->kf_root = kernfs_create_root(kf_sops, root 2033 kernel/cgroup/cgroup.c if (IS_ERR(root->kf_root)) { root 2034 kernel/cgroup/cgroup.c ret = PTR_ERR(root->kf_root); root 2037 kernel/cgroup/cgroup.c root_cgrp->kn = root->kf_root->kn; root 2043 kernel/cgroup/cgroup.c ret = rebind_subsystems(root, ss_mask); root 2050 kernel/cgroup/cgroup.c trace_cgroup_setup_root(root); root 2057 kernel/cgroup/cgroup.c list_add(&root->root_list, &cgroup_roots); root 2073 kernel/cgroup/cgroup.c BUG_ON(atomic_read(&root->nr_cgrps) != 1); root 2080 kernel/cgroup/cgroup.c kernfs_destroy_root(root->kf_root); root 2081 kernel/cgroup/cgroup.c root->kf_root = NULL; root 2083 kernel/cgroup/cgroup.c cgroup_exit_root_id(root); root 2096 kernel/cgroup/cgroup.c ctx->kfc.root = ctx->root->kf_root; root 2109 kernel/cgroup/cgroup.c struct super_block *sb = fc->root->d_sb; root 2115 kernel/cgroup/cgroup.c cgrp = cset_cgroup_from_root(ctx->ns->root_cset, ctx->root); root 2121 kernel/cgroup/cgroup.c dput(fc->root); root 2127 kernel/cgroup/cgroup.c fc->root = nsdentry; root 2131 kernel/cgroup/cgroup.c cgroup_put(&ctx->root->cgrp); root 2157 kernel/cgroup/cgroup.c ctx->root = &cgrp_dfl_root; root 2214 kernel/cgroup/cgroup.c struct cgroup_root *root = cgroup_root_from_kf(kf_root); root 2223 kernel/cgroup/cgroup.c if (list_empty(&root->cgrp.self.children) && root != &cgrp_dfl_root && root 2224 kernel/cgroup/cgroup.c !percpu_ref_is_dying(&root->cgrp.self.refcnt)) root 2225 kernel/cgroup/cgroup.c percpu_ref_kill(&root->cgrp.self.refcnt); root 2226 kernel/cgroup/cgroup.c cgroup_put(&root->cgrp); root 2293 kernel/cgroup/cgroup.c struct cgroup *root = cset_cgroup_from_root(ns->root_cset, cgrp->root); root 2295 kernel/cgroup/cgroup.c return kernfs_path_from_node(cgrp->kn, root->kn, buf, buflen); root 2330 kernel/cgroup/cgroup.c struct cgroup_root *root; root 2338 kernel/cgroup/cgroup.c root = idr_get_next(&cgroup_hierarchy_idr, &hierarchy_id); root 2340 kernel/cgroup/cgroup.c if (root) { root 2341 kernel/cgroup/cgroup.c cgrp = task_cgroup_from_root(task, root); root 2663 kernel/cgroup/cgroup.c src_cgrp = cset_cgroup_from_root(src_cset, dst_cgrp->root); root 3750 kernel/cgroup/cgroup.c if ((cgrp->root->flags & CGRP_ROOT_NS_DELEGATE) && root 3958 kernel/cgroup/cgroup.c struct cgroup *root = &ss->root->cgrp; root 3965 kernel/cgroup/cgroup.c css_for_each_descendant_pre(css, cgroup_css(root, ss)) { root 3977 kernel/cgroup/cgroup.c kernfs_activate(root->kn); root 4249 kernel/cgroup/cgroup.c struct cgroup_subsys_state *root) root 4257 kernel/cgroup/cgroup.c return root; root 4265 kernel/cgroup/cgroup.c while (pos != root) { root 4344 kernel/cgroup/cgroup.c struct cgroup_subsys_state *root) root 4352 kernel/cgroup/cgroup.c return css_leftmost_descendant(root); root 4355 kernel/cgroup/cgroup.c if (pos == root) root 4989 kernel/cgroup/cgroup.c atomic_dec(&cgrp->root->nr_cgrps); root 5012 kernel/cgroup/cgroup.c cgroup_destroy_root(cgrp->root); root 5054 kernel/cgroup/cgroup.c cgroup_idr_remove(&cgrp->root->cgroup_idr, cgrp->id); root 5223 kernel/cgroup/cgroup.c struct cgroup_root *root = parent->root; root 5248 kernel/cgroup/cgroup.c cgrp->id = cgroup_idr_alloc(&root->cgroup_idr, NULL, 2, 0, GFP_KERNEL); root 5257 kernel/cgroup/cgroup.c cgrp->root = root; root 5312 kernel/cgroup/cgroup.c atomic_inc(&root->nr_cgrps); root 5319 kernel/cgroup/cgroup.c cgroup_idr_replace(&root->cgroup_idr, cgrp, cgrp->id); root 5335 kernel/cgroup/cgroup.c cgroup_idr_remove(&root->cgroup_idr, cgrp->id); root 5644 kernel/cgroup/cgroup.c ss->root = &cgrp_dfl_root; root 5697 kernel/cgroup/cgroup.c ctx.root = &cgrp_dfl_root; root 5875 kernel/cgroup/cgroup.c struct cgroup_root *root; root 5885 kernel/cgroup/cgroup.c for_each_root(root) { root 5890 kernel/cgroup/cgroup.c if (root == &cgrp_dfl_root && !cgrp_dfl_visible) root 5893 kernel/cgroup/cgroup.c seq_printf(m, "%d:", root->hierarchy_id); root 5894 kernel/cgroup/cgroup.c if (root != &cgrp_dfl_root) root 5896 kernel/cgroup/cgroup.c if (root->subsys_mask & (1 << ssid)) root 5899 kernel/cgroup/cgroup.c if (strlen(root->name)) root 5901 kernel/cgroup/cgroup.c root->name); root 5904 kernel/cgroup/cgroup.c cgrp = task_cgroup_from_root(tsk, root); root 367 kernel/cgroup/cpuset.c (cpuset_cgrp_subsys.root->flags & CGRP_ROOT_CPUSET_V2_MODE); root 105 kernel/cgroup/debug.c c->root->hierarchy_id, name_buf); root 85 kernel/cgroup/rstat.c struct cgroup *root, int cpu) root 89 kernel/cgroup/rstat.c if (pos == root) root 97 kernel/cgroup/rstat.c pos = root; root 708 kernel/dma/swiotlb.c struct dentry *root; root 710 kernel/dma/swiotlb.c root = debugfs_create_dir("swiotlb", NULL); root 711 kernel/dma/swiotlb.c debugfs_create_ulong("io_tlb_nslabs", 0400, root, &io_tlb_nslabs); root 712 kernel/dma/swiotlb.c debugfs_create_ulong("io_tlb_used", 0400, root, &io_tlb_used); root 479 kernel/irq/internals.h void irq_domain_debugfs_init(struct dentry *root); root 481 kernel/irq/internals.h static inline void irq_domain_debugfs_init(struct dentry *root) root 1787 kernel/irq/irqdomain.c void __init irq_domain_debugfs_init(struct dentry *root) root 1791 kernel/irq/irqdomain.c domain_dir = debugfs_create_dir("domains", root); root 1881 kernel/locking/lockdep.c find_usage_forwards(struct lock_list *root, unsigned long usage_mask, root 1888 kernel/locking/lockdep.c result = __bfs_forwards(root, &usage_mask, usage_match, target_entry); root 1904 kernel/locking/lockdep.c find_usage_backwards(struct lock_list *root, unsigned long usage_mask, root 1911 kernel/locking/lockdep.c result = __bfs_backwards(root, &usage_mask, usage_match, target_entry); root 1947 kernel/locking/lockdep.c struct lock_list *root) root 1961 kernel/locking/lockdep.c if (depth == 0 && (entry != root)) { root 3127 kernel/locking/lockdep.c struct lock_list *root, struct lock_list *other, root 3158 kernel/locking/lockdep.c if (depth == 0 && (entry != root)) { root 3165 kernel/locking/lockdep.c } while (entry && entry != root && (depth >= 0)); root 3167 kernel/locking/lockdep.c print_irq_lock_scenario(root, other, root 3168 kernel/locking/lockdep.c middle ? middle->class : root->class, other->class); root 3170 kernel/locking/lockdep.c print_irq_lock_scenario(other, root, root 3171 kernel/locking/lockdep.c middle ? middle->class : other->class, root->class); root 3176 kernel/locking/lockdep.c root->trace = save_trace(); root 3177 kernel/locking/lockdep.c if (!root->trace) root 3179 kernel/locking/lockdep.c print_shortest_lock_dependencies(other, root); root 3194 kernel/locking/lockdep.c struct lock_list root; root 3197 kernel/locking/lockdep.c root.parent = NULL; root 3198 kernel/locking/lockdep.c root.class = hlock_class(this); root 3199 kernel/locking/lockdep.c ret = find_usage_forwards(&root, lock_flag(bit), &target_entry); root 3207 kernel/locking/lockdep.c print_irq_inversion_bug(curr, &root, target_entry, root 3221 kernel/locking/lockdep.c struct lock_list root; root 3224 kernel/locking/lockdep.c root.parent = NULL; root 3225 kernel/locking/lockdep.c root.class = hlock_class(this); root 3226 kernel/locking/lockdep.c ret = find_usage_backwards(&root, lock_flag(bit), &target_entry); root 3234 kernel/locking/lockdep.c print_irq_inversion_bug(curr, &root, target_entry, root 148 kernel/module.c struct latch_tree_root root; root 160 kernel/module.c latch_tree_insert(&node->node, &mod_tree.root, &mod_tree_ops); root 165 kernel/module.c latch_tree_erase(&node->node, &mod_tree.root, &mod_tree_ops); root 198 kernel/module.c ltn = latch_tree_find((void *)addr, &mod_tree.root, &mod_tree_ops); root 107 kernel/resource.c struct resource *root = PDE_DATA(file_inode(m->file)); root 110 kernel/resource.c int width = root->end < 0x10000 ? 4 : 8; root 114 kernel/resource.c if (p->parent == root) root 185 kernel/resource.c static struct resource * __request_resource(struct resource *root, struct resource *new) root 192 kernel/resource.c return root; root 193 kernel/resource.c if (start < root->start) root 194 kernel/resource.c return root; root 195 kernel/resource.c if (end > root->end) root 196 kernel/resource.c return root; root 197 kernel/resource.c p = &root->child; root 203 kernel/resource.c new->parent = root; root 279 kernel/resource.c struct resource *request_resource_conflict(struct resource *root, struct resource *new) root 284 kernel/resource.c conflict = __request_resource(root, new); root 296 kernel/resource.c int request_resource(struct resource *root, struct resource *new) root 300 kernel/resource.c conflict = request_resource_conflict(root, new); root 592 kernel/resource.c static int __find_resource(struct resource *root, struct resource *old, root 597 kernel/resource.c struct resource *this = root->child; root 600 kernel/resource.c tmp.start = root->start; root 605 kernel/resource.c if (this && this->start == root->start) { root 613 kernel/resource.c tmp.end = root->end; root 638 kernel/resource.c next: if (!this || this->end == root->end) root 651 kernel/resource.c static int find_resource(struct resource *root, struct resource *new, root 655 kernel/resource.c return __find_resource(root, NULL, new, size, constraint); root 668 kernel/resource.c static int reallocate_resource(struct resource *root, struct resource *old, root 678 kernel/resource.c if ((err = __find_resource(root, old, &new, newsize, constraint))) root 698 kernel/resource.c conflict = __request_resource(root, old); root 719 kernel/resource.c int allocate_resource(struct resource *root, struct resource *new, root 743 kernel/resource.c return reallocate_resource(root, new, size, &constraint); root 747 kernel/resource.c err = find_resource(root, new, size, &constraint); root 748 kernel/resource.c if (err >= 0 && __request_resource(root, new)) root 763 kernel/resource.c struct resource *lookup_resource(struct resource *root, resource_size_t start) root 768 kernel/resource.c for (res = root->child; res; res = res->sibling) { root 883 kernel/resource.c void insert_resource_expand_to_fit(struct resource *root, struct resource *new) root 892 kernel/resource.c conflict = __insert_resource(root, new); root 895 kernel/resource.c if (conflict == root) root 995 kernel/resource.c __reserve_region_with_split(struct resource *root, resource_size_t start, root 998 kernel/resource.c struct resource *parent = root; root 1002 kernel/resource.c int type = resource_type(root); root 1056 kernel/resource.c reserve_region_with_split(struct resource *root, resource_size_t start, root 1062 kernel/resource.c if (root->start > start || root->end < end) { root 1065 kernel/resource.c root); root 1066 kernel/resource.c if (start > root->end || end < root->start) root 1069 kernel/resource.c if (end > root->end) root 1070 kernel/resource.c end = root->end; root 1071 kernel/resource.c if (start < root->start) root 1072 kernel/resource.c start = root->start; root 1080 kernel/resource.c __reserve_region_with_split(root, start, end, name); root 1379 kernel/resource.c int devm_request_resource(struct device *dev, struct resource *root, root 1390 kernel/resource.c conflict = request_resource_conflict(root, new); root 334 kernel/sched/deadline.c return dl_rq->root.rb_leftmost == &dl_se->rb_node; root 358 kernel/sched/deadline.c dl_rq->root = RB_ROOT_CACHED; root 1358 kernel/sched/deadline.c struct rb_node *leftmost = dl_rq->root.rb_leftmost; root 1405 kernel/sched/deadline.c struct rb_node **link = &dl_rq->root.rb_root.rb_node; root 1424 kernel/sched/deadline.c rb_insert_color_cached(&dl_se->rb_node, &dl_rq->root, leftmost); root 1436 kernel/sched/deadline.c rb_erase_cached(&dl_se->rb_node, &dl_rq->root); root 1768 kernel/sched/deadline.c struct rb_node *left = rb_first_cached(&dl_rq->root); root 640 kernel/sched/sched.h struct rb_root_cached root; root 77 kernel/trace/trace_stat.c static int insert_stat(struct rb_root *root, void *stat, cmp_stat_t cmp) root 79 kernel/trace/trace_stat.c struct rb_node **new = &(root->rb_node), *parent = NULL; root 106 kernel/trace/trace_stat.c rb_insert_color(&data->node, root); root 128 kernel/trace/trace_stat.c struct rb_root *root = &session->stat_root; root 143 kernel/trace/trace_stat.c ret = insert_stat(root, stat, ts->stat_cmp); root 157 kernel/trace/trace_stat.c ret = insert_stat(root, stat, ts->stat_cmp); root 24 kernel/ucount.c set_lookup(struct ctl_table_root *root) root 19 lib/assoc_array.c static int assoc_array_subtree_iterate(const struct assoc_array_ptr *root, root 31 lib/assoc_array.c cursor = root; root 138 lib/assoc_array.c struct assoc_array_ptr *root = READ_ONCE(array->root); /* Address dependency. */ root 140 lib/assoc_array.c if (!root) root 142 lib/assoc_array.c return assoc_array_subtree_iterate(root, NULL, iterator, iterator_data); root 185 lib/assoc_array.c cursor = READ_ONCE(array->root); /* Address dependency. */ root 343 lib/assoc_array.c static void assoc_array_destroy_subtree(struct assoc_array_ptr *root, root 353 lib/assoc_array.c cursor = root; root 444 lib/assoc_array.c assoc_array_destroy_subtree(array->root, ops); root 445 lib/assoc_array.c array->root = NULL; root 464 lib/assoc_array.c edit->set[0].ptr = &edit->array->root; root 704 lib/assoc_array.c edit->set[0].ptr = &edit->array->root; root 825 lib/assoc_array.c edit->set[0].ptr = &edit->array->root; root 1140 lib/assoc_array.c edit->set[1].ptr = &array->root; root 1143 lib/assoc_array.c edit->excised_subtree = array->root; root 1231 lib/assoc_array.c edit->set[1].ptr = &array->root; root 1282 lib/assoc_array.c if (!array->root) root 1290 lib/assoc_array.c edit->set[1].ptr = &array->root; root 1292 lib/assoc_array.c edit->excised_subtree = array->root; root 1374 lib/assoc_array.c if (edit->array->root == NULL) { root 1469 lib/assoc_array.c if (!array->root) root 1478 lib/assoc_array.c edit->set[0].ptr = &array->root; root 1479 lib/assoc_array.c edit->excised_subtree = array->root; root 1483 lib/assoc_array.c cursor = array->root; root 56 lib/generic-radix-tree.c struct genradix_root *r = READ_ONCE(radix->root); root 107 lib/generic-radix-tree.c struct genradix_root *v = READ_ONCE(radix->root); root 131 lib/generic-radix-tree.c if ((v = cmpxchg_release(&radix->root, r, new_root)) == r) { root 170 lib/generic-radix-tree.c r = READ_ONCE(radix->root); root 232 lib/generic-radix-tree.c struct genradix_root *r = xchg(&radix->root, NULL); root 23 lib/interval_tree_test.c static struct rb_root_cached root = RB_ROOT_CACHED; root 30 lib/interval_tree_test.c search(struct rb_root_cached *root, unsigned long start, unsigned long last) root 35 lib/interval_tree_test.c for (node = interval_tree_iter_first(root, start, last); node; root 88 lib/interval_tree_test.c interval_tree_insert(nodes + j, &root); root 90 lib/interval_tree_test.c interval_tree_remove(nodes + j, &root); root 102 lib/interval_tree_test.c interval_tree_insert(nodes + j, &root); root 112 lib/interval_tree_test.c results += search(&root, start, last); root 104 lib/radix-tree.c static inline gfp_t root_gfp_mask(const struct radix_tree_root *root) root 106 lib/radix-tree.c return root->xa_flags & (__GFP_BITS_MASK & ~GFP_ZONEMASK); root 127 lib/radix-tree.c static inline void root_tag_set(struct radix_tree_root *root, unsigned tag) root 129 lib/radix-tree.c root->xa_flags |= (__force gfp_t)(1 << (tag + ROOT_TAG_SHIFT)); root 132 lib/radix-tree.c static inline void root_tag_clear(struct radix_tree_root *root, unsigned tag) root 134 lib/radix-tree.c root->xa_flags &= (__force gfp_t)~(1 << (tag + ROOT_TAG_SHIFT)); root 137 lib/radix-tree.c static inline void root_tag_clear_all(struct radix_tree_root *root) root 139 lib/radix-tree.c root->xa_flags &= (__force gfp_t)((1 << ROOT_TAG_SHIFT) - 1); root 142 lib/radix-tree.c static inline int root_tag_get(const struct radix_tree_root *root, unsigned tag) root 144 lib/radix-tree.c return (__force int)root->xa_flags & (1 << (tag + ROOT_TAG_SHIFT)); root 147 lib/radix-tree.c static inline unsigned root_tags_get(const struct radix_tree_root *root) root 149 lib/radix-tree.c return (__force unsigned)root->xa_flags >> ROOT_TAG_SHIFT; root 152 lib/radix-tree.c static inline bool is_idr(const struct radix_tree_root *root) root 154 lib/radix-tree.c return !!(root->xa_flags & ROOT_IS_IDR); root 243 lib/radix-tree.c struct radix_tree_root *root, root 294 lib/radix-tree.c ret->array = root; root 397 lib/radix-tree.c static unsigned radix_tree_load_root(const struct radix_tree_root *root, root 400 lib/radix-tree.c struct radix_tree_node *node = rcu_dereference_raw(root->xa_head); root 417 lib/radix-tree.c static int radix_tree_extend(struct radix_tree_root *root, gfp_t gfp, root 429 lib/radix-tree.c entry = rcu_dereference_raw(root->xa_head); root 430 lib/radix-tree.c if (!entry && (!is_idr(root) || root_tag_get(root, IDR_FREE))) root 435 lib/radix-tree.c root, shift, 0, 1, 0); root 439 lib/radix-tree.c if (is_idr(root)) { root 441 lib/radix-tree.c if (!root_tag_get(root, IDR_FREE)) { root 443 lib/radix-tree.c root_tag_set(root, IDR_FREE); root 448 lib/radix-tree.c if (root_tag_get(root, tag)) root 466 lib/radix-tree.c rcu_assign_pointer(root->xa_head, entry); root 477 lib/radix-tree.c static inline bool radix_tree_shrink(struct radix_tree_root *root) root 482 lib/radix-tree.c struct radix_tree_node *node = rcu_dereference_raw(root->xa_head); root 504 lib/radix-tree.c if (!node->shift && is_idr(root)) root 517 lib/radix-tree.c root->xa_head = (void __rcu *)child; root 518 lib/radix-tree.c if (is_idr(root) && !tag_get(node, IDR_FREE, 0)) root 519 lib/radix-tree.c root_tag_clear(root, IDR_FREE); root 552 lib/radix-tree.c static bool delete_node(struct radix_tree_root *root, root 562 lib/radix-tree.c rcu_dereference_raw(root->xa_head)) root 563 lib/radix-tree.c deleted |= radix_tree_shrink(root); root 576 lib/radix-tree.c if (!is_idr(root)) root 577 lib/radix-tree.c root_tag_clear_all(root); root 578 lib/radix-tree.c root->xa_head = NULL; root 607 lib/radix-tree.c static int __radix_tree_create(struct radix_tree_root *root, root 612 lib/radix-tree.c void __rcu **slot = (void __rcu **)&root->xa_head; root 616 lib/radix-tree.c gfp_t gfp = root_gfp_mask(root); root 618 lib/radix-tree.c shift = radix_tree_load_root(root, &child, &maxindex); root 622 lib/radix-tree.c int error = radix_tree_extend(root, gfp, max, shift); root 626 lib/radix-tree.c child = rcu_dereference_raw(root->xa_head); root 633 lib/radix-tree.c child = radix_tree_node_alloc(gfp, node, root, shift, root 712 lib/radix-tree.c int radix_tree_insert(struct radix_tree_root *root, unsigned long index, root 721 lib/radix-tree.c error = __radix_tree_create(root, index, &node, &slot); root 735 lib/radix-tree.c BUG_ON(root_tags_get(root)); root 756 lib/radix-tree.c void *__radix_tree_lookup(const struct radix_tree_root *root, root 766 lib/radix-tree.c slot = (void __rcu **)&root->xa_head; root 767 lib/radix-tree.c radix_tree_load_root(root, &node, &maxindex); root 803 lib/radix-tree.c void __rcu **radix_tree_lookup_slot(const struct radix_tree_root *root, root 808 lib/radix-tree.c if (!__radix_tree_lookup(root, index, NULL, &slot)) root 826 lib/radix-tree.c void *radix_tree_lookup(const struct radix_tree_root *root, unsigned long index) root 828 lib/radix-tree.c return __radix_tree_lookup(root, index, NULL, NULL); root 843 lib/radix-tree.c static bool node_tag_get(const struct radix_tree_root *root, root 849 lib/radix-tree.c return root_tag_get(root, tag); root 859 lib/radix-tree.c static int calculate_count(struct radix_tree_root *root, root 863 lib/radix-tree.c if (is_idr(root)) { root 865 lib/radix-tree.c bool free = node_tag_get(root, node, IDR_FREE, offset); root 884 lib/radix-tree.c void __radix_tree_replace(struct radix_tree_root *root, root 890 lib/radix-tree.c int count = calculate_count(root, node, slot, item, old); root 897 lib/radix-tree.c WARN_ON_ONCE(!node && (slot != (void __rcu **)&root->xa_head) && root 904 lib/radix-tree.c delete_node(root, node); root 923 lib/radix-tree.c void radix_tree_replace_slot(struct radix_tree_root *root, root 926 lib/radix-tree.c __radix_tree_replace(root, NULL, slot, item); root 939 lib/radix-tree.c void radix_tree_iter_replace(struct radix_tree_root *root, root 943 lib/radix-tree.c __radix_tree_replace(root, iter->node, slot, item); root 946 lib/radix-tree.c static void node_tag_set(struct radix_tree_root *root, root 958 lib/radix-tree.c if (!root_tag_get(root, tag)) root 959 lib/radix-tree.c root_tag_set(root, tag); root 975 lib/radix-tree.c void *radix_tree_tag_set(struct radix_tree_root *root, root 981 lib/radix-tree.c radix_tree_load_root(root, &node, &maxindex); root 996 lib/radix-tree.c if (!root_tag_get(root, tag)) root 997 lib/radix-tree.c root_tag_set(root, tag); root 1003 lib/radix-tree.c static void node_tag_clear(struct radix_tree_root *root, root 1019 lib/radix-tree.c if (root_tag_get(root, tag)) root 1020 lib/radix-tree.c root_tag_clear(root, tag); root 1037 lib/radix-tree.c void *radix_tree_tag_clear(struct radix_tree_root *root, root 1044 lib/radix-tree.c radix_tree_load_root(root, &node, &maxindex); root 1056 lib/radix-tree.c node_tag_clear(root, parent, tag, offset); root 1068 lib/radix-tree.c void radix_tree_iter_tag_clear(struct radix_tree_root *root, root 1071 lib/radix-tree.c node_tag_clear(root, iter->node, tag, iter_offset(iter)); root 1089 lib/radix-tree.c int radix_tree_tag_get(const struct radix_tree_root *root, root 1095 lib/radix-tree.c if (!root_tag_get(root, tag)) root 1098 lib/radix-tree.c radix_tree_load_root(root, &node, &maxindex); root 1163 lib/radix-tree.c void __rcu **radix_tree_next_chunk(const struct radix_tree_root *root, root 1170 lib/radix-tree.c if ((flags & RADIX_TREE_ITER_TAGGED) && !root_tag_get(root, tag)) root 1187 lib/radix-tree.c radix_tree_load_root(root, &child, &maxindex); root 1199 lib/radix-tree.c return (void __rcu **)&root->xa_head; root 1271 lib/radix-tree.c radix_tree_gang_lookup(const struct radix_tree_root *root, void **results, root 1281 lib/radix-tree.c radix_tree_for_each_slot(slot, root, &iter, first_index) { root 1311 lib/radix-tree.c radix_tree_gang_lookup_tag(const struct radix_tree_root *root, void **results, root 1322 lib/radix-tree.c radix_tree_for_each_tagged(slot, root, &iter, first_index, tag) { root 1352 lib/radix-tree.c radix_tree_gang_lookup_tag_slot(const struct radix_tree_root *root, root 1363 lib/radix-tree.c radix_tree_for_each_tagged(slot, root, &iter, first_index, tag) { root 1373 lib/radix-tree.c static bool __radix_tree_delete(struct radix_tree_root *root, root 1381 lib/radix-tree.c if (is_idr(root)) root 1382 lib/radix-tree.c node_tag_set(root, node, IDR_FREE, offset); root 1385 lib/radix-tree.c node_tag_clear(root, node, tag, offset); root 1388 lib/radix-tree.c return node && delete_node(root, node); root 1403 lib/radix-tree.c void radix_tree_iter_delete(struct radix_tree_root *root, root 1406 lib/radix-tree.c if (__radix_tree_delete(root, iter->node, slot)) root 1422 lib/radix-tree.c void *radix_tree_delete_item(struct radix_tree_root *root, root 1429 lib/radix-tree.c entry = __radix_tree_lookup(root, index, &node, &slot); root 1432 lib/radix-tree.c if (!entry && (!is_idr(root) || node_tag_get(root, node, IDR_FREE, root 1439 lib/radix-tree.c __radix_tree_delete(root, node, slot); root 1454 lib/radix-tree.c void *radix_tree_delete(struct radix_tree_root *root, unsigned long index) root 1456 lib/radix-tree.c return radix_tree_delete_item(root, index, NULL); root 1465 lib/radix-tree.c int radix_tree_tagged(const struct radix_tree_root *root, unsigned int tag) root 1467 lib/radix-tree.c return root_tag_get(root, tag); root 1485 lib/radix-tree.c void __rcu **idr_get_free(struct radix_tree_root *root, root 1490 lib/radix-tree.c void __rcu **slot = (void __rcu **)&root->xa_head; root 1495 lib/radix-tree.c shift = radix_tree_load_root(root, &child, &maxindex); root 1496 lib/radix-tree.c if (!radix_tree_tagged(root, IDR_FREE)) root 1502 lib/radix-tree.c int error = radix_tree_extend(root, gfp, start, shift); root 1506 lib/radix-tree.c child = rcu_dereference_raw(root->xa_head); root 1515 lib/radix-tree.c child = radix_tree_node_alloc(gfp, node, root, shift, root 76 lib/rbtree.c struct rb_root *root, int color) root 81 lib/rbtree.c __rb_change_child(old, new, parent, root); root 85 lib/rbtree.c __rb_insert(struct rb_node *node, struct rb_root *root, root 180 lib/rbtree.c __rb_rotate_set_parents(gparent, parent, root, RB_RED); root 215 lib/rbtree.c __rb_rotate_set_parents(gparent, parent, root, RB_RED); root 227 lib/rbtree.c ____rb_erase_color(struct rb_node *parent, struct rb_root *root, root 256 lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 348 lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 360 lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 401 lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 410 lib/rbtree.c void __rb_erase_color(struct rb_node *parent, struct rb_root *root, root 413 lib/rbtree.c ____rb_erase_color(parent, root, augment_rotate); root 434 lib/rbtree.c void rb_insert_color(struct rb_node *node, struct rb_root *root) root 436 lib/rbtree.c __rb_insert(node, root, dummy_rotate); root 440 lib/rbtree.c void rb_erase(struct rb_node *node, struct rb_root *root) root 443 lib/rbtree.c rebalance = __rb_erase_augmented(node, root, &dummy_callbacks); root 445 lib/rbtree.c ____rb_erase_color(rebalance, root, dummy_rotate); root 456 lib/rbtree.c void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, root 459 lib/rbtree.c __rb_insert(node, root, augment_rotate); root 466 lib/rbtree.c struct rb_node *rb_first(const struct rb_root *root) root 470 lib/rbtree.c n = root->rb_node; root 479 lib/rbtree.c struct rb_node *rb_last(const struct rb_root *root) root 483 lib/rbtree.c n = root->rb_node; root 554 lib/rbtree.c struct rb_root *root) root 566 lib/rbtree.c __rb_change_child(victim, new, parent, root); root 571 lib/rbtree.c struct rb_root *root) root 588 lib/rbtree.c __rb_change_child_rcu(victim, new, parent, root); root 623 lib/rbtree.c struct rb_node *rb_first_postorder(const struct rb_root *root) root 625 lib/rbtree.c if (!root->rb_node) root 628 lib/rbtree.c return rb_left_deepest_node(root->rb_node); root 27 lib/rbtree_test.c static struct rb_root_cached root = RB_ROOT_CACHED; root 32 lib/rbtree_test.c static void insert(struct test_node *node, struct rb_root_cached *root) root 34 lib/rbtree_test.c struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; root 46 lib/rbtree_test.c rb_insert_color(&node->rb, &root->rb_root); root 49 lib/rbtree_test.c static void insert_cached(struct test_node *node, struct rb_root_cached *root) root 51 lib/rbtree_test.c struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; root 66 lib/rbtree_test.c rb_insert_color_cached(&node->rb, root, leftmost); root 69 lib/rbtree_test.c static inline void erase(struct test_node *node, struct rb_root_cached *root) root 71 lib/rbtree_test.c rb_erase(&node->rb, &root->rb_root); root 74 lib/rbtree_test.c static inline void erase_cached(struct test_node *node, struct rb_root_cached *root) root 76 lib/rbtree_test.c rb_erase_cached(&node->rb, root); root 86 lib/rbtree_test.c struct rb_root_cached *root) root 88 lib/rbtree_test.c struct rb_node **new = &root->rb_root.rb_node, *rb_parent = NULL; root 106 lib/rbtree_test.c rb_insert_augmented(&node->rb, &root->rb_root, &augment_callbacks); root 110 lib/rbtree_test.c struct rb_root_cached *root) root 112 lib/rbtree_test.c struct rb_node **new = &root->rb_root.rb_node, *rb_parent = NULL; root 133 lib/rbtree_test.c rb_insert_augmented_cached(&node->rb, root, root 138 lib/rbtree_test.c static void erase_augmented(struct test_node *node, struct rb_root_cached *root) root 140 lib/rbtree_test.c rb_erase_augmented(&node->rb, &root->rb_root, &augment_callbacks); root 144 lib/rbtree_test.c struct rb_root_cached *root) root 146 lib/rbtree_test.c rb_erase_augmented_cached(&node->rb, root, &augment_callbacks); root 175 lib/rbtree_test.c rbtree_postorder_for_each_entry_safe(cur, n, &root.rb_root, rb) root 185 lib/rbtree_test.c for (rb = rb_first_postorder(&root.rb_root); rb; rb = rb_next_postorder(rb)) root 197 lib/rbtree_test.c for (rb = rb_first(&root.rb_root); rb; rb = rb_next(rb)) { root 212 lib/rbtree_test.c WARN_ON_ONCE(count < (1 << black_path_count(rb_last(&root.rb_root))) - 1); root 223 lib/rbtree_test.c for (rb = rb_first(&root.rb_root); rb; rb = rb_next(rb)) { root 261 lib/rbtree_test.c insert(nodes + j, &root); root 263 lib/rbtree_test.c erase(nodes + j, &root); root 277 lib/rbtree_test.c insert_cached(nodes + j, &root); root 279 lib/rbtree_test.c erase_cached(nodes + j, &root); root 290 lib/rbtree_test.c insert(nodes + i, &root); root 295 lib/rbtree_test.c for (node = rb_first(&root.rb_root); node; node = rb_next(node)) root 309 lib/rbtree_test.c node = rb_first(&root.rb_root); root 321 lib/rbtree_test.c node = rb_first_cached(&root); root 330 lib/rbtree_test.c erase(nodes + i, &root); root 337 lib/rbtree_test.c insert(nodes + j, &root); root 341 lib/rbtree_test.c erase(nodes + j, &root); root 354 lib/rbtree_test.c insert_augmented(nodes + j, &root); root 356 lib/rbtree_test.c erase_augmented(nodes + j, &root); root 369 lib/rbtree_test.c insert_augmented_cached(nodes + j, &root); root 371 lib/rbtree_test.c erase_augmented_cached(nodes + j, &root); root 384 lib/rbtree_test.c insert_augmented(nodes + j, &root); root 388 lib/rbtree_test.c erase_augmented(nodes + j, &root); root 37 lib/reed_solomon/decode_rs.c uint16_t *root = rsc->buffers + RS_DECODE_ROOT * (nroots + 1); root 217 lib/reed_solomon/decode_rs.c root[count] = i; root 258 lib/reed_solomon/decode_rs.c i * root[j])]; root 267 lib/reed_solomon/decode_rs.c num2 = alpha_to[rs_modnn(rs, root[j] * (fcr - 1) + nn)]; root 275 lib/reed_solomon/decode_rs.c i * root[j])]; root 73 lib/reed_solomon/reed_solomon.c int i, j, sr, root, iprim; root 135 lib/reed_solomon/reed_solomon.c for (i = 0, root = fcr * prim; i < nroots; i++, root += prim) { root 142 lib/reed_solomon/reed_solomon.c rs->index_of[rs->genpoly[j]] + root)]; root 149 lib/reed_solomon/reed_solomon.c rs->index_of[rs->genpoly[0]] + root)]; root 131 lib/test_objagg.c struct root *root; root 133 lib/test_objagg.c root = kzalloc(sizeof(*root), GFP_KERNEL); root 134 lib/test_objagg.c if (!root) root 136 lib/test_objagg.c memcpy(&root->key, key, sizeof(root->key)); root 137 lib/test_objagg.c memcpy(root->buf, world->next_root_buf, sizeof(root->buf)); root 139 lib/test_objagg.c return root; root 144 lib/test_objagg.c struct root *root = root_priv; root 148 lib/test_objagg.c kfree(root); root 156 lib/test_objagg.c const struct root *root; root 182 lib/test_objagg.c root = objagg_obj_root_priv(objagg_obj); root 183 lib/test_objagg.c if (root->key.id != key_id) { root 189 lib/test_objagg.c memcmp(world->next_root_buf, root->buf, sizeof(root->buf))) { root 29 lib/zlib_inflate/inftrees.c unsigned root; /* number of index bits for root table */ root 99 lib/zlib_inflate/inftrees.c root = *bits; root 102 lib/zlib_inflate/inftrees.c if (root > max) root = max; root 114 lib/zlib_inflate/inftrees.c if (root < min) root = min; root 191 lib/zlib_inflate/inftrees.c curr = root; /* current table index bits */ root 194 lib/zlib_inflate/inftrees.c used = 1U << root; /* use root table entries */ root 246 lib/zlib_inflate/inftrees.c if (len > root && (huff & mask) != low) { root 249 lib/zlib_inflate/inftrees.c drop = root; root 272 lib/zlib_inflate/inftrees.c (*table)[low].bits = (unsigned char)root; root 291 lib/zlib_inflate/inftrees.c len = root; root 313 lib/zlib_inflate/inftrees.c *bits = root; root 306 mm/cleancache.c struct dentry *root = debugfs_create_dir("cleancache", NULL); root 308 mm/cleancache.c debugfs_create_u64("succ_gets", 0444, root, &cleancache_succ_gets); root 309 mm/cleancache.c debugfs_create_u64("failed_gets", 0444, root, &cleancache_failed_gets); root 310 mm/cleancache.c debugfs_create_u64("puts", 0444, root, &cleancache_puts); root 311 mm/cleancache.c debugfs_create_u64("invalidates", 0444, root, &cleancache_invalidates); root 485 mm/frontswap.c struct dentry *root = debugfs_create_dir("frontswap", NULL); root 486 mm/frontswap.c if (root == NULL) root 488 mm/frontswap.c debugfs_create_u64("loads", 0444, root, &frontswap_loads); root 489 mm/frontswap.c debugfs_create_u64("succ_stores", 0444, root, &frontswap_succ_stores); root 490 mm/frontswap.c debugfs_create_u64("failed_stores", 0444, root, root 492 mm/frontswap.c debugfs_create_u64("invalidates", 0444, root, &frontswap_invalidates); root 30 mm/interval_tree.c struct rb_root_cached *root) root 57 mm/interval_tree.c rb_insert_augmented(&node->shared.rb, &root->rb_root, root 76 mm/interval_tree.c struct rb_root_cached *root) root 82 mm/interval_tree.c __anon_vma_interval_tree_insert(node, root); root 86 mm/interval_tree.c struct rb_root_cached *root) root 88 mm/interval_tree.c __anon_vma_interval_tree_remove(node, root); root 92 mm/interval_tree.c anon_vma_interval_tree_iter_first(struct rb_root_cached *root, root 95 mm/interval_tree.c return __anon_vma_interval_tree_iter_first(root, first, last); root 591 mm/ksm.c struct rb_root *root) root 609 mm/ksm.c rb_replace_node(&dup->node, &chain->node, root); root 624 mm/ksm.c struct rb_root *root) root 626 mm/ksm.c rb_erase(&chain->node, root); root 914 mm/ksm.c struct rb_root *root) root 934 mm/ksm.c free_stable_node_chain(stable_node, root); root 1356 mm/ksm.c struct rb_root *root, root 1429 mm/ksm.c root); root 1474 mm/ksm.c struct rb_root *root) root 1479 mm/ksm.c free_stable_node_chain(stable_node, root); root 1502 mm/ksm.c struct rb_root *root, root 1518 mm/ksm.c return stable_node_dup(_stable_node_dup, _stable_node, root, root 1524 mm/ksm.c struct rb_root *root) root 1526 mm/ksm.c return __stable_node_chain(s_n_d, s_n, root, true); root 1531 mm/ksm.c struct rb_root *root) root 1536 mm/ksm.c tree_page = __stable_node_chain(s_n_d, &s_n, root, false); root 1554 mm/ksm.c struct rb_root *root; root 1568 mm/ksm.c root = root_stable_tree + nid; root 1570 mm/ksm.c new = &root->rb_node; root 1580 mm/ksm.c tree_page = chain_prune(&stable_node_dup, &stable_node, root); root 1600 mm/ksm.c root); root 1704 mm/ksm.c rb_insert_color(&page_node->node, root); root 1731 mm/ksm.c root); root 1737 mm/ksm.c rb_erase(&stable_node_dup->node, root); root 1777 mm/ksm.c root); root 1807 mm/ksm.c struct rb_root *root; root 1815 mm/ksm.c root = root_stable_tree + nid; root 1818 mm/ksm.c new = &root->rb_node; root 1827 mm/ksm.c tree_page = chain(&stable_node_dup, stable_node, root); root 1835 mm/ksm.c root); root 1891 mm/ksm.c rb_insert_color(&stable_node_dup->node, root); root 1896 mm/ksm.c stable_node = alloc_stable_node_chain(orig, root); root 1928 mm/ksm.c struct rb_root *root; root 1933 mm/ksm.c root = root_unstable_tree + nid; root 1934 mm/ksm.c new = &root->rb_node; root 1983 mm/ksm.c rb_insert_color(&rmap_item->node, root); root 2579 mm/ksm.c } else if (anon_vma->root == vma->anon_vma->root && root 2742 mm/ksm.c struct rb_root *root) root 2759 mm/ksm.c free_stable_node_chain(stable_node, root); root 2008 mm/memblock.c struct dentry *root = debugfs_create_dir("memblock", NULL); root 2010 mm/memblock.c debugfs_create_file("memory", 0444, root, root 2012 mm/memblock.c debugfs_create_file("reserved", 0444, root, root 2015 mm/memblock.c debugfs_create_file("physmem", 0444, root, root 239 mm/memcontrol.c #define for_each_mem_cgroup_tree(iter, root) \ root 240 mm/memcontrol.c for (iter = mem_cgroup_iter(root, NULL, NULL); \ root 242 mm/memcontrol.c iter = mem_cgroup_iter(root, iter, NULL)) root 1038 mm/memcontrol.c struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, root 1050 mm/memcontrol.c if (!root) root 1051 mm/memcontrol.c root = root_mem_cgroup; root 1056 mm/memcontrol.c if (!root->use_hierarchy && root != root_mem_cgroup) { root 1059 mm/memcontrol.c return root; root 1067 mm/memcontrol.c mz = mem_cgroup_nodeinfo(root, reclaim->pgdat->node_id); root 1093 mm/memcontrol.c css = css_next_descendant_pre(css, &root->css); root 1113 mm/memcontrol.c if (css == &root->css) root 1142 mm/memcontrol.c if (prev && prev != root) root 1153 mm/memcontrol.c void mem_cgroup_iter_break(struct mem_cgroup *root, root 1156 mm/memcontrol.c if (!root) root 1157 mm/memcontrol.c root = root_mem_cgroup; root 1158 mm/memcontrol.c if (prev && prev != root) root 6424 mm/memcontrol.c enum mem_cgroup_protection mem_cgroup_protected(struct mem_cgroup *root, root 6435 mm/memcontrol.c if (!root) root 6436 mm/memcontrol.c root = root_mem_cgroup; root 6437 mm/memcontrol.c if (memcg == root) root 6452 mm/memcontrol.c if (parent == root) root 2654 mm/memory.c static inline void unmap_mapping_range_tree(struct rb_root_cached *root, root 2660 mm/memory.c vma_interval_tree_foreach(vma, root, root 2290 mm/mempolicy.c struct rb_node *n = sp->root.rb_node; root 2323 mm/mempolicy.c struct rb_node **p = &sp->root.rb_node; root 2338 mm/mempolicy.c rb_insert_color(&new->nd, &sp->root); root 2350 mm/mempolicy.c if (!sp->root.rb_node) root 2471 mm/mempolicy.c rb_erase(&n->nd, &sp->root); root 2584 mm/mempolicy.c sp->root = RB_ROOT; /* empty tree == default mempolicy */ root 2649 mm/mempolicy.c if (!p->root.rb_node) root 2652 mm/mempolicy.c next = rb_first(&p->root); root 328 mm/mmap.c struct rb_root *root = &mm->mm_rb; root 333 mm/mmap.c for (nd = rb_first(root); nd; nd = rb_next(nd)) { root 374 mm/mmap.c static void validate_mm_rb(struct rb_root *root, struct vm_area_struct *ignore) root 378 mm/mmap.c for (nd = rb_first(root); nd; nd = rb_next(nd)) { root 427 mm/mmap.c #define validate_mm_rb(root, ignore) do { } while (0) root 450 mm/mmap.c struct rb_root *root) root 453 mm/mmap.c validate_mm_rb(root, NULL); root 455 mm/mmap.c rb_insert_augmented(&vma->vm_rb, root, &vma_gap_callbacks); root 458 mm/mmap.c static void __vma_rb_erase(struct vm_area_struct *vma, struct rb_root *root) root 465 mm/mmap.c rb_erase_augmented(&vma->vm_rb, root, &vma_gap_callbacks); root 469 mm/mmap.c struct rb_root *root, root 477 mm/mmap.c validate_mm_rb(root, ignore); root 479 mm/mmap.c __vma_rb_erase(vma, root); root 483 mm/mmap.c struct rb_root *root) root 489 mm/mmap.c validate_mm_rb(root, vma); root 491 mm/mmap.c __vma_rb_erase(vma, root); root 724 mm/mmap.c struct rb_root_cached *root = NULL; root 820 mm/mmap.c root = &mapping->i_mmap; root 850 mm/mmap.c if (root) { root 852 mm/mmap.c vma_interval_tree_remove(vma, root); root 854 mm/mmap.c vma_interval_tree_remove(next, root); root 871 mm/mmap.c if (root) { root 873 mm/mmap.c vma_interval_tree_insert(next, root); root 874 mm/mmap.c vma_interval_tree_insert(vma, root); root 925 mm/mmap.c if (root) { root 3471 mm/mmap.c if (!test_bit(0, (unsigned long *) &anon_vma->root->rb_root.rb_root.rb_node)) { root 3476 mm/mmap.c down_write_nest_lock(&anon_vma->root->rwsem, &mm->mmap_sem); root 3487 mm/mmap.c &anon_vma->root->rb_root.rb_root.rb_node)) root 3589 mm/mmap.c if (test_bit(0, (unsigned long *) &anon_vma->root->rb_root.rb_root.rb_node)) { root 3603 mm/mmap.c &anon_vma->root->rb_root.rb_root.rb_node)) root 92 mm/rmap.c anon_vma->root = anon_vma; root 120 mm/rmap.c if (rwsem_is_locked(&anon_vma->root->rwsem)) { root 232 mm/rmap.c static inline struct anon_vma *lock_anon_vma_root(struct anon_vma *root, struct anon_vma *anon_vma) root 234 mm/rmap.c struct anon_vma *new_root = anon_vma->root; root 235 mm/rmap.c if (new_root != root) { root 236 mm/rmap.c if (WARN_ON_ONCE(root)) root 237 mm/rmap.c up_write(&root->rwsem); root 238 mm/rmap.c root = new_root; root 239 mm/rmap.c down_write(&root->rwsem); root 241 mm/rmap.c return root; root 244 mm/rmap.c static inline void unlock_anon_vma_root(struct anon_vma *root) root 246 mm/rmap.c if (root) root 247 mm/rmap.c up_write(&root->rwsem); root 265 mm/rmap.c struct anon_vma *root = NULL; root 272 mm/rmap.c unlock_anon_vma_root(root); root 273 mm/rmap.c root = NULL; root 279 mm/rmap.c root = lock_anon_vma_root(root, anon_vma); root 296 mm/rmap.c unlock_anon_vma_root(root); root 353 mm/rmap.c anon_vma->root = pvma->anon_vma->root; root 360 mm/rmap.c get_anon_vma(anon_vma->root); root 380 mm/rmap.c struct anon_vma *root = NULL; root 389 mm/rmap.c root = lock_anon_vma_root(root, anon_vma); root 406 mm/rmap.c unlock_anon_vma_root(root); root 522 mm/rmap.c root_anon_vma = READ_ONCE(anon_vma->root); root 698 mm/rmap.c vma->anon_vma->root != page__anon_vma->root) root 1042 mm/rmap.c anon_vma = anon_vma->root; root 1071 mm/rmap.c BUG_ON(page_anon_vma(page)->root != vma->anon_vma->root); root 1769 mm/rmap.c struct anon_vma *root = anon_vma->root; root 1772 mm/rmap.c if (root != anon_vma && atomic_dec_and_test(&root->refcount)) root 1773 mm/rmap.c anon_vma_free(root); root 3543 mm/shmem.c struct shmem_sb_info *sbinfo = SHMEM_SB(fc->root->d_sb); root 3595 mm/shmem.c static int shmem_show_options(struct seq_file *seq, struct dentry *root) root 3597 mm/shmem.c struct shmem_sb_info *sbinfo = SHMEM_SB(root->d_sb); root 3880 mm/slab.c struct kmem_cache *root = memcg_root_cache(cachep); root 3881 mm/slab.c limit = root->limit; root 3882 mm/slab.c shared = root->shared; root 3883 mm/slab.c batchcount = root->batchcount; root 288 mm/slab.h #define for_each_memcg_cache(iter, root) \ root 289 mm/slab.h list_for_each_entry(iter, &(root)->memcg_params.children, \ root 417 mm/slab.h #define for_each_memcg_cache(iter, root) \ root 418 mm/slab.h for ((void)(iter), (void)(root); 0; ) root 85 mm/sparse.c unsigned long root = SECTION_NR_TO_ROOT(section_nr); root 95 mm/sparse.c if (mem_section[root]) root 102 mm/sparse.c mem_section[root] = section; root 117 mm/sparse.c struct mem_section *root = NULL; root 120 mm/sparse.c root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); root 121 mm/sparse.c if (!root) root 124 mm/sparse.c if ((ms >= root) && (ms < (root + SECTIONS_PER_ROOT))) root 128 mm/sparse.c VM_BUG_ON(!root); root 130 mm/sparse.c return (root_nr * SECTIONS_PER_ROOT) + (ms - root); root 439 mm/vmalloc.c struct rb_root *root, struct rb_node *from, root 445 mm/vmalloc.c if (root) { root 446 mm/vmalloc.c link = &root->rb_node; root 501 mm/vmalloc.c link_va(struct vmap_area *va, struct rb_root *root, root 516 mm/vmalloc.c if (root == &free_vmap_area_root) { root 529 mm/vmalloc.c root, &free_vmap_area_rb_augment_cb); root 532 mm/vmalloc.c rb_insert_color(&va->rb_node, root); root 540 mm/vmalloc.c unlink_va(struct vmap_area *va, struct rb_root *root) root 545 mm/vmalloc.c if (root == &free_vmap_area_root) root 547 mm/vmalloc.c root, &free_vmap_area_rb_augment_cb); root 549 mm/vmalloc.c rb_erase(&va->rb_node, root); root 654 mm/vmalloc.c struct rb_root *root, struct list_head *head) root 659 mm/vmalloc.c link = find_va_links(va, root, NULL, &parent); root 660 mm/vmalloc.c link_va(va, root, parent, link, head); root 665 mm/vmalloc.c struct rb_node *from, struct rb_root *root, root 674 mm/vmalloc.c link = find_va_links(va, root, NULL, &parent); root 676 mm/vmalloc.c link_va(va, root, parent, link, head); root 688 mm/vmalloc.c struct rb_root *root, struct list_head *head) root 700 mm/vmalloc.c link = find_va_links(va, root, NULL, &parent); root 749 mm/vmalloc.c unlink_va(va, root); root 759 mm/vmalloc.c link_va(va, root, parent, link, head); root 2763 mm/vmscan.c struct mem_cgroup *root = sc->target_mem_cgroup; root 2772 mm/vmscan.c memcg = mem_cgroup_iter(root, NULL, NULL); root 2778 mm/vmscan.c switch (mem_cgroup_protected(root, memcg)) { root 2822 mm/vmscan.c } while ((memcg = mem_cgroup_iter(root, memcg, NULL))); root 2886 mm/vmscan.c set_memcg_congestion(pgdat, root, true); root 2895 mm/vmscan.c current_may_throttle() && pgdat_memcg_congested(pgdat, root)) root 267 mm/zswap.c static struct zswap_entry *zswap_rb_search(struct rb_root *root, pgoff_t offset) root 269 mm/zswap.c struct rb_node *node = root->rb_node; root 288 mm/zswap.c static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, root 291 mm/zswap.c struct rb_node **link = &root->rb_node, *parent = NULL; root 307 mm/zswap.c rb_insert_color(&entry->rbnode, root); root 311 mm/zswap.c static void zswap_rb_erase(struct rb_root *root, struct zswap_entry *entry) root 314 mm/zswap.c rb_erase(&entry->rbnode, root); root 358 mm/zswap.c static struct zswap_entry *zswap_entry_find_get(struct rb_root *root, root 363 mm/zswap.c entry = zswap_rb_search(root, offset); root 170 net/6lowpan/debugfs.c struct dentry *root; root 177 net/6lowpan/debugfs.c root = debugfs_create_dir(buf, ctx); root 179 net/6lowpan/debugfs.c debugfs_create_file("active", 0644, root, &ldev->ctx.table[id], root 182 net/6lowpan/debugfs.c debugfs_create_file("compression", 0644, root, &ldev->ctx.table[id], root 185 net/6lowpan/debugfs.c debugfs_create_file("prefix", 0644, root, &ldev->ctx.table[id], root 188 net/6lowpan/debugfs.c debugfs_create_file("prefix_len", 0644, root, &ldev->ctx.table[id], root 232 net/6lowpan/debugfs.c struct dentry *root; root 237 net/6lowpan/debugfs.c root = debugfs_create_dir("ieee802154", ldev->iface_debugfs); root 239 net/6lowpan/debugfs.c debugfs_create_file("short_addr", 0444, root, root 31 net/bridge/br_private_stp.h bridge_id root; root 186 net/bridge/br_stp.c bpdu.root = br->designated_root; root 193 net/bridge/br_stp.c struct net_bridge_port *root root 195 net/bridge/br_stp.c bpdu.message_age = (jiffies - root->designated_age) root 216 net/bridge/br_stp.c p->designated_root = bpdu->root; root 298 net/bridge/br_stp.c t = memcmp(&bpdu->root, &p->designated_root, 8); root 92 net/bridge/br_stp_bpdu.c buf[5] = bpdu->root.prio[0]; root 93 net/bridge/br_stp_bpdu.c buf[6] = bpdu->root.prio[1]; root 94 net/bridge/br_stp_bpdu.c buf[7] = bpdu->root.addr[0]; root 95 net/bridge/br_stp_bpdu.c buf[8] = bpdu->root.addr[1]; root 96 net/bridge/br_stp_bpdu.c buf[9] = bpdu->root.addr[2]; root 97 net/bridge/br_stp_bpdu.c buf[10] = bpdu->root.addr[3]; root 98 net/bridge/br_stp_bpdu.c buf[11] = bpdu->root.addr[4]; root 99 net/bridge/br_stp_bpdu.c buf[12] = bpdu->root.addr[5]; root 196 net/bridge/br_stp_bpdu.c bpdu.root.prio[0] = buf[2]; root 197 net/bridge/br_stp_bpdu.c bpdu.root.prio[1] = buf[3]; root 198 net/bridge/br_stp_bpdu.c bpdu.root.addr[0] = buf[4]; root 199 net/bridge/br_stp_bpdu.c bpdu.root.addr[1] = buf[5]; root 200 net/bridge/br_stp_bpdu.c bpdu.root.addr[2] = buf[6]; root 201 net/bridge/br_stp_bpdu.c bpdu.root.addr[3] = buf[7]; root 202 net/bridge/br_stp_bpdu.c bpdu.root.addr[4] = buf[8]; root 203 net/bridge/br_stp_bpdu.c bpdu.root.addr[5] = buf[9]; root 31 net/bridge/netfilter/ebt_stp.c u8 root[8]; root 56 net/bridge/netfilter/ebt_stp.c v16 = NR16(stpc->root); root 63 net/bridge/netfilter/ebt_stp.c !ether_addr_equal_masked(&stpc->root[2], root 487 net/can/j1939/transport.c struct list_head *root, root 495 net/can/j1939/transport.c list_for_each_entry(session, root, active_session_list_entry) { root 1838 net/ceph/osd_client.c static struct ceph_osd_backoff *lookup_containing_backoff(struct rb_root *root, root 1841 net/ceph/osd_client.c struct rb_node *n = root->rb_node; root 639 net/ceph/osdmap.c static int __insert_pg_pool(struct rb_root *root, struct ceph_pg_pool_info *new) root 641 net/ceph/osdmap.c struct rb_node **p = &root->rb_node; root 657 net/ceph/osdmap.c rb_insert_color(&new->node, root); root 661 net/ceph/osdmap.c static struct ceph_pg_pool_info *__lookup_pg_pool(struct rb_root *root, u64 id) root 664 net/ceph/osdmap.c struct rb_node *n = root->rb_node; root 722 net/ceph/osdmap.c static void __remove_pg_pool(struct rb_root *root, struct ceph_pg_pool_info *pi) root 724 net/ceph/osdmap.c rb_erase(&pi->node, root); root 3092 net/core/skbuff.c unsigned int skb_rbtree_purge(struct rb_root *root) root 3094 net/core/skbuff.c struct rb_node *p = rb_first(root); root 3101 net/core/skbuff.c rb_erase(&skb->rbnode, root); root 232 net/ipv4/inet_fragment.c unsigned int inet_frag_rbtree_purge(struct rb_root *root) root 234 net/ipv4/inet_fragment.c struct rb_node *p = rb_first(root); root 241 net/ipv4/inet_fragment.c rb_erase(&skb->rbnode, root); root 196 net/ipv4/netfilter/ip_tables.c const struct ipt_entry *root; root 201 net/ipv4/netfilter/ip_tables.c root = get_entry(private->entries, private->hook_entry[hook]); root 206 net/ipv4/netfilter/ip_tables.c xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) root 1011 net/ipv4/nexthop.c struct rb_root *root = &net->nexthop.rb_root; root 1018 net/ipv4/nexthop.c pp = &root->rb_node; root 1053 net/ipv4/nexthop.c rb_insert_color(&new_nh->rb_node, root); root 1087 net/ipv4/nexthop.c struct rb_root *root = &net->nexthop.rb_root; root 1091 net/ipv4/nexthop.c while ((node = rb_first(root))) { root 1719 net/ipv4/nexthop.c struct rb_root *root = &net->nexthop.rb_root; root 1731 net/ipv4/nexthop.c for (node = rb_first(root); node; node = rb_next(node)) { root 4870 net/ipv4/tcp_input.c struct rb_root *root) root 4877 net/ipv4/tcp_input.c rb_erase(&skb->rbnode, root); root 4886 net/ipv4/tcp_input.c void tcp_rbtree_insert(struct rb_root *root, struct sk_buff *skb) root 4888 net/ipv4/tcp_input.c struct rb_node **p = &root->rb_node; root 4901 net/ipv4/tcp_input.c rb_insert_color(&skb->rbnode, root); root 4913 net/ipv4/tcp_input.c tcp_collapse(struct sock *sk, struct sk_buff_head *list, struct rb_root *root, root 4929 net/ipv4/tcp_input.c skb = tcp_collapse_one(sk, skb, list, root); root 4996 net/ipv4/tcp_input.c skb = tcp_collapse_one(sk, skb, list, root); root 5010 net/ipv4/tcp_input.c tcp_rbtree_insert(root, skb); root 426 net/ipv6/ip6_fib.c w->root = &tb->tb6_root; root 526 net/ipv6/ip6_fib.c w->root = &table->tb6_root; root 538 net/ipv6/ip6_fib.c cb->args[5] = w->root->fn_sernum; root 541 net/ipv6/ip6_fib.c if (cb->args[5] != w->root->fn_sernum) { root 543 net/ipv6/ip6_fib.c cb->args[5] = w->root->fn_sernum; root 545 net/ipv6/ip6_fib.c w->node = w->root; root 687 net/ipv6/ip6_fib.c struct fib6_node *root, root 703 net/ipv6/ip6_fib.c fn = root; root 1303 net/ipv6/ip6_fib.c int fib6_add(struct fib6_node *root, struct fib6_info *rt, root 1322 net/ipv6/ip6_fib.c fn = fib6_add_1(info->nl_net, table, root, root 1476 net/ipv6/ip6_fib.c static struct fib6_node *fib6_node_lookup_1(struct fib6_node *root, root 1489 net/ipv6/ip6_fib.c fn = root; root 1545 net/ipv6/ip6_fib.c struct fib6_node *fib6_node_lookup(struct fib6_node *root, root 1566 net/ipv6/ip6_fib.c fn = fib6_node_lookup_1(root, daddr ? args : args + 1); root 1568 net/ipv6/ip6_fib.c fn = root; root 1585 net/ipv6/ip6_fib.c static struct fib6_node *fib6_locate_1(struct fib6_node *root, root 1592 net/ipv6/ip6_fib.c for (fn = root; fn ; ) { root 1635 net/ipv6/ip6_fib.c struct fib6_node *fib6_locate(struct fib6_node *root, root 1642 net/ipv6/ip6_fib.c fn = fib6_locate_1(root, daddr, dst_len, root 1958 net/ipv6/ip6_fib.c WARN_ON_ONCE(!(w->root->fn_flags & RTN_TL_ROOT)); root 2014 net/ipv6/ip6_fib.c if (fn == w->root) root 2048 net/ipv6/ip6_fib.c w->node = w->root; root 2114 net/ipv6/ip6_fib.c static void fib6_clean_tree(struct net *net, struct fib6_node *root, root 2120 net/ipv6/ip6_fib.c c.w.root = root; root 2429 net/ipv6/ip6_fib.c iter->w.root = &iter->tbl->tb6_root; root 2431 net/ipv6/ip6_fib.c iter->w.node = iter->w.root; root 2433 net/ipv6/ip6_fib.c iter->sernum = iter->w.root->fn_sernum; root 2461 net/ipv6/ip6_fib.c if (iter->sernum != iter->w.root->fn_sernum) { root 2462 net/ipv6/ip6_fib.c iter->sernum = iter->w.root->fn_sernum; root 2464 net/ipv6/ip6_fib.c iter->w.node = iter->w.root; root 2530 net/ipv6/ip6_fib.c return w->node && !(w->state == FWS_U && w->node == w->root); root 221 net/ipv6/netfilter/ip6_tables.c const struct ip6t_entry *root; root 226 net/ipv6/netfilter/ip6_tables.c root = get_entry(private->entries, private->hook_entry[hook]); root 231 net/ipv6/netfilter/ip6_tables.c xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) root 2429 net/iucv/af_iucv.c af_iucv_dev->parent = pr_iucv->root; root 1994 net/iucv/iucv.c .root = NULL, root 2045 net/iucv/iucv.c iucv_if.root = iucv_root; root 60 net/netfilter/nf_conncount.c struct rb_root root[CONNCOUNT_SLOTS]; root 276 net/netfilter/nf_conncount.c static void tree_nodes_free(struct rb_root *root, root 286 net/netfilter/nf_conncount.c rb_erase(&rbconn->node, root); root 302 net/netfilter/nf_conncount.c struct rb_root *root, root 319 net/netfilter/nf_conncount.c rbnode = &(root->rb_node); root 338 net/netfilter/nf_conncount.c tree_nodes_free(root, gc_nodes, gc_count); root 350 net/netfilter/nf_conncount.c tree_nodes_free(root, gc_nodes, gc_count); root 378 net/netfilter/nf_conncount.c rb_insert_color(&rbconn->node, root); root 391 net/netfilter/nf_conncount.c struct rb_root *root; root 398 net/netfilter/nf_conncount.c root = &data->root[hash]; root 400 net/netfilter/nf_conncount.c parent = rcu_dereference_raw(root->rb_node); root 441 net/netfilter/nf_conncount.c return insert_tree(net, data, root, hash, key, tuple, zone); root 448 net/netfilter/nf_conncount.c struct rb_root *root; root 453 net/netfilter/nf_conncount.c root = &data->root[tree]; root 457 net/netfilter/nf_conncount.c for (node = rb_first(root); node != NULL; node = rb_next(node)) { root 472 net/netfilter/nf_conncount.c node = rb_first(root); root 482 net/netfilter/nf_conncount.c tree_nodes_free(root, gc_nodes, gc_count); root 487 net/netfilter/nf_conncount.c tree_nodes_free(root, gc_nodes, gc_count); root 539 net/netfilter/nf_conncount.c for (i = 0; i < ARRAY_SIZE(data->root); ++i) root 540 net/netfilter/nf_conncount.c data->root[i] = RB_ROOT; root 583 net/netfilter/nf_conncount.c for (i = 0; i < ARRAY_SIZE(data->root); ++i) root 584 net/netfilter/nf_conncount.c destroy_tree(&data->root[i]); root 19 net/netfilter/nft_set_rbtree.c struct rb_root root; root 58 net/netfilter/nft_set_rbtree.c parent = rcu_dereference_raw(priv->root.rb_node); root 139 net/netfilter/nft_set_rbtree.c parent = rcu_dereference_raw(priv->root.rb_node); root 228 net/netfilter/nft_set_rbtree.c p = &priv->root.rb_node; root 255 net/netfilter/nft_set_rbtree.c rb_insert_color(&new->node, &priv->root); root 285 net/netfilter/nft_set_rbtree.c rb_erase(&rbe->node, &priv->root); root 318 net/netfilter/nft_set_rbtree.c const struct rb_node *parent = priv->root.rb_node; root 362 net/netfilter/nft_set_rbtree.c for (node = rb_first(&priv->root); node != NULL; node = rb_next(node)) { root 398 net/netfilter/nft_set_rbtree.c for (node = rb_first(&priv->root); node != NULL; node = rb_next(node)) { root 411 net/netfilter/nft_set_rbtree.c rb_erase(&rbe_prev->node, &priv->root); root 425 net/netfilter/nft_set_rbtree.c rb_erase(&rbe_end->node, &priv->root); root 433 net/netfilter/nft_set_rbtree.c rb_erase(&rbe_prev->node, &priv->root); root 457 net/netfilter/nft_set_rbtree.c priv->root = RB_ROOT; root 475 net/netfilter/nft_set_rbtree.c while ((node = priv->root.rb_node) != NULL) { root 476 net/netfilter/nft_set_rbtree.c rb_erase(node, &priv->root); root 65 net/rds/rdma.c static struct rds_mr *rds_mr_tree_walk(struct rb_root *root, u64 key, root 68 net/rds/rdma.c struct rb_node **p = &root->rb_node; root 86 net/rds/rdma.c rb_insert_color(&insert->r_rb_node, root); root 43 net/sched/cls_basic.c struct basic_head *head = rcu_dereference_bh(tp->root); root 62 net/sched/cls_basic.c struct basic_head *head = rtnl_dereference(tp->root); root 83 net/sched/cls_basic.c rcu_assign_pointer(tp->root, head); root 109 net/sched/cls_basic.c struct basic_head *head = rtnl_dereference(tp->root); root 128 net/sched/cls_basic.c struct basic_head *head = rtnl_dereference(tp->root); root 176 net/sched/cls_basic.c struct basic_head *head = rtnl_dereference(tp->root); root 250 net/sched/cls_basic.c struct basic_head *head = rtnl_dereference(tp->root); root 83 net/sched/cls_bpf.c struct cls_bpf_head *head = rcu_dereference_bh(tp->root); root 252 net/sched/cls_bpf.c rcu_assign_pointer(tp->root, head); root 290 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 305 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 315 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 327 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 464 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 650 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 668 net/sched/cls_bpf.c struct cls_bpf_head *head = rtnl_dereference(tp->root); root 28 net/sched/cls_cgroup.c struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); root 83 net/sched/cls_cgroup.c struct cls_cgroup_head *head = rtnl_dereference(tp->root); root 120 net/sched/cls_cgroup.c rcu_assign_pointer(tp->root, new); root 135 net/sched/cls_cgroup.c struct cls_cgroup_head *head = rtnl_dereference(tp->root); root 155 net/sched/cls_cgroup.c struct cls_cgroup_head *head = rtnl_dereference(tp->root); root 173 net/sched/cls_cgroup.c struct cls_cgroup_head *head = rtnl_dereference(tp->root); root 298 net/sched/cls_flow.c struct flow_head *head = rcu_dereference_bh(tp->root); root 393 net/sched/cls_flow.c struct flow_head *head = rtnl_dereference(tp->root); root 569 net/sched/cls_flow.c struct flow_head *head = rtnl_dereference(tp->root); root 587 net/sched/cls_flow.c rcu_assign_pointer(tp->root, head); root 594 net/sched/cls_flow.c struct flow_head *head = rtnl_dereference(tp->root); root 609 net/sched/cls_flow.c struct flow_head *head = rtnl_dereference(tp->root); root 682 net/sched/cls_flow.c struct flow_head *head = rtnl_dereference(tp->root); root 299 net/sched/cls_flower.c struct cls_fl_head *head = rcu_dereference_bh(tp->root); root 342 net/sched/cls_flower.c rcu_assign_pointer(tp->root, head); root 397 net/sched/cls_flower.c return rcu_dereference_raw(tp->root); root 53 net/sched/cls_fw.c struct fw_head *head = rcu_dereference_bh(tp->root); root 91 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 133 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 157 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 204 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 243 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 316 net/sched/cls_fw.c rcu_assign_pointer(tp->root, head); root 348 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 378 net/sched/cls_fw.c struct fw_head *head = rtnl_dereference(tp->root); root 30 net/sched/cls_matchall.c struct cls_mall_head *head = rcu_dereference_bh(tp->root); root 131 net/sched/cls_matchall.c struct cls_mall_head *head = rtnl_dereference(tp->root); root 149 net/sched/cls_matchall.c struct cls_mall_head *head = rtnl_dereference(tp->root); root 189 net/sched/cls_matchall.c struct cls_mall_head *head = rtnl_dereference(tp->root); root 246 net/sched/cls_matchall.c rcu_assign_pointer(tp->root, new); root 262 net/sched/cls_matchall.c struct cls_mall_head *head = rtnl_dereference(tp->root); root 272 net/sched/cls_matchall.c struct cls_mall_head *head = rtnl_dereference(tp->root); root 288 net/sched/cls_matchall.c struct cls_mall_head *head = rtnl_dereference(tp->root); root 127 net/sched/cls_route.c struct route4_head *head = rcu_dereference_bh(tp->root); root 217 net/sched/cls_route.c struct route4_head *head = rtnl_dereference(tp->root); root 249 net/sched/cls_route.c rcu_assign_pointer(tp->root, head); root 278 net/sched/cls_route.c struct route4_head *head = rtnl_dereference(tp->root); root 314 net/sched/cls_route.c struct route4_head *head = rtnl_dereference(tp->root); root 470 net/sched/cls_route.c struct route4_head *head = rtnl_dereference(tp->root); root 564 net/sched/cls_route.c struct route4_head *head = rtnl_dereference(tp->root); root 130 net/sched/cls_rsvp.h struct rsvp_head *head = rcu_dereference_bh(tp->root); root 222 net/sched/cls_rsvp.h struct rsvp_head *head = rtnl_dereference(tp->root); root 249 net/sched/cls_rsvp.h struct rsvp_head *head = rtnl_dereference(tp->root); root 275 net/sched/cls_rsvp.h rcu_assign_pointer(tp->root, data); root 314 net/sched/cls_rsvp.h struct rsvp_head *data = rtnl_dereference(tp->root); root 343 net/sched/cls_rsvp.h struct rsvp_head *head = rtnl_dereference(tp->root); root 393 net/sched/cls_rsvp.h struct rsvp_head *data = rtnl_dereference(tp->root); root 478 net/sched/cls_rsvp.h struct rsvp_head *data = rtnl_dereference(tp->root); root 659 net/sched/cls_rsvp.h struct rsvp_head *head = rtnl_dereference(tp->root); root 105 net/sched/cls_tcindex.c struct tcindex_data *p = rcu_dereference_bh(tp->root); root 132 net/sched/cls_tcindex.c struct tcindex_data *p = rtnl_dereference(tp->root); root 156 net/sched/cls_tcindex.c rcu_assign_pointer(tp->root, p); root 200 net/sched/cls_tcindex.c struct tcindex_data *p = rtnl_dereference(tp->root); root 486 net/sched/cls_tcindex.c rcu_assign_pointer(tp->root, cp); root 530 net/sched/cls_tcindex.c struct tcindex_data *p = rtnl_dereference(tp->root); root 553 net/sched/cls_tcindex.c struct tcindex_data *p = rtnl_dereference(tp->root); root 590 net/sched/cls_tcindex.c struct tcindex_data *p = rtnl_dereference(tp->root); root 633 net/sched/cls_tcindex.c struct tcindex_data *p = rtnl_dereference(tp->root); root 111 net/sched/cls_u32.c struct tc_u_hnode *ht = rcu_dereference_bh(tp->root); root 292 net/sched/cls_u32.c ht = rtnl_dereference(tp->root); root 384 net/sched/cls_u32.c rcu_assign_pointer(tp->root, root_ht); root 623 net/sched/cls_u32.c struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); root 773 net/sched/cls_u32.c ht = rtnl_dereference(tp->root); root 982 net/sched/cls_u32.c ht = rtnl_dereference(tp->root); root 992 net/sched/cls_u32.c ht = rtnl_dereference(tp->root); root 257 net/sched/sch_api.c static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) root 261 net/sched/sch_api.c if (!qdisc_dev(root)) root 262 net/sched/sch_api.c return (root->handle == handle ? root : NULL); root 264 net/sched/sch_api.c if (!(root->flags & TCQ_F_BUILTIN) && root 265 net/sched/sch_api.c root->handle == handle) root 266 net/sched/sch_api.c return root; root 268 net/sched/sch_api.c hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle) { root 1673 net/sched/sch_api.c static int tc_dump_qdisc_root(struct Qdisc *root, struct sk_buff *skb, root 1682 net/sched/sch_api.c if (!root) root 1685 net/sched/sch_api.c q = root; root 1703 net/sched/sch_api.c if (!qdisc_dev(root) || !recur) root 1706 net/sched/sch_api.c hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) { root 2157 net/sched/sch_api.c static int tc_dump_tclass_root(struct Qdisc *root, struct sk_buff *skb, root 2164 net/sched/sch_api.c if (!root) root 2167 net/sched/sch_api.c if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) root 2170 net/sched/sch_api.c if (!qdisc_dev(root)) root 2174 net/sched/sch_api.c q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent)); root 2175 net/sched/sch_api.c if (q && q != root && root 2180 net/sched/sch_api.c hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) { root 202 net/sched/sch_fq.c struct rb_root *root, root 209 net/sched/sch_fq.c p = &root->rb_node; root 236 net/sched/sch_fq.c rb_erase(&f->fq_node, root); root 245 net/sched/sch_fq.c struct rb_root *root; root 282 net/sched/sch_fq.c root = &q->fq_root[hash_ptr(sk, q->fq_trees_log)]; root 286 net/sched/sch_fq.c fq_gc(q, root, sk); root 288 net/sched/sch_fq.c p = &root->rb_node; root 337 net/sched/sch_fq.c rb_insert_color(&f->fq_node, root); root 621 net/sched/sch_fq.c struct rb_root *root; root 635 net/sched/sch_fq.c root = &q->fq_root[idx]; root 636 net/sched/sch_fq.c while ((p = rb_first(root)) != NULL) { root 638 net/sched/sch_fq.c rb_erase(p, root); root 171 net/sched/sch_hfsc.c struct hfsc_class root; /* root class */ root 1009 net/sched/sch_hfsc.c parent = &q->root; root 1088 net/sched/sch_hfsc.c if (cl != &q->root) root 1098 net/sched/sch_hfsc.c if (cl->level > 0 || cl->filter_cnt > 0 || cl == &q->root) root 1130 net/sched/sch_hfsc.c head = &q->root; root 1131 net/sched/sch_hfsc.c tcf = rcu_dereference_bh(q->root.filter_list); root 1248 net/sched/sch_hfsc.c cl = &q->root; root 1376 net/sched/sch_hfsc.c if (q->root.cl_cfmin != 0) { root 1377 net/sched/sch_hfsc.c if (next_time == 0 || next_time > q->root.cl_cfmin) root 1378 net/sched/sch_hfsc.c next_time = q->root.cl_cfmin; root 1404 net/sched/sch_hfsc.c err = tcf_block_get(&q->root.block, &q->root.filter_list, sch, extack); root 1408 net/sched/sch_hfsc.c q->root.cl_common.classid = sch->handle; root 1409 net/sched/sch_hfsc.c q->root.sched = q; root 1410 net/sched/sch_hfsc.c q->root.qdisc = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, root 1412 net/sched/sch_hfsc.c if (q->root.qdisc == NULL) root 1413 net/sched/sch_hfsc.c q->root.qdisc = &noop_qdisc; root 1415 net/sched/sch_hfsc.c qdisc_hash_add(q->root.qdisc, true); root 1416 net/sched/sch_hfsc.c INIT_LIST_HEAD(&q->root.children); root 1417 net/sched/sch_hfsc.c q->root.vt_tree = RB_ROOT; root 1418 net/sched/sch_hfsc.c q->root.cf_tree = RB_ROOT; root 1420 net/sched/sch_hfsc.c qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); root 1606 net/sched/sch_hfsc.c cl = vttree_get_minvt(&q->root, cur_time); root 274 net/sched/sch_htb.c static void htb_add_to_id_tree(struct rb_root *root, root 277 net/sched/sch_htb.c struct rb_node **p = &root->rb_node, *parent = NULL; root 290 net/sched/sch_htb.c rb_insert_color(&cl->node[prio], root); root 355 net/sched/sch_htb.c static void htb_safe_rb_erase(struct rb_node *rb, struct rb_root *root) root 360 net/sched/sch_htb.c rb_erase(rb, root); root 770 net/sched/sch_htb.c struct rb_node *root; root 776 net/sched/sch_htb.c sp->root = hprio->row.rb_node; root 786 net/sched/sch_htb.c htb_id_find_next_upper(prio, sp->root, *sp->pid); root 792 net/sched/sch_htb.c *sp->pptr = sp->root; root 811 net/sched/sch_htb.c (++sp)->root = clp->feed.rb_node; root 64 net/sched/sch_taprio.c struct Qdisc *root; root 696 net/sched/sch_taprio.c struct Qdisc *sch = q->root; root 1083 net/sched/sch_taprio.c qdev = qdisc_dev(q->root); root 1622 net/sched/sch_taprio.c q->root = sch; root 1742 net/sched/sch_taprio.c const struct sched_gate_list *root) root 1748 net/sched/sch_taprio.c root->base_time, TCA_TAPRIO_PAD)) root 1752 net/sched/sch_taprio.c root->cycle_time, TCA_TAPRIO_PAD)) root 1756 net/sched/sch_taprio.c root->cycle_time_extension, TCA_TAPRIO_PAD)) root 1764 net/sched/sch_taprio.c list_for_each_entry(entry, &root->entries, list) { root 216 net/sctp/stream.c new->out.tree.root = NULL; root 217 net/sctp/stream.c new->in.tree.root = NULL; root 1296 net/sunrpc/rpc_pipe.c rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data) root 1306 net/sunrpc/rpc_pipe.c gssd_dentry = d_hash_and_lookup(root, &q); root 1359 net/sunrpc/rpc_pipe.c struct dentry *root, *gssd_dentry; root 1372 net/sunrpc/rpc_pipe.c sb->s_root = root = d_make_root(inode); root 1373 net/sunrpc/rpc_pipe.c if (!root) root 1375 net/sunrpc/rpc_pipe.c if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL)) root 1378 net/sunrpc/rpc_pipe.c gssd_dentry = rpc_gssd_dummy_populate(root, sn->gssd_dummy); root 1380 net/sunrpc/rpc_pipe.c __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); root 1402 net/sunrpc/rpc_pipe.c __rpc_depopulate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF); root 31 net/sysctl_net.c net_ctl_header_lookup(struct ctl_table_root *root) root 66 net/xfrm/xfrm_policy.c struct rb_root root; root 897 net/xfrm/xfrm_policy.c WARN_ON_ONCE(!RB_EMPTY_ROOT(&n->root)); root 959 net/xfrm/xfrm_policy.c while ((rnode = rb_first(&v->root)) != NULL) { root 961 net/xfrm/xfrm_policy.c rb_erase(&node->node, &v->root); root 962 net/xfrm/xfrm_policy.c xfrm_policy_inexact_node_reinsert(net, node, &n->root, root 976 net/xfrm/xfrm_policy.c struct rb_root *root, root 984 net/xfrm/xfrm_policy.c p = &root->rb_node; root 1016 net/xfrm/xfrm_policy.c rb_erase(&node->node, root); root 1033 net/xfrm/xfrm_policy.c p = &root->rb_node; root 1046 net/xfrm/xfrm_policy.c rb_insert_color(&node->node, root); root 1059 net/xfrm/xfrm_policy.c xfrm_policy_inexact_gc_tree(&node->root, rm); root 1062 net/xfrm/xfrm_policy.c if (!hlist_empty(&node->hhead) || !RB_EMPTY_ROOT(&node->root)) { root 1160 net/xfrm/xfrm_policy.c &n->root, root 1961 net/xfrm/xfrm_policy.c n = xfrm_policy_lookup_inexact_addr(&n->root, &b->count, saddr, root 1296 scripts/asn1_compiler.c struct type *root; root 1359 scripts/asn1_compiler.c root = &type_list[0]; root 1360 scripts/asn1_compiler.c render_element(NULL, root->element, NULL); root 1374 scripts/asn1_compiler.c root = &type_list[0]; root 1375 scripts/asn1_compiler.c render_element(out, root->element, NULL); root 465 scripts/dtc/checks.c struct node *root = dti->dt; root 483 scripts/dtc/checks.c if (node != get_node_by_ref(root, m->ref)) root 512 scripts/dtc/checks.c struct node *root = dti->dt; root 534 scripts/dtc/checks.c other = get_node_by_phandle(root, phandle); root 1353 scripts/dtc/checks.c struct node *root = dti->dt; root 1395 scripts/dtc/checks.c provider_node = get_node_by_phandle(root, phandle); root 1546 scripts/dtc/checks.c struct node *root = dti->dt; root 1577 scripts/dtc/checks.c irq_node = get_node_by_phandle(root, phandle); root 235 scripts/dtc/dtc.h cell_t get_node_phandle(struct node *root, struct node *node); root 593 scripts/dtc/livetree.c cell_t get_node_phandle(struct node *root, struct node *node) root 601 scripts/dtc/livetree.c while (get_node_by_phandle(root, phandle)) root 144 scripts/gcc-plugins/gcc-common.h void debug_dominance_tree(enum cdi_direction dir, basic_block root); root 1978 security/apparmor/apparmorfs.c static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) root 1982 security/apparmor/apparmorfs.c AA_BUG(!root); root 1984 security/apparmor/apparmorfs.c AA_BUG(ns != root && !mutex_is_locked(&ns->parent->lock)); root 1995 security/apparmor/apparmorfs.c while (ns != root) { root 2017 security/apparmor/apparmorfs.c static struct aa_profile *__first_profile(struct aa_ns *root, root 2020 security/apparmor/apparmorfs.c AA_BUG(!root); root 2023 security/apparmor/apparmorfs.c for (; ns; ns = __next_ns(root, ns)) { root 2079 security/apparmor/apparmorfs.c static struct aa_profile *next_profile(struct aa_ns *root, root 2087 security/apparmor/apparmorfs.c return __first_profile(root, __next_ns(root, profile->ns)); root 2102 security/apparmor/apparmorfs.c struct aa_ns *root = aa_get_current_ns(); root 2104 security/apparmor/apparmorfs.c f->private = root; root 2107 security/apparmor/apparmorfs.c mutex_lock_nested(&root->lock, root->level); root 2108 security/apparmor/apparmorfs.c profile = __first_profile(root, root); root 2112 security/apparmor/apparmorfs.c profile = next_profile(root, profile); root 2146 security/apparmor/apparmorfs.c struct aa_ns *root = f->private, *ns; root 2149 security/apparmor/apparmorfs.c for (ns = profile->ns; ns && ns != root; ns = ns->parent) root 2152 security/apparmor/apparmorfs.c mutex_unlock(&root->lock); root 2153 security/apparmor/apparmorfs.c aa_put_ns(root); root 2166 security/apparmor/apparmorfs.c struct aa_ns *root = f->private; root 2168 security/apparmor/apparmorfs.c aa_label_seq_xprint(f, root, &profile->label, root 1008 security/apparmor/domain.c struct aa_profile *root, *hat = NULL; root 1013 security/apparmor/domain.c root = aa_get_profile_rcu(&profile->parent); root 1015 security/apparmor/domain.c root = aa_get_profile(profile); root 1022 security/apparmor/domain.c hat = aa_find_child(root, name); root 1034 security/apparmor/domain.c aa_put_profile(root); root 1056 security/apparmor/domain.c struct aa_profile *profile, *root, *hat = NULL; root 1075 security/apparmor/domain.c root = aa_get_profile_rcu(&profile->parent); root 1077 security/apparmor/domain.c root = aa_get_profile(profile); root 1083 security/apparmor/domain.c hat = aa_find_child(root, name); root 1084 security/apparmor/domain.c aa_put_profile(root); root 74 security/apparmor/include/label.h struct rb_root root; root 78 security/apparmor/include/label.h for ((N) = rb_first(&(LS)->root); (N); (N) = rb_next(N)) root 90 security/apparmor/include/policy_ns.h struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name); root 91 security/apparmor/include/policy_ns.h struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n); root 96 security/apparmor/include/policy_ns.h struct aa_ns *aa_prepare_ns(struct aa_ns *root, const char *name); root 578 security/apparmor/label.c rb_erase(&label->node, &ls->root); root 613 security/apparmor/label.c rb_replace_node(&old->node, &new->node, &ls->root); root 647 security/apparmor/label.c new = &ls->root.rb_node; root 674 security/apparmor/label.c rb_insert_color(&label->node, &ls->root); root 700 security/apparmor/label.c node = vec_labelset(vec, n)->root.rb_node; root 1125 security/apparmor/label.c node = ls->root.rb_node; root 1960 security/apparmor/label.c for (node = rb_first(&ls->root); node; node = rb_first(&ls->root)) { root 1980 security/apparmor/label.c ls->root = RB_ROOT; root 120 security/apparmor/path.c struct path root; root 121 security/apparmor/path.c get_fs_root(current->fs, &root); root 122 security/apparmor/path.c res = __d_path(path, &root, buf, buflen); root 123 security/apparmor/path.c path_put(&root); root 162 security/apparmor/policy_ns.c struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n) root 167 security/apparmor/policy_ns.c ns = aa_get_ns(__aa_findn_ns(&root->sub_ns, name, n)); root 183 security/apparmor/policy_ns.c struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name) root 185 security/apparmor/policy_ns.c return aa_findn_ns(root, name, strlen(name)); root 374 security/commoncap.c uid_t root, mappedroot; root 412 security/commoncap.c root = le32_to_cpu(nscap->rootid); root 413 security/commoncap.c kroot = make_kuid(fs_ns, root); root 778 security/commoncap.c kuid_t root, bool has_fcap) root 784 security/commoncap.c (__is_eff(root, new) || __is_real(root, new)) && root 787 security/commoncap.c __is_suid(root, new) && root 732 security/keys/keyring.c ptr = READ_ONCE(keyring->keys.root); root 540 security/selinux/hooks.c struct dentry *root = sb->s_root; root 541 security/selinux/hooks.c struct inode *root_inode = d_backing_inode(root); root 557 security/selinux/hooks.c rc = __vfs_getxattr(root, root_inode, XATTR_NAME_SELINUX, NULL, 0); root 584 security/selinux/hooks.c rc = inode_doinit_with_dentry(root_inode, root); root 653 security/selinux/hooks.c struct dentry *root = sbsec->sb->s_root; root 696 security/selinux/hooks.c root_isec = backing_inode_security_novalidate(root); root 1131 security/selinux/hooks.c struct dentry *root = sbsec->sb->s_root; root 1132 security/selinux/hooks.c struct inode_security_struct *isec = backing_inode_security(root); root 780 security/smack/smack_lsm.c struct dentry *root = sb->s_root; root 781 security/smack/smack_lsm.c struct inode *inode = d_backing_inode(root); root 798 sound/core/info.c struct proc_dir_entry *root, *p = NULL; root 802 sound/core/info.c root = entry->parent == NULL ? snd_proc_root->p : entry->parent->p; root 804 sound/core/info.c if (entry->p || !root) root 807 sound/core/info.c p = proc_mkdir_mode(entry->name, entry->mode, root); root 818 sound/core/info.c p = proc_create_data(entry->name, entry->mode, root, root 1959 sound/core/seq/seq_clientmgr.c if ((cptr = snd_seq_client_use_ptr(subs->root.client)) == NULL) root 1961 sound/core/seq/seq_clientmgr.c if ((port = snd_seq_port_use_ptr(cptr, subs->root.port)) == NULL) root 159 sound/firewire/bebob/bebob_proc.c add_node(struct snd_bebob *bebob, struct snd_info_entry *root, const char *name, root 164 sound/firewire/bebob/bebob_proc.c entry = snd_info_create_card_entry(bebob->card, name, root); root 171 sound/firewire/bebob/bebob_proc.c struct snd_info_entry *root; root 177 sound/firewire/bebob/bebob_proc.c root = snd_info_create_card_entry(bebob->card, "firewire", root 179 sound/firewire/bebob/bebob_proc.c if (root == NULL) root 181 sound/firewire/bebob/bebob_proc.c root->mode = S_IFDIR | 0555; root 183 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "clock", proc_read_clock); root 184 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "firmware", proc_read_hw_info); root 185 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "formation", proc_read_formation); root 188 sound/firewire/bebob/bebob_proc.c add_node(bebob, root, "meter", proc_read_meters); root 279 sound/firewire/dice/dice-proc.c static void add_node(struct snd_dice *dice, struct snd_info_entry *root, root 286 sound/firewire/dice/dice-proc.c entry = snd_info_create_card_entry(dice->card, name, root); root 293 sound/firewire/dice/dice-proc.c struct snd_info_entry *root; root 299 sound/firewire/dice/dice-proc.c root = snd_info_create_card_entry(dice->card, "firewire", root 301 sound/firewire/dice/dice-proc.c if (!root) root 303 sound/firewire/dice/dice-proc.c root->mode = S_IFDIR | 0555; root 305 sound/firewire/dice/dice-proc.c add_node(dice, root, "dice", dice_proc_read); root 306 sound/firewire/dice/dice-proc.c add_node(dice, root, "formation", dice_proc_read_formation); root 70 sound/firewire/digi00x/digi00x-proc.c struct snd_info_entry *root, *entry; root 76 sound/firewire/digi00x/digi00x-proc.c root = snd_info_create_card_entry(dg00x->card, "firewire", root 78 sound/firewire/digi00x/digi00x-proc.c if (root == NULL) root 81 sound/firewire/digi00x/digi00x-proc.c root->mode = S_IFDIR | 0555; root 83 sound/firewire/digi00x/digi00x-proc.c entry = snd_info_create_card_entry(dg00x->card, "clock", root); root 35 sound/firewire/fireface/ff-proc.c static void add_node(struct snd_ff *ff, struct snd_info_entry *root, root 42 sound/firewire/fireface/ff-proc.c entry = snd_info_create_card_entry(ff->card, name, root); root 49 sound/firewire/fireface/ff-proc.c struct snd_info_entry *root; root 55 sound/firewire/fireface/ff-proc.c root = snd_info_create_card_entry(ff->card, "firewire", root 57 sound/firewire/fireface/ff-proc.c if (root == NULL) root 59 sound/firewire/fireface/ff-proc.c root->mode = S_IFDIR | 0555; root 61 sound/firewire/fireface/ff-proc.c add_node(ff, root, "status", proc_dump_status); root 195 sound/firewire/fireworks/fireworks_proc.c add_node(struct snd_efw *efw, struct snd_info_entry *root, const char *name, root 200 sound/firewire/fireworks/fireworks_proc.c entry = snd_info_create_card_entry(efw->card, name, root); root 207 sound/firewire/fireworks/fireworks_proc.c struct snd_info_entry *root; root 213 sound/firewire/fireworks/fireworks_proc.c root = snd_info_create_card_entry(efw->card, "firewire", root 215 sound/firewire/fireworks/fireworks_proc.c if (root == NULL) root 217 sound/firewire/fireworks/fireworks_proc.c root->mode = S_IFDIR | 0555; root 219 sound/firewire/fireworks/fireworks_proc.c add_node(efw, root, "clock", proc_read_clock); root 220 sound/firewire/fireworks/fireworks_proc.c add_node(efw, root, "firmware", proc_read_hwinfo); root 221 sound/firewire/fireworks/fireworks_proc.c add_node(efw, root, "meters", proc_read_phys_meters); root 222 sound/firewire/fireworks/fireworks_proc.c add_node(efw, root, "queues", proc_read_queues_state); root 81 sound/firewire/motu/motu-proc.c static void add_node(struct snd_motu *motu, struct snd_info_entry *root, root 88 sound/firewire/motu/motu-proc.c entry = snd_info_create_card_entry(motu->card, name, root); root 95 sound/firewire/motu/motu-proc.c struct snd_info_entry *root; root 101 sound/firewire/motu/motu-proc.c root = snd_info_create_card_entry(motu->card, "firewire", root 103 sound/firewire/motu/motu-proc.c if (root == NULL) root 105 sound/firewire/motu/motu-proc.c root->mode = S_IFDIR | 0555; root 107 sound/firewire/motu/motu-proc.c add_node(motu, root, "clock", proc_read_clock); root 108 sound/firewire/motu/motu-proc.c add_node(motu, root, "format", proc_read_format); root 77 sound/firewire/oxfw/oxfw-proc.c static void add_node(struct snd_oxfw *oxfw, struct snd_info_entry *root, root 84 sound/firewire/oxfw/oxfw-proc.c entry = snd_info_create_card_entry(oxfw->card, name, root); root 91 sound/firewire/oxfw/oxfw-proc.c struct snd_info_entry *root; root 97 sound/firewire/oxfw/oxfw-proc.c root = snd_info_create_card_entry(oxfw->card, "firewire", root 99 sound/firewire/oxfw/oxfw-proc.c if (root == NULL) root 101 sound/firewire/oxfw/oxfw-proc.c root->mode = S_IFDIR | 0555; root 103 sound/firewire/oxfw/oxfw-proc.c add_node(oxfw, root, "formation", proc_read_formation); root 52 sound/firewire/tascam/tascam-proc.c static void add_node(struct snd_tscm *tscm, struct snd_info_entry *root, root 59 sound/firewire/tascam/tascam-proc.c entry = snd_info_create_card_entry(tscm->card, name, root); root 66 sound/firewire/tascam/tascam-proc.c struct snd_info_entry *root; root 72 sound/firewire/tascam/tascam-proc.c root = snd_info_create_card_entry(tscm->card, "firewire", root 74 sound/firewire/tascam/tascam-proc.c if (root == NULL) root 76 sound/firewire/tascam/tascam-proc.c root->mode = S_IFDIR | 0555; root 78 sound/firewire/tascam/tascam-proc.c add_node(tscm, root, "firmware", proc_read_firmware); root 14 sound/hda/hdac_sysfs.c struct kobject *root; root 333 sound/hda/hdac_sysfs.c kobject_put(tree->root); root 371 sound/hda/hdac_sysfs.c tree->root = kobject_create_and_add("widgets", &codec->dev.kobj); root 372 sound/hda/hdac_sysfs.c if (!tree->root) root 381 sound/hda/hdac_sysfs.c err = add_widget_node(tree->root, nid, &widget_node_group, root 388 sound/hda/hdac_sysfs.c err = add_widget_node(tree->root, codec->afg, root 394 sound/hda/hdac_sysfs.c kobject_uevent(tree->root, KOBJ_CHANGE); root 453 sound/hda/hdac_sysfs.c add_widget_node(tree->root, nid, &widget_node_group, root 465 sound/hda/hdac_sysfs.c kobject_uevent(tree->root, KOBJ_CHANGE); root 728 sound/soc/codecs/wm_adsp.c struct dentry *root = NULL; root 731 sound/soc/codecs/wm_adsp.c root = debugfs_create_dir(dsp->name, component->debugfs_root); root 733 sound/soc/codecs/wm_adsp.c debugfs_create_bool("booted", 0444, root, &dsp->booted); root 734 sound/soc/codecs/wm_adsp.c debugfs_create_bool("running", 0444, root, &dsp->running); root 735 sound/soc/codecs/wm_adsp.c debugfs_create_x32("fw_id", 0444, root, &dsp->fw_id); root 736 sound/soc/codecs/wm_adsp.c debugfs_create_x32("fw_version", 0444, root, &dsp->fw_id_version); root 739 sound/soc/codecs/wm_adsp.c debugfs_create_file(wm_adsp_debugfs_fops[i].name, 0444, root, root 742 sound/soc/codecs/wm_adsp.c dsp->debugfs_root = root; root 1442 sound/soc/fsl/fsl_ssi.c struct device_node *root = of_find_node_by_path("/"); root 1444 sound/soc/fsl/fsl_ssi.c sprop = of_get_property(root, "compatible", NULL); root 1445 sound/soc/fsl/fsl_ssi.c of_node_put(root); root 818 sound/synth/emux/emux_synth.c offset = (vp->reg.fixkey - vp->reg.root) * 4096 / 12; root 820 sound/synth/emux/emux_synth.c offset = (vp->note - vp->reg.root) * 4096 / 12; root 605 sound/synth/emux/soundfont.c avp->root = 60; root 1025 sound/synth/emux/soundfont.c zone->v.root = note / 100; root 1035 sound/synth/emux/soundfont.c zone->v.root, zone->v.tune, zone->v.low, zone->v.high); root 39 tools/include/linux/rbtree.h #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL) root 64 tools/include/linux/rbtree.h struct rb_root *root); root 97 tools/include/linux/rbtree.h #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ root 98 tools/include/linux/rbtree.h for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \ root 103 tools/include/linux/rbtree.h static inline void rb_erase_init(struct rb_node *n, struct rb_root *root) root 105 tools/include/linux/rbtree.h rb_erase(n, root); root 127 tools/include/linux/rbtree.h #define rb_first_cached(root) (root)->rb_leftmost root 130 tools/include/linux/rbtree.h struct rb_root_cached *root, root 134 tools/include/linux/rbtree.h root->rb_leftmost = node; root 135 tools/include/linux/rbtree.h rb_insert_color(node, &root->rb_root); root 139 tools/include/linux/rbtree.h struct rb_root_cached *root) root 141 tools/include/linux/rbtree.h if (root->rb_leftmost == node) root 142 tools/include/linux/rbtree.h root->rb_leftmost = rb_next(node); root 143 tools/include/linux/rbtree.h rb_erase(node, &root->rb_root); root 148 tools/include/linux/rbtree.h struct rb_root_cached *root) root 150 tools/include/linux/rbtree.h if (root->rb_leftmost == victim) root 151 tools/include/linux/rbtree.h root->rb_leftmost = new; root 152 tools/include/linux/rbtree.h rb_replace_node(victim, new, &root->rb_root); root 35 tools/include/linux/rbtree_augmented.h extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, root 49 tools/include/linux/rbtree_augmented.h rb_insert_augmented(struct rb_node *node, struct rb_root *root, root 52 tools/include/linux/rbtree_augmented.h __rb_insert_augmented(node, root, augment->rotate); root 57 tools/include/linux/rbtree_augmented.h struct rb_root_cached *root, bool newleft, root 61 tools/include/linux/rbtree_augmented.h root->rb_leftmost = node; root 62 tools/include/linux/rbtree_augmented.h rb_insert_augmented(node, &root->rb_root, augment); root 172 tools/include/linux/rbtree_augmented.h struct rb_node *parent, struct rb_root *root) root 180 tools/include/linux/rbtree_augmented.h WRITE_ONCE(root->rb_node, new); root 183 tools/include/linux/rbtree_augmented.h extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, root 187 tools/include/linux/rbtree_augmented.h __rb_erase_augmented(struct rb_node *node, struct rb_root *root, root 205 tools/include/linux/rbtree_augmented.h __rb_change_child(node, child, parent, root); root 216 tools/include/linux/rbtree_augmented.h __rb_change_child(node, tmp, parent, root); root 272 tools/include/linux/rbtree_augmented.h __rb_change_child(node, successor, tmp, root); root 291 tools/include/linux/rbtree_augmented.h rb_erase_augmented(struct rb_node *node, struct rb_root *root, root 294 tools/include/linux/rbtree_augmented.h struct rb_node *rebalance = __rb_erase_augmented(node, root, augment); root 296 tools/include/linux/rbtree_augmented.h __rb_erase_color(rebalance, root, augment->rotate); root 300 tools/include/linux/rbtree_augmented.h rb_erase_augmented_cached(struct rb_node *node, struct rb_root_cached *root, root 303 tools/include/linux/rbtree_augmented.h if (root->rb_leftmost == node) root 304 tools/include/linux/rbtree_augmented.h root->rb_leftmost = rb_next(node); root 305 tools/include/linux/rbtree_augmented.h rb_erase_augmented(node, &root->rb_root, augment); root 76 tools/lib/rbtree.c struct rb_root *root, int color) root 81 tools/lib/rbtree.c __rb_change_child(old, new, parent, root); root 85 tools/lib/rbtree.c __rb_insert(struct rb_node *node, struct rb_root *root, root 180 tools/lib/rbtree.c __rb_rotate_set_parents(gparent, parent, root, RB_RED); root 215 tools/lib/rbtree.c __rb_rotate_set_parents(gparent, parent, root, RB_RED); root 227 tools/lib/rbtree.c ____rb_erase_color(struct rb_node *parent, struct rb_root *root, root 256 tools/lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 348 tools/lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 360 tools/lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 401 tools/lib/rbtree.c __rb_rotate_set_parents(parent, sibling, root, root 410 tools/lib/rbtree.c void __rb_erase_color(struct rb_node *parent, struct rb_root *root, root 413 tools/lib/rbtree.c ____rb_erase_color(parent, root, augment_rotate); root 433 tools/lib/rbtree.c void rb_insert_color(struct rb_node *node, struct rb_root *root) root 435 tools/lib/rbtree.c __rb_insert(node, root, dummy_rotate); root 438 tools/lib/rbtree.c void rb_erase(struct rb_node *node, struct rb_root *root) root 441 tools/lib/rbtree.c rebalance = __rb_erase_augmented(node, root, &dummy_callbacks); root 443 tools/lib/rbtree.c ____rb_erase_color(rebalance, root, dummy_rotate); root 453 tools/lib/rbtree.c void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, root 456 tools/lib/rbtree.c __rb_insert(node, root, augment_rotate); root 462 tools/lib/rbtree.c struct rb_node *rb_first(const struct rb_root *root) root 466 tools/lib/rbtree.c n = root->rb_node; root 474 tools/lib/rbtree.c struct rb_node *rb_last(const struct rb_root *root) root 478 tools/lib/rbtree.c n = root->rb_node; root 546 tools/lib/rbtree.c struct rb_root *root) root 558 tools/lib/rbtree.c __rb_change_child(victim, new, parent, root); root 591 tools/lib/rbtree.c struct rb_node *rb_first_postorder(const struct rb_root *root) root 593 tools/lib/rbtree.c if (!root->rb_node) root 596 tools/lib/rbtree.c return rb_left_deepest_node(root->rb_node); root 513 tools/perf/builtin-diff.c struct rb_root_cached *root; root 517 tools/perf/builtin-diff.c root = &hists->entries_collapsed; root 519 tools/perf/builtin-diff.c root = hists->entries_in; root 521 tools/perf/builtin-diff.c next = rb_first_cached(root); root 527 tools/perf/builtin-diff.c rb_erase_cached(&he->rb_node_in, root); root 674 tools/perf/builtin-diff.c struct rb_root_cached *root = hists_pair->entries_in; root 675 tools/perf/builtin-diff.c struct rb_node *next = rb_first_cached(root); root 706 tools/perf/builtin-diff.c struct rb_root_cached *root = hists_base->entries_in; root 707 tools/perf/builtin-diff.c struct rb_node *next = rb_first_cached(root); root 732 tools/perf/builtin-diff.c struct rb_root_cached *root; root 736 tools/perf/builtin-diff.c root = &hists->entries_collapsed; root 738 tools/perf/builtin-diff.c root = hists->entries_in; root 740 tools/perf/builtin-diff.c next = rb_first_cached(root); root 212 tools/perf/builtin-kmem.c struct rb_root *root, root 215 tools/perf/builtin-kmem.c struct rb_node *node = root->rb_node; root 989 tools/perf/builtin-kmem.c static void __print_slab_result(struct rb_root *root, root 1001 tools/perf/builtin-kmem.c next = rb_first(root); root 1253 tools/perf/builtin-kmem.c static void sort_slab_insert(struct rb_root *root, struct alloc_stat *data, root 1256 tools/perf/builtin-kmem.c struct rb_node **new = &(root->rb_node); root 1280 tools/perf/builtin-kmem.c rb_insert_color(&data->node, root); root 1283 tools/perf/builtin-kmem.c static void __sort_slab_result(struct rb_root *root, struct rb_root *root_sorted, root 1290 tools/perf/builtin-kmem.c node = rb_first(root); root 1294 tools/perf/builtin-kmem.c rb_erase(node, root); root 1300 tools/perf/builtin-kmem.c static void sort_page_insert(struct rb_root *root, struct page_stat *data, root 1303 tools/perf/builtin-kmem.c struct rb_node **new = &root->rb_node; root 1327 tools/perf/builtin-kmem.c rb_insert_color(&data->node, root); root 1330 tools/perf/builtin-kmem.c static void __sort_page_result(struct rb_root *root, struct rb_root *root_sorted, root 1337 tools/perf/builtin-kmem.c node = rb_first(root); root 1341 tools/perf/builtin-kmem.c rb_erase(node, root); root 960 tools/perf/builtin-sched.c thread_atoms_search(struct rb_root_cached *root, struct thread *thread, root 963 tools/perf/builtin-sched.c struct rb_node *node = root->rb_root.rb_node; root 986 tools/perf/builtin-sched.c __thread_latency_insert(struct rb_root_cached *root, struct work_atoms *data, root 989 tools/perf/builtin-sched.c struct rb_node **new = &(root->rb_root.rb_node), *parent = NULL; root 1010 tools/perf/builtin-sched.c rb_insert_color_cached(&data->node, root, leftmost); root 1460 tools/perf/builtin-sched.c struct rb_root_cached *root = &sched->atom_root; root 1464 tools/perf/builtin-sched.c node = rb_first_cached(root); root 1468 tools/perf/builtin-sched.c rb_erase_cached(node, root); root 1472 tools/perf/builtin-sched.c if (root == &sched->atom_root) { root 1473 tools/perf/builtin-sched.c root = &sched->merged_atom_root; root 2773 tools/perf/builtin-sched.c static size_t timehist_print_idlehist_callchain(struct rb_root_cached *root) root 2778 tools/perf/builtin-sched.c struct rb_node *rb_node = rb_first_cached(root); root 3083 tools/perf/builtin-sched.c static void __merge_work_atoms(struct rb_root_cached *root, struct work_atoms *data) root 3085 tools/perf/builtin-sched.c struct rb_node **new = &(root->rb_root.rb_node), *parent = NULL; root 3120 tools/perf/builtin-sched.c rb_insert_color_cached(&data->node, root, leftmost); root 166 tools/perf/tests/hists_common.c struct rb_root_cached *root; root 170 tools/perf/tests/hists_common.c root = &hists->entries_collapsed; root 172 tools/perf/tests/hists_common.c root = hists->entries_in; root 175 tools/perf/tests/hists_common.c node = rb_first_cached(root); root 196 tools/perf/tests/hists_common.c struct rb_root_cached *root; root 199 tools/perf/tests/hists_common.c root = &hists->entries; root 202 tools/perf/tests/hists_common.c node = rb_first_cached(root); root 183 tools/perf/tests/hists_cumulate.c struct rb_root *root; root 202 tools/perf/tests/hists_cumulate.c root = &hists->entries.rb_root; root 203 tools/perf/tests/hists_cumulate.c for (node = rb_first(root), i = 0; root 222 tools/perf/tests/hists_cumulate.c root = &he->callchain->node.rb_root; root 224 tools/perf/tests/hists_cumulate.c TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); root 225 tools/perf/tests/hists_cumulate.c cnode = rb_entry(rb_first(root), struct callchain_node, rb_node); root 144 tools/perf/tests/hists_link.c struct rb_root_cached *root; root 151 tools/perf/tests/hists_link.c root = &hists->entries_collapsed; root 153 tools/perf/tests/hists_link.c root = hists->entries_in; root 155 tools/perf/tests/hists_link.c node = rb_first_cached(root); root 194 tools/perf/tests/hists_link.c struct rb_root_cached *root; root 203 tools/perf/tests/hists_link.c root = &hists->entries_collapsed; root 205 tools/perf/tests/hists_link.c root = hists->entries_in; root 207 tools/perf/tests/hists_link.c node = rb_first_cached(root); root 130 tools/perf/tests/hists_output.c struct rb_root_cached *root; root 165 tools/perf/tests/hists_output.c root = &hists->entries; root 166 tools/perf/tests/hists_output.c node = rb_first_cached(root); root 232 tools/perf/tests/hists_output.c struct rb_root_cached *root; root 265 tools/perf/tests/hists_output.c root = &hists->entries; root 266 tools/perf/tests/hists_output.c node = rb_first_cached(root); root 288 tools/perf/tests/hists_output.c struct rb_root_cached *root; root 319 tools/perf/tests/hists_output.c root = &hists->entries; root 320 tools/perf/tests/hists_output.c node = rb_first_cached(root); root 362 tools/perf/tests/hists_output.c struct rb_root_cached *root; root 397 tools/perf/tests/hists_output.c root = &hists->entries; root 398 tools/perf/tests/hists_output.c node = rb_first_cached(root); root 464 tools/perf/tests/hists_output.c struct rb_root_cached *root; root 500 tools/perf/tests/hists_output.c root = &hists->entries; root 501 tools/perf/tests/hists_output.c node = rb_first_cached(root); root 140 tools/perf/ui/browser.c struct rb_root *root = browser->entries; root 145 tools/perf/ui/browser.c nd = rb_first(root); root 151 tools/perf/ui/browser.c nd = rb_last(root); root 247 tools/perf/ui/browsers/annotate.c struct rb_root *root = &browser->entries; root 248 tools/perf/ui/browsers/annotate.c struct rb_node **p = &root->rb_node; root 262 tools/perf/ui/browsers/annotate.c rb_insert_color(&al->rb_node, root); root 364 tools/perf/ui/browsers/hists.c static void callchain__init_have_children(struct rb_root *root) root 366 tools/perf/ui/browsers/hists.c struct rb_node *nd = rb_first(root); root 369 tools/perf/ui/browsers/hists.c for (nd = rb_first(root); nd; nd = rb_next(nd)) { root 858 tools/perf/ui/browsers/hists.c struct rb_root *root, root 869 tools/perf/ui/browsers/hists.c node = rb_first(root); root 962 tools/perf/ui/browsers/hists.c struct rb_root *root, root 973 tools/perf/ui/browsers/hists.c node = rb_first(root); root 1047 tools/perf/ui/browsers/hists.c struct rb_root *root, int level, root 1062 tools/perf/ui/browsers/hists.c node = rb_first(root); root 97 tools/perf/ui/gtk/hists.c static void perf_gtk__add_callchain_flat(struct rb_root *root, GtkTreeStore *store, root 101 tools/perf/ui/gtk/hists.c bool has_single_node = (rb_first(root) == rb_last(root)); root 103 tools/perf/ui/gtk/hists.c for (nd = rb_first(root); nd; nd = rb_next(nd)) { root 160 tools/perf/ui/gtk/hists.c static void perf_gtk__add_callchain_folded(struct rb_root *root, GtkTreeStore *store, root 165 tools/perf/ui/gtk/hists.c for (nd = rb_first(root); nd; nd = rb_next(nd)) { root 220 tools/perf/ui/gtk/hists.c static void perf_gtk__add_callchain_graph(struct rb_root *root, GtkTreeStore *store, root 224 tools/perf/ui/gtk/hists.c bool has_single_node = (rb_first(root) == rb_last(root)); root 226 tools/perf/ui/gtk/hists.c for (nd = rb_first(root); nd; nd = rb_next(nd)) { root 270 tools/perf/ui/gtk/hists.c static void perf_gtk__add_callchain(struct rb_root *root, GtkTreeStore *store, root 274 tools/perf/ui/gtk/hists.c perf_gtk__add_callchain_flat(root, store, parent, col, total); root 276 tools/perf/ui/gtk/hists.c perf_gtk__add_callchain_folded(root, store, parent, col, total); root 278 tools/perf/ui/gtk/hists.c perf_gtk__add_callchain_graph(root, store, parent, col, total); root 406 tools/perf/ui/gtk/hists.c struct rb_root_cached *root, root 420 tools/perf/ui/gtk/hists.c for (node = rb_first_cached(root); node; node = rb_next(node)) { root 108 tools/perf/ui/stdio/hist.c static size_t __callchain__fprintf_graph(FILE *fp, struct rb_root *root, root 124 tools/perf/ui/stdio/hist.c node = rb_first(root); root 216 tools/perf/ui/stdio/hist.c static size_t callchain__fprintf_graph(FILE *fp, struct rb_root *root, root 229 tools/perf/ui/stdio/hist.c node = rb_first(root); root 265 tools/perf/ui/stdio/hist.c root = &cnode->rb_root; root 271 tools/perf/ui/stdio/hist.c ret += __callchain__fprintf_graph(fp, root, total_samples, root 2115 tools/perf/util/annotate.c static void insert_source_line(struct rb_root *root, struct annotation_line *al, root 2119 tools/perf/util/annotate.c struct rb_node **p = &root->rb_node; root 2148 tools/perf/util/annotate.c rb_insert_color(&al->rb_node, root); root 2164 tools/perf/util/annotate.c static void __resort_source_line(struct rb_root *root, struct annotation_line *al) root 2167 tools/perf/util/annotate.c struct rb_node **p = &root->rb_node; root 2181 tools/perf/util/annotate.c rb_insert_color(&al->rb_node, root); root 2202 tools/perf/util/annotate.c static void print_summary(struct rb_root *root, const char *filename) root 2210 tools/perf/util/annotate.c if (RB_EMPTY_ROOT(root)) { root 2215 tools/perf/util/annotate.c node = rb_first(root); root 2642 tools/perf/util/annotate.c struct rb_root *root, root 2670 tools/perf/util/annotate.c resort_source_line(root, &tmp_root); root 2674 tools/perf/util/annotate.c struct rb_root *root, root 2679 tools/perf/util/annotate.c annotation__calc_lines(notes, map, root, opts); root 8 tools/perf/util/block-range.c struct rb_root root; root 22 tools/perf/util/block-range.c for (rb = rb_first(&block_ranges.root); rb; rb = rb_next(rb)) { root 35 tools/perf/util/block-range.c struct rb_node **p = &block_ranges.root.rb_node; root 83 tools/perf/util/block-range.c struct rb_node **p = &block_ranges.root.rb_node; root 132 tools/perf/util/block-range.c rb_insert_color(&head->node, &block_ranges.root); root 155 tools/perf/util/block-range.c rb_insert_color(&entry->node, &block_ranges.root); root 186 tools/perf/util/block-range.c rb_insert_color(&head->node, &block_ranges.root); root 226 tools/perf/util/block-range.c rb_insert_color(&tail->node, &block_ranges.root); root 264 tools/perf/util/block-range.c rb_insert_color(&tail->node, &block_ranges.root); root 287 tools/perf/util/block-range.c rb_insert_color(&hole->node, &block_ranges.root); root 372 tools/perf/util/callchain.c rb_insert_callchain(struct rb_root *root, struct callchain_node *chain, root 375 tools/perf/util/callchain.c struct rb_node **p = &root->rb_node; root 409 tools/perf/util/callchain.c rb_insert_color(&chain->rb_node, root); root 436 tools/perf/util/callchain.c sort_chain_flat(struct rb_root *rb_root, struct callchain_root *root, root 440 tools/perf/util/callchain.c __sort_chain_flat(rb_root, &root->node, min_hit); root 862 tools/perf/util/callchain.c append_chain(struct callchain_node *root, root 867 tools/perf/util/callchain.c append_chain_children(struct callchain_node *root, root 873 tools/perf/util/callchain.c struct rb_node **p = &root->rb_root_in.rb_node; root 900 tools/perf/util/callchain.c rnode = add_child(root, cursor, period); root 905 tools/perf/util/callchain.c rb_insert_color(&rnode->rb_node_in, &root->rb_root_in); root 908 tools/perf/util/callchain.c root->children_hit += period; root 909 tools/perf/util/callchain.c root->children_count++; root 914 tools/perf/util/callchain.c append_chain(struct callchain_node *root, root 930 tools/perf/util/callchain.c list_for_each_entry(cnode, &root->val, list) { root 955 tools/perf/util/callchain.c if (matches < root->val_nr) { root 956 tools/perf/util/callchain.c if (split_add_child(root, cursor, cnode, start, matches, root 964 tools/perf/util/callchain.c if (matches == root->val_nr && cursor->pos == cursor->nr) { root 965 tools/perf/util/callchain.c root->hit += period; root 966 tools/perf/util/callchain.c root->count++; root 971 tools/perf/util/callchain.c if (append_chain_children(root, cursor, period) < 0) root 977 tools/perf/util/callchain.c int callchain_append(struct callchain_root *root, root 986 tools/perf/util/callchain.c if (append_chain_children(&root->node, cursor, period) < 0) root 989 tools/perf/util/callchain.c if (cursor->nr > root->max_depth) root 990 tools/perf/util/callchain.c root->max_depth = cursor->nr; root 1279 tools/perf/util/callchain.c int callchain_branch_counts(struct callchain_root *root, root 1295 tools/perf/util/callchain.c return callchain_node_branch_counts_cumul(&root->node, root 1483 tools/perf/util/callchain.c void free_callchain(struct callchain_root *root) root 1488 tools/perf/util/callchain.c free_callchain_node(&root->node); root 1511 tools/perf/util/callchain.c void decay_callchain(struct callchain_root *root) root 1516 tools/perf/util/callchain.c decay_callchain_node(&root->node); root 165 tools/perf/util/callchain.h static inline void callchain_init(struct callchain_root *root) root 167 tools/perf/util/callchain.h INIT_LIST_HEAD(&root->node.val); root 168 tools/perf/util/callchain.h INIT_LIST_HEAD(&root->node.parent_val); root 170 tools/perf/util/callchain.h root->node.parent = NULL; root 171 tools/perf/util/callchain.h root->node.hit = 0; root 172 tools/perf/util/callchain.h root->node.children_hit = 0; root 173 tools/perf/util/callchain.h root->node.rb_root_in = RB_ROOT; root 174 tools/perf/util/callchain.h root->max_depth = 0; root 188 tools/perf/util/callchain.h int callchain_append(struct callchain_root *root, root 285 tools/perf/util/callchain.h void free_callchain(struct callchain_root *root); root 286 tools/perf/util/callchain.h void decay_callchain(struct callchain_root *root); root 289 tools/perf/util/callchain.h int callchain_branch_counts(struct callchain_root *root, root 61 tools/perf/util/comm.c struct comm_str *__comm_str__findnew(const char *str, struct rb_root *root) root 63 tools/perf/util/comm.c struct rb_node **p = &root->rb_node; root 92 tools/perf/util/comm.c rb_insert_color(&new->rb_node, root); root 97 tools/perf/util/comm.c static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) root 102 tools/perf/util/comm.c cs = __comm_str__findnew(str, root); root 756 tools/perf/util/dso.c struct rb_root *root = &dso->data.cache; root 757 tools/perf/util/dso.c struct rb_node *next = rb_first(root); root 765 tools/perf/util/dso.c rb_erase(&cache->rb_node, root); root 773 tools/perf/util/dso.c const struct rb_root *root = &dso->data.cache; root 774 tools/perf/util/dso.c struct rb_node * const *p = &root->rb_node; root 799 tools/perf/util/dso.c struct rb_root *root = &dso->data.cache; root 800 tools/perf/util/dso.c struct rb_node **p = &root->rb_node; root 822 tools/perf/util/dso.c rb_insert_color(&new->rb_node, root); root 1101 tools/perf/util/dso.c struct rb_root *root = dso->root; root 1109 tools/perf/util/dso.c if (root) { root 1110 tools/perf/util/dso.c rb_erase(&dso->rb_node, root); root 1116 tools/perf/util/dso.c dso->root = NULL; root 1123 tools/perf/util/dso.c if (root) root 1124 tools/perf/util/dso.c __dsos__findnew_link_by_longname(root, dso, NULL); root 1192 tools/perf/util/dso.c dso->root = NULL; root 138 tools/perf/util/dso.h struct rb_root *root; /* root of rbtree that rb_node is in */ root 42 tools/perf/util/dsos.c struct dso *__dsos__findnew_link_by_longname(struct rb_root *root, struct dso *dso, const char *name) root 44 tools/perf/util/dsos.c struct rb_node **p = &root->rb_node; root 84 tools/perf/util/dsos.c rb_insert_color(&dso->rb_node, root); root 85 tools/perf/util/dsos.c dso->root = root; root 93 tools/perf/util/dsos.c __dsos__findnew_link_by_longname(&dsos->root, dso, NULL); root 134 tools/perf/util/dsos.c return __dsos__findnew_by_longname(&dsos->root, name); root 19 tools/perf/util/dsos.h struct rb_root root; /* rbtree root sorted by long name */ root 31 tools/perf/util/dsos.h struct dso *__dsos__findnew_link_by_longname(struct rb_root *root, struct dso *dso, const char *name); root 33 tools/perf/util/dsos.h static inline struct dso *__dsos__findnew_by_longname(struct rb_root *root, const char *name) root 35 tools/perf/util/dsos.h return __dsos__findnew_link_by_longname(root, NULL, name); root 129 tools/perf/util/env.c struct rb_root *root; root 134 tools/perf/util/env.c root = &env->bpf_progs.infos; root 135 tools/perf/util/env.c next = rb_first(root); root 142 tools/perf/util/env.c rb_erase(&node->rb_node, root); root 148 tools/perf/util/env.c root = &env->bpf_progs.btfs; root 149 tools/perf/util/env.c next = rb_first(root); root 156 tools/perf/util/env.c rb_erase(&node->rb_node, root); root 919 tools/perf/util/header.c struct rb_root *root; root 930 tools/perf/util/header.c root = &env->bpf_progs.infos; root 931 tools/perf/util/header.c next = rb_first(root); root 968 tools/perf/util/header.c struct rb_root *root; root 980 tools/perf/util/header.c root = &env->bpf_progs.btfs; root 981 tools/perf/util/header.c next = rb_first(root); root 1535 tools/perf/util/header.c struct rb_root *root; root 1540 tools/perf/util/header.c root = &env->bpf_progs.infos; root 1541 tools/perf/util/header.c next = rb_first(root); root 1559 tools/perf/util/header.c struct rb_root *root; root 1564 tools/perf/util/header.c root = &env->bpf_progs.btfs; root 1565 tools/perf/util/header.c next = rb_first(root); root 1395 tools/perf/util/hist.c struct rb_root_cached *root, root 1400 tools/perf/util/hist.c struct rb_node **p = &root->rb_root.rb_node; root 1462 tools/perf/util/hist.c rb_insert_color_cached(&new->rb_node_in, root, leftmost); root 1467 tools/perf/util/hist.c struct rb_root_cached *root, root 1482 tools/perf/util/hist.c new_he = hierarchy_insert_entry(hists, root, he, parent, &node->hpp); root 1488 tools/perf/util/hist.c root = &new_he->hroot_in; root 1514 tools/perf/util/hist.c struct rb_root_cached *root, root 1517 tools/perf/util/hist.c struct rb_node **p = &root->rb_root.rb_node; root 1524 tools/perf/util/hist.c return hists__hierarchy_insert_entry(hists, root, he); root 1560 tools/perf/util/hist.c rb_insert_color_cached(&he->rb_node_in, root, leftmost); root 1566 tools/perf/util/hist.c struct rb_root_cached *root; root 1570 tools/perf/util/hist.c root = hists->entries_in; root 1576 tools/perf/util/hist.c return root; root 1589 tools/perf/util/hist.c struct rb_root_cached *root; root 1599 tools/perf/util/hist.c root = hists__get_rotate_entries_in(hists); root 1601 tools/perf/util/hist.c next = rb_first_cached(root); root 1609 tools/perf/util/hist.c rb_erase_cached(&n->rb_node_in, root); root 1700 tools/perf/util/hist.c static void hierarchy_insert_output_entry(struct rb_root_cached *root, root 1703 tools/perf/util/hist.c struct rb_node **p = &root->rb_root.rb_node; root 1722 tools/perf/util/hist.c rb_insert_color_cached(&he->rb_node, root, leftmost); root 1835 tools/perf/util/hist.c struct rb_root_cached *root; root 1861 tools/perf/util/hist.c root = &hists->entries_collapsed; root 1863 tools/perf/util/hist.c root = hists->entries_in; root 1865 tools/perf/util/hist.c next = rb_first_cached(root); root 2110 tools/perf/util/hist.c static void resort_filtered_entry(struct rb_root_cached *root, root 2113 tools/perf/util/hist.c struct rb_node **p = &root->rb_root.rb_node; root 2133 tools/perf/util/hist.c rb_insert_color_cached(&he->rb_node, root, leftmost); root 2279 tools/perf/util/hist.c struct rb_root_cached *root; root 2287 tools/perf/util/hist.c root = &hists->entries_collapsed; root 2289 tools/perf/util/hist.c root = hists->entries_in; root 2291 tools/perf/util/hist.c p = &root->rb_root.rb_node; root 2317 tools/perf/util/hist.c rb_insert_color_cached(&he->rb_node_in, root, leftmost); root 2326 tools/perf/util/hist.c struct rb_root_cached *root, root 2335 tools/perf/util/hist.c p = &root->rb_root.rb_node; root 2361 tools/perf/util/hist.c rb_insert_color_cached(&he->rb_node_in, root, leftmost); root 2397 tools/perf/util/hist.c static struct hist_entry *hists__find_hierarchy_entry(struct rb_root_cached *root, root 2400 tools/perf/util/hist.c struct rb_node *n = root->rb_root.rb_node; root 2447 tools/perf/util/hist.c struct rb_root_cached *root; root 2458 tools/perf/util/hist.c root = &leader->entries_collapsed; root 2460 tools/perf/util/hist.c root = leader->entries_in; root 2462 tools/perf/util/hist.c for (nd = rb_first_cached(root); nd; nd = rb_next(nd)) { root 2522 tools/perf/util/hist.c struct rb_root_cached *root; root 2534 tools/perf/util/hist.c root = &other->entries_collapsed; root 2536 tools/perf/util/hist.c root = other->entries_in; root 2538 tools/perf/util/hist.c for (nd = rb_first_cached(root); nd; nd = rb_next(nd)) { root 2554 tools/perf/util/hist.c struct rb_root_cached *root; root 2559 tools/perf/util/hist.c root = &hists->entries_collapsed; root 2561 tools/perf/util/hist.c root = hists->entries_in; root 2563 tools/perf/util/hist.c for (nd = rb_first_cached(root); nd; nd = rb_next(nd)) { root 2741 tools/perf/util/hist.c static void hists__delete_remaining_entries(struct rb_root_cached *root) root 2746 tools/perf/util/hist.c while (!RB_EMPTY_ROOT(&root->rb_root)) { root 2747 tools/perf/util/hist.c node = rb_first_cached(root); root 2748 tools/perf/util/hist.c rb_erase_cached(node, root); root 48 tools/perf/util/machine.c dsos->root = RB_ROOT; root 174 tools/perf/util/machine.c pos->root = NULL; root 597 tools/perf/util/map.c struct rb_root *root = &maps->entries; root 598 tools/perf/util/map.c struct rb_node *next = rb_first(root); root 604 tools/perf/util/map.c rb_erase_init(&pos->rb_node, root); root 611 tools/perf/util/map.c struct rb_root *root = &maps->names; root 612 tools/perf/util/map.c struct rb_node *next = rb_first(root); root 618 tools/perf/util/map.c rb_erase_init(&pos->rb_node_name, root); root 775 tools/perf/util/map.c struct rb_root *root; root 781 tools/perf/util/map.c root = &maps->entries; root 787 tools/perf/util/map.c next = root->rb_node; root 825 tools/perf/util/map.c rb_erase_init(&pos->rb_node, root); root 17 tools/perf/util/mem2node.c static void phys_entry__insert(struct phys_entry *entry, struct rb_root *root) root 19 tools/perf/util/mem2node.c struct rb_node **p = &root->rb_node; root 34 tools/perf/util/mem2node.c rb_insert_color(&entry->rb_node, root); root 54 tools/perf/util/mem2node.c map->root = RB_ROOT; root 105 tools/perf/util/mem2node.c phys_entry__insert(&entries[i], &map->root); root 122 tools/perf/util/mem2node.c p = &map->root.rb_node; root 11 tools/perf/util/mem2node.h struct rb_root root; root 33 tools/perf/util/strfilter.c strfilter_node__delete(filter->root); root 84 tools/perf/util/strfilter.c struct strfilter_node root, *cur, *last_op; root 90 tools/perf/util/strfilter.c memset(&root, 0, sizeof(root)); root 91 tools/perf/util/strfilter.c last_op = cur = &root; root 106 tools/perf/util/strfilter.c if (!cur->r || !root.r) root 108 tools/perf/util/strfilter.c cur = strfilter_node__alloc(OP_or, root.r, NULL); root 111 tools/perf/util/strfilter.c root.r = cur; root 147 tools/perf/util/strfilter.c return root.r; root 152 tools/perf/util/strfilter.c strfilter_node__delete(root.r); root 166 tools/perf/util/strfilter.c filter->root = strfilter_node__new(rules, &ep); root 168 tools/perf/util/strfilter.c if (!filter || !filter->root || *ep != '\0') { root 181 tools/perf/util/strfilter.c struct strfilter_node *right, *root; root 193 tools/perf/util/strfilter.c root = strfilter_node__alloc(_or ? OP_or : OP_and, filter->root, right); root 194 tools/perf/util/strfilter.c if (!root) { root 199 tools/perf/util/strfilter.c filter->root = root; root 243 tools/perf/util/strfilter.c return strfilter_node__compare(filter->root, str); root 303 tools/perf/util/strfilter.c len = strfilter_node__sprint(filter->root, NULL); root 309 tools/perf/util/strfilter.c strfilter_node__sprint(filter->root, ret); root 18 tools/perf/util/strfilter.h struct strfilter_node *root; root 673 tools/perf/util/symbol.c struct rb_root_cached *root = &dso->symbols; root 690 tools/perf/util/symbol.c __symbols__insert(root, sym, !strchr(name, '[')); root 711 tools/perf/util/symbol.c struct rb_root_cached *root = &dso->symbols; root 712 tools/perf/util/symbol.c struct rb_node *next = rb_first_cached(root); root 717 tools/perf/util/symbol.c *root = RB_ROOT_CACHED; root 765 tools/perf/util/symbol.c struct rb_root_cached *root = &dso->symbols; root 766 tools/perf/util/symbol.c struct rb_node *next = rb_first_cached(root); root 880 tools/perf/util/symbol.c rb_erase_cached(&pos->rb_node, root); root 888 tools/perf/util/symbol.c rb_erase_cached(&pos->rb_node, root); root 657 tools/perf/util/thread-stack.c struct call_path *root = &cpr->call_path; root 675 tools/perf/util/thread-stack.c cp = call_path__findnew(cpr, root, tsym, addr, ks); root 689 tools/perf/util/thread-stack.c parent = root; root 705 tools/perf/util/thread-stack.c cp = call_path__findnew(cpr, root, tsym, addr, ks); root 14 tools/testing/radix-tree/benchmark.c static long long benchmark_iter(struct radix_tree_root *root, bool tagged) root 29 tools/testing/radix-tree/benchmark.c radix_tree_for_each_tagged(slot, root, &iter, 0, 0) root 32 tools/testing/radix-tree/benchmark.c radix_tree_for_each_slot(slot, root, &iter, 0) root 52 tools/testing/radix-tree/benchmark.c static void benchmark_insert(struct radix_tree_root *root, root 62 tools/testing/radix-tree/benchmark.c item_insert(root, index); root 73 tools/testing/radix-tree/benchmark.c static void benchmark_tagging(struct radix_tree_root *root, root 83 tools/testing/radix-tree/benchmark.c radix_tree_tag_set(root, index, 0); root 94 tools/testing/radix-tree/benchmark.c static void benchmark_delete(struct radix_tree_root *root, root 104 tools/testing/radix-tree/benchmark.c item_delete(root, index); root 31 tools/testing/radix-tree/regression3.c RADIX_TREE(root, GFP_KERNEL); root 40 tools/testing/radix-tree/regression3.c radix_tree_insert(&root, 0, ptr0); root 41 tools/testing/radix-tree/regression3.c radix_tree_tag_set(&root, 0, 0); root 44 tools/testing/radix-tree/regression3.c radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { root 47 tools/testing/radix-tree/regression3.c radix_tree_insert(&root, 1, ptr); root 48 tools/testing/radix-tree/regression3.c radix_tree_tag_set(&root, 1, 0); root 57 tools/testing/radix-tree/regression3.c radix_tree_delete(&root, 1); root 60 tools/testing/radix-tree/regression3.c radix_tree_for_each_slot(slot, &root, &iter, 0) { root 63 tools/testing/radix-tree/regression3.c radix_tree_insert(&root, 1, ptr); root 73 tools/testing/radix-tree/regression3.c radix_tree_for_each_slot(slot, &root, &iter, 0) { root 81 tools/testing/radix-tree/regression3.c radix_tree_tag_set(&root, 0, 0); root 82 tools/testing/radix-tree/regression3.c radix_tree_tag_set(&root, 1, 0); root 83 tools/testing/radix-tree/regression3.c radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { root 91 tools/testing/radix-tree/regression3.c radix_tree_delete(&root, 0); root 92 tools/testing/radix-tree/regression3.c radix_tree_delete(&root, 1); root 12 tools/testing/radix-tree/test.c item_tag_set(struct radix_tree_root *root, unsigned long index, int tag) root 14 tools/testing/radix-tree/test.c return radix_tree_tag_set(root, index, tag); root 18 tools/testing/radix-tree/test.c item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag) root 20 tools/testing/radix-tree/test.c return radix_tree_tag_clear(root, index, tag); root 23 tools/testing/radix-tree/test.c int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag) root 25 tools/testing/radix-tree/test.c return radix_tree_tag_get(root, index, tag); root 37 tools/testing/radix-tree/test.c int item_insert(struct radix_tree_root *root, unsigned long index) root 40 tools/testing/radix-tree/test.c int err = radix_tree_insert(root, item->index, item); root 61 tools/testing/radix-tree/test.c int item_delete(struct radix_tree_root *root, unsigned long index) root 63 tools/testing/radix-tree/test.c struct item *item = radix_tree_delete(root, index); root 91 tools/testing/radix-tree/test.c void item_check_present(struct radix_tree_root *root, unsigned long index) root 95 tools/testing/radix-tree/test.c item = radix_tree_lookup(root, index); root 100 tools/testing/radix-tree/test.c struct item *item_lookup(struct radix_tree_root *root, unsigned long index) root 102 tools/testing/radix-tree/test.c return radix_tree_lookup(root, index); root 105 tools/testing/radix-tree/test.c void item_check_absent(struct radix_tree_root *root, unsigned long index) root 109 tools/testing/radix-tree/test.c item = radix_tree_lookup(root, index); root 116 tools/testing/radix-tree/test.c void item_gang_check_present(struct radix_tree_root *root, root 131 tools/testing/radix-tree/test.c nfound = radix_tree_gang_lookup(root, (void **)items, root 143 tools/testing/radix-tree/test.c void item_full_scan(struct radix_tree_root *root, unsigned long start, root 154 tools/testing/radix-tree/test.c while ((nfound = radix_tree_gang_lookup(root, (void **)items, into, root 167 tools/testing/radix-tree/test.c nfound = radix_tree_gang_lookup(root, (void **)items, root 247 tools/testing/radix-tree/test.c void verify_tag_consistency(struct radix_tree_root *root, unsigned int tag) root 249 tools/testing/radix-tree/test.c struct radix_tree_node *node = root->xa_head; root 252 tools/testing/radix-tree/test.c verify_node(node, tag, !!root_tag_get(root, tag)); root 270 tools/testing/radix-tree/test.c void tree_verify_min_height(struct radix_tree_root *root, int maxindex) root 273 tools/testing/radix-tree/test.c struct radix_tree_node *node = root->xa_head; root 14 tools/testing/radix-tree/test.h int item_insert(struct radix_tree_root *root, unsigned long index); root 17 tools/testing/radix-tree/test.h int item_delete(struct radix_tree_root *root, unsigned long index); root 19 tools/testing/radix-tree/test.h struct item *item_lookup(struct radix_tree_root *root, unsigned long index); root 21 tools/testing/radix-tree/test.h void item_check_present(struct radix_tree_root *root, unsigned long index); root 22 tools/testing/radix-tree/test.h void item_check_absent(struct radix_tree_root *root, unsigned long index); root 23 tools/testing/radix-tree/test.h void item_gang_check_present(struct radix_tree_root *root, root 26 tools/testing/radix-tree/test.h void item_full_scan(struct radix_tree_root *root, unsigned long start, root 28 tools/testing/radix-tree/test.h void item_kill_tree(struct radix_tree_root *root); root 43 tools/testing/radix-tree/test.h item_tag_set(struct radix_tree_root *root, unsigned long index, int tag); root 45 tools/testing/radix-tree/test.h item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag); root 46 tools/testing/radix-tree/test.h int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag); root 47 tools/testing/radix-tree/test.h void tree_verify_min_height(struct radix_tree_root *root, int maxindex); root 48 tools/testing/radix-tree/test.h void verify_tag_consistency(struct radix_tree_root *root, unsigned int tag); root 54 tools/testing/radix-tree/test.h void radix_tree_dump(struct radix_tree_root *root); root 55 tools/testing/radix-tree/test.h int root_tag_get(struct radix_tree_root *root, unsigned int tag); root 60 tools/testing/selftests/bpf/progs/btf_dump_test_case_ordering.c int f(struct root_struct *root) root 57 tools/testing/selftests/cgroup/cgroup_util.c char *cg_name(const char *root, const char *name) root 59 tools/testing/selftests/cgroup/cgroup_util.c size_t len = strlen(root) + strlen(name) + 2; root 62 tools/testing/selftests/cgroup/cgroup_util.c snprintf(ret, len, "%s/%s", root, name); root 67 tools/testing/selftests/cgroup/cgroup_util.c char *cg_name_indexed(const char *root, const char *name, int index) root 69 tools/testing/selftests/cgroup/cgroup_util.c size_t len = strlen(root) + strlen(name) + 10; root 72 tools/testing/selftests/cgroup/cgroup_util.c snprintf(ret, len, "%s/%s_%d", root, name, index); root 174 tools/testing/selftests/cgroup/cgroup_util.c int cg_find_unified_root(char *root, size_t len) root 195 tools/testing/selftests/cgroup/cgroup_util.c strncpy(root, mount, len); root 18 tools/testing/selftests/cgroup/cgroup_util.h extern int cg_find_unified_root(char *root, size_t len); root 19 tools/testing/selftests/cgroup/cgroup_util.h extern char *cg_name(const char *root, const char *name); root 20 tools/testing/selftests/cgroup/cgroup_util.h extern char *cg_name_indexed(const char *root, const char *name, int index); root 22 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_populated(const char *root) root 28 tools/testing/selftests/cgroup/test_core.c cg_test_a = cg_name(root, "cg_test_a"); root 29 tools/testing/selftests/cgroup/test_core.c cg_test_b = cg_name(root, "cg_test_a/cg_test_b"); root 30 tools/testing/selftests/cgroup/test_core.c cg_test_c = cg_name(root, "cg_test_a/cg_test_b/cg_test_c"); root 31 tools/testing/selftests/cgroup/test_core.c cg_test_d = cg_name(root, "cg_test_a/cg_test_b/cg_test_d"); root 63 tools/testing/selftests/cgroup/test_core.c if (cg_enter_current(root)) root 104 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_invalid_domain(const char *root) root 109 tools/testing/selftests/cgroup/test_core.c grandparent = cg_name(root, "cg_test_grandparent"); root 110 tools/testing/selftests/cgroup/test_core.c parent = cg_name(root, "cg_test_grandparent/cg_test_parent"); root 111 tools/testing/selftests/cgroup/test_core.c child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); root 139 tools/testing/selftests/cgroup/test_core.c cg_enter_current(root); root 156 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_parent_becomes_threaded(const char *root) root 161 tools/testing/selftests/cgroup/test_core.c parent = cg_name(root, "cg_test_parent"); root 162 tools/testing/selftests/cgroup/test_core.c child = cg_name(root, "cg_test_parent/cg_test_child"); root 195 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_no_internal_process_constraint_on_threads(const char *root) root 200 tools/testing/selftests/cgroup/test_core.c if (cg_read_strstr(root, "cgroup.controllers", "cpu") || root 201 tools/testing/selftests/cgroup/test_core.c cg_write(root, "cgroup.subtree_control", "+cpu")) { root 206 tools/testing/selftests/cgroup/test_core.c parent = cg_name(root, "cg_test_parent"); root 207 tools/testing/selftests/cgroup/test_core.c child = cg_name(root, "cg_test_parent/cg_test_child"); root 232 tools/testing/selftests/cgroup/test_core.c cg_enter_current(root); root 233 tools/testing/selftests/cgroup/test_core.c cg_enter_current(root); root 247 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_top_down_constraint_enable(const char *root) root 252 tools/testing/selftests/cgroup/test_core.c parent = cg_name(root, "cg_test_parent"); root 253 tools/testing/selftests/cgroup/test_core.c child = cg_name(root, "cg_test_parent/cg_test_child"); root 282 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_top_down_constraint_disable(const char *root) root 287 tools/testing/selftests/cgroup/test_core.c parent = cg_name(root, "cg_test_parent"); root 288 tools/testing/selftests/cgroup/test_core.c child = cg_name(root, "cg_test_parent/cg_test_child"); root 323 tools/testing/selftests/cgroup/test_core.c static int test_cgcore_internal_process_constraint(const char *root) root 328 tools/testing/selftests/cgroup/test_core.c parent = cg_name(root, "cg_test_parent"); root 329 tools/testing/selftests/cgroup/test_core.c child = cg_name(root, "cg_test_parent/cg_test_child"); root 359 tools/testing/selftests/cgroup/test_core.c int (*fn)(const char *root); root 374 tools/testing/selftests/cgroup/test_core.c char root[PATH_MAX]; root 377 tools/testing/selftests/cgroup/test_core.c if (cg_find_unified_root(root, sizeof(root))) root 380 tools/testing/selftests/cgroup/test_core.c if (cg_read_strstr(root, "cgroup.subtree_control", "memory")) root 381 tools/testing/selftests/cgroup/test_core.c if (cg_write(root, "cgroup.subtree_control", "+memory")) root 385 tools/testing/selftests/cgroup/test_core.c switch (tests[i].fn(root)) { root 193 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_simple(const char *root) root 199 tools/testing/selftests/cgroup/test_freezer.c cgroup = cg_name(root, "cg_test_simple"); root 245 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_tree(const char *root) root 251 tools/testing/selftests/cgroup/test_freezer.c cgroup[0] = cg_name(root, "cg_test_tree_A"); root 417 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_forkbomb(const char *root) root 422 tools/testing/selftests/cgroup/test_freezer.c cgroup = cg_name(root, "cg_forkbomb_test"); root 456 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_mkdir(const char *root) root 462 tools/testing/selftests/cgroup/test_freezer.c parent = cg_name(root, "cg_test_mkdir_A"); root 510 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_rmdir(const char *root) root 515 tools/testing/selftests/cgroup/test_freezer.c parent = cg_name(root, "cg_test_rmdir_A"); root 565 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_migrate(const char *root) root 571 tools/testing/selftests/cgroup/test_freezer.c cgroup[0] = cg_name(root, "cg_test_migrate_A"); root 575 tools/testing/selftests/cgroup/test_freezer.c cgroup[1] = cg_name(root, "cg_test_migrate_B"); root 640 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_ptrace(const char *root) root 647 tools/testing/selftests/cgroup/test_freezer.c cgroup = cg_name(root, "cg_test_ptrace"); root 722 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_stopped(const char *root) root 727 tools/testing/selftests/cgroup/test_freezer.c cgroup = cg_name(root, "cg_test_stopped"); root 766 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_ptraced(const char *root) root 772 tools/testing/selftests/cgroup/test_freezer.c cgroup = cg_name(root, "cg_test_ptraced"); root 835 tools/testing/selftests/cgroup/test_freezer.c static int test_cgfreezer_vfork(const char *root) root 840 tools/testing/selftests/cgroup/test_freezer.c cgroup = cg_name(root, "cg_test_vfork"); root 866 tools/testing/selftests/cgroup/test_freezer.c int (*fn)(const char *root); root 884 tools/testing/selftests/cgroup/test_freezer.c char root[PATH_MAX]; root 887 tools/testing/selftests/cgroup/test_freezer.c if (cg_find_unified_root(root, sizeof(root))) root 890 tools/testing/selftests/cgroup/test_freezer.c switch (tests[i].fn(root)) { root 27 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_subtree_control(const char *root) root 34 tools/testing/selftests/cgroup/test_memcontrol.c parent = cg_name(root, "memcg_test_0"); root 35 tools/testing/selftests/cgroup/test_memcontrol.c child = cg_name(root, "memcg_test_0/memcg_test_1"); root 52 tools/testing/selftests/cgroup/test_memcontrol.c parent2 = cg_name(root, "memcg_test_1"); root 53 tools/testing/selftests/cgroup/test_memcontrol.c child2 = cg_name(root, "memcg_test_1/memcg_test_1"); root 157 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_current(const char *root) root 163 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test"); root 264 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_min(const char *root) root 277 tools/testing/selftests/cgroup/test_memcontrol.c parent[0] = cg_name(root, "memcg_test_0"); root 420 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_low(const char *root) root 434 tools/testing/selftests/cgroup/test_memcontrol.c parent[0] = cg_name(root, "memcg_test_0"); root 587 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_high(const char *root) root 593 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test"); root 636 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_max(const char *root) root 642 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test"); root 713 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_swap_max(const char *root) root 722 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test"); root 777 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_oom_events(const char *root) root 782 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test"); root 937 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_sock(const char *root) root 943 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test"); root 1007 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_oom_group_leaf_events(const char *root) root 1012 tools/testing/selftests/cgroup/test_memcontrol.c parent = cg_name(root, "memcg_test_0"); root 1013 tools/testing/selftests/cgroup/test_memcontrol.c child = cg_name(root, "memcg_test_0/memcg_test_1"); root 1069 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_oom_group_parent_events(const char *root) root 1074 tools/testing/selftests/cgroup/test_memcontrol.c parent = cg_name(root, "memcg_test_0"); root 1075 tools/testing/selftests/cgroup/test_memcontrol.c child = cg_name(root, "memcg_test_0/memcg_test_1"); root 1125 tools/testing/selftests/cgroup/test_memcontrol.c static int test_memcg_oom_group_score_events(const char *root) root 1131 tools/testing/selftests/cgroup/test_memcontrol.c memcg = cg_name(root, "memcg_test_0"); root 1175 tools/testing/selftests/cgroup/test_memcontrol.c int (*fn)(const char *root); root 1195 tools/testing/selftests/cgroup/test_memcontrol.c char root[PATH_MAX]; root 1198 tools/testing/selftests/cgroup/test_memcontrol.c if (cg_find_unified_root(root, sizeof(root))) root 1205 tools/testing/selftests/cgroup/test_memcontrol.c if (cg_read_strstr(root, "cgroup.controllers", "memory")) root 1208 tools/testing/selftests/cgroup/test_memcontrol.c if (cg_read_strstr(root, "cgroup.subtree_control", "memory")) root 1209 tools/testing/selftests/cgroup/test_memcontrol.c if (cg_write(root, "cgroup.subtree_control", "+memory")) root 1213 tools/testing/selftests/cgroup/test_memcontrol.c switch (tests[i].fn(root)) { root 183 tools/testing/selftests/kvm/lib/sparsebit.c struct node *root; root 209 tools/testing/selftests/kvm/lib/sparsebit.c for (nodep = s->root; nodep && nodep->left; nodep = nodep->left) root 278 tools/testing/selftests/kvm/lib/sparsebit.c struct node *root; root 281 tools/testing/selftests/kvm/lib/sparsebit.c root = calloc(1, sizeof(*root)); root 282 tools/testing/selftests/kvm/lib/sparsebit.c if (!root) { root 287 tools/testing/selftests/kvm/lib/sparsebit.c root->idx = subtree->idx; root 288 tools/testing/selftests/kvm/lib/sparsebit.c root->mask = subtree->mask; root 289 tools/testing/selftests/kvm/lib/sparsebit.c root->num_after = subtree->num_after; root 293 tools/testing/selftests/kvm/lib/sparsebit.c root->left = node_copy_subtree(subtree->left); root 294 tools/testing/selftests/kvm/lib/sparsebit.c root->left->parent = root; root 298 tools/testing/selftests/kvm/lib/sparsebit.c root->right = node_copy_subtree(subtree->right); root 299 tools/testing/selftests/kvm/lib/sparsebit.c root->right->parent = root; root 302 tools/testing/selftests/kvm/lib/sparsebit.c return root; root 315 tools/testing/selftests/kvm/lib/sparsebit.c for (nodep = s->root; nodep; root 347 tools/testing/selftests/kvm/lib/sparsebit.c if (!s->root) { root 348 tools/testing/selftests/kvm/lib/sparsebit.c s->root = nodep; root 356 tools/testing/selftests/kvm/lib/sparsebit.c parentp = s->root; root 403 tools/testing/selftests/kvm/lib/sparsebit.c return s->root && s->num_set == 0; root 434 tools/testing/selftests/kvm/lib/sparsebit.c s->root = nodep->left; root 456 tools/testing/selftests/kvm/lib/sparsebit.c s->root = nodep->right; root 476 tools/testing/selftests/kvm/lib/sparsebit.c s->root = NULL; root 784 tools/testing/selftests/kvm/lib/sparsebit.c for (nodep = s->root; nodep; root 929 tools/testing/selftests/kvm/lib/sparsebit.c fprintf(stream, "%*sroot: %p\n", indent, "", s->root); root 932 tools/testing/selftests/kvm/lib/sparsebit.c if (s->root) root 933 tools/testing/selftests/kvm/lib/sparsebit.c dump_nodes(stream, s->root, indent); root 978 tools/testing/selftests/kvm/lib/sparsebit.c if (s->root) { root 979 tools/testing/selftests/kvm/lib/sparsebit.c d->root = node_copy_subtree(s->root); root 1057 tools/testing/selftests/kvm/lib/sparsebit.c if (!s->root) root 1065 tools/testing/selftests/kvm/lib/sparsebit.c assert(s->root->mask != 0); root 1067 tools/testing/selftests/kvm/lib/sparsebit.c (s->root->num_after == ((sparsebit_num_t) 0) - MASK_BITS && root 1068 tools/testing/selftests/kvm/lib/sparsebit.c s->root->mask == ~(mask_t) 0)); root 1180 tools/testing/selftests/kvm/lib/sparsebit.c for (nodep = s->root; nodep;) { root 1794 tools/testing/selftests/kvm/lib/sparsebit.c if (s->root != nodep) { root 1797 tools/testing/selftests/kvm/lib/sparsebit.c s->root, nodep);