Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 1706) sorted by relevance

12345678910>>...69

/kernel/linux/linux-5.10/fs/btrfs/
Dinode-map.c16 static void fail_caching_thread(struct btrfs_root *root) in fail_caching_thread() argument
18 struct btrfs_fs_info *fs_info = root->fs_info; in fail_caching_thread()
23 spin_lock(&root->ino_cache_lock); in fail_caching_thread()
24 root->ino_cache_state = BTRFS_CACHE_ERROR; in fail_caching_thread()
25 spin_unlock(&root->ino_cache_lock); in fail_caching_thread()
26 wake_up(&root->ino_cache_wait); in fail_caching_thread()
31 struct btrfs_root *root = data; in caching_kthread() local
32 struct btrfs_fs_info *fs_info = root->fs_info; in caching_kthread()
33 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in caching_kthread()
46 fail_caching_thread(root); in caching_kthread()
[all …]
Dtree-defrag.c20 struct btrfs_root *root) in btrfs_defrag_leaves() argument
30 if (root->fs_info->extent_root == root) { in btrfs_defrag_leaves()
38 if (!test_bit(BTRFS_ROOT_SHAREABLE, &root->state)) in btrfs_defrag_leaves()
45 level = btrfs_header_level(root->node); in btrfs_defrag_leaves()
50 if (root->defrag_progress.objectid == 0) { in btrfs_defrag_leaves()
54 root_node = btrfs_lock_root_node(root); in btrfs_defrag_leaves()
57 root->defrag_max.objectid = 0; in btrfs_defrag_leaves()
59 btrfs_node_key_to_cpu(root_node, &root->defrag_max, in btrfs_defrag_leaves()
65 memcpy(&key, &root->defrag_progress, sizeof(key)); in btrfs_defrag_leaves()
70 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); in btrfs_defrag_leaves()
[all …]
Ddisk-io.c54 static void btrfs_destroy_ordered_extents(struct btrfs_root *root);
57 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root);
781 struct btrfs_root *root; in btree_csum_one_bio() local
787 root = BTRFS_I(bvec->bv_page->mapping->host)->root; in btree_csum_one_bio()
788 ret = csum_dirty_buffer(root->fs_info, bvec->bv_page); in btree_csum_one_bio()
891 fs_info = BTRFS_I(mapping->host)->root->fs_info; in btree_writepages()
918 btrfs_warn(BTRFS_I(page->mapping->host)->root->fs_info, in btree_invalidatepage()
1022 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root() argument
1026 root->fs_info = fs_info; in __setup_root()
1027 root->node = NULL; in __setup_root()
[all …]
Dtransaction.c157 struct btrfs_root *root, *tmp; in switch_commit_roots() local
161 list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, in switch_commit_roots()
163 list_del_init(&root->dirty_list); in switch_commit_roots()
164 free_extent_buffer(root->commit_root); in switch_commit_roots()
165 root->commit_root = btrfs_root_node(root); in switch_commit_roots()
166 if (is_fstree(root->root_key.objectid)) in switch_commit_roots()
167 btrfs_unpin_free_ino(root); in switch_commit_roots()
168 extent_io_tree_release(&root->dirty_log_pages); in switch_commit_roots()
169 btrfs_qgroup_clean_swapped_blocks(root); in switch_commit_roots()
175 root = list_first_entry(&cur_trans->dropped_roots, in switch_commit_roots()
[all …]
Dbtrfs_inode.h59 struct btrfs_root *root; member
237 return inode->root->fs_info->sectorsize; in btrfs_inode_sectorsize()
246 const struct btrfs_root *root) in btrfs_inode_hash() argument
248 u64 h = objectid ^ (root->root_key.objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
259 unsigned long h = btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root); in btrfs_insert_inode_hash()
285 struct btrfs_root *root = inode->root; in btrfs_is_free_space_inode() local
287 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
307 trace_btrfs_inode_mod_outstanding_extents(inode->root, btrfs_ino(inode), in btrfs_mod_outstanding_extents()
322 inode->last_sub_trans = inode->root->log_transid; in btrfs_set_inode_last_sub_trans()
333 inode->last_sub_trans <= inode->root->last_log_commit) { in btrfs_inode_in_log()
[all …]
Drelocation.c290 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead() argument
298 if (test_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->state)) in reloc_root_is_dead()
311 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root() argument
313 if (reloc_root_is_dead(root)) in have_reloc_root()
315 if (!root->reloc_root) in have_reloc_root()
320 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root() argument
324 if (!test_bit(BTRFS_ROOT_SHAREABLE, &root->state)) in btrfs_should_ignore_reloc_root()
328 if (reloc_root_is_dead(root)) in btrfs_should_ignore_reloc_root()
331 reloc_root = root->reloc_root; in btrfs_should_ignore_reloc_root()
336 root->fs_info->running_transaction->transid) in btrfs_should_ignore_reloc_root()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dpci_root.c146 static void decode_osc_bits(struct acpi_pci_root *root, char *msg, u32 word, in decode_osc_bits() argument
159 dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf); in decode_osc_bits()
162 static void decode_osc_support(struct acpi_pci_root *root, char *msg, u32 word) in decode_osc_support() argument
164 decode_osc_bits(root, msg, word, pci_osc_support_bit, in decode_osc_support()
168 static void decode_osc_control(struct acpi_pci_root *root, char *msg, u32 word) in decode_osc_control() argument
170 decode_osc_bits(root, msg, word, pci_osc_control_bit, in decode_osc_control()
195 static acpi_status acpi_pci_query_osc(struct acpi_pci_root *root, in acpi_pci_query_osc() argument
203 support |= root->osc_support_set; in acpi_pci_query_osc()
209 capbuf[OSC_CONTROL_DWORD] = *control | root->osc_control_set; in acpi_pci_query_osc()
212 capbuf[OSC_CONTROL_DWORD] = root->osc_control_set; in acpi_pci_query_osc()
[all …]
/kernel/linux/linux-5.10/lib/
Dradix-tree.c93 static inline gfp_t root_gfp_mask(const struct radix_tree_root *root) in root_gfp_mask() argument
95 return root->xa_flags & (__GFP_BITS_MASK & ~GFP_ZONEMASK); in root_gfp_mask()
116 static inline void root_tag_set(struct radix_tree_root *root, unsigned tag) in root_tag_set() argument
118 root->xa_flags |= (__force gfp_t)(1 << (tag + ROOT_TAG_SHIFT)); in root_tag_set()
121 static inline void root_tag_clear(struct radix_tree_root *root, unsigned tag) in root_tag_clear() argument
123 root->xa_flags &= (__force gfp_t)~(1 << (tag + ROOT_TAG_SHIFT)); in root_tag_clear()
126 static inline void root_tag_clear_all(struct radix_tree_root *root) in root_tag_clear_all() argument
128 root->xa_flags &= (__force gfp_t)((1 << ROOT_TAG_SHIFT) - 1); in root_tag_clear_all()
131 static inline int root_tag_get(const struct radix_tree_root *root, unsigned tag) in root_tag_get() argument
133 return (__force int)root->xa_flags & (1 << (tag + ROOT_TAG_SHIFT)); in root_tag_get()
[all …]
Drbtree_test.c27 static struct rb_root_cached root = RB_ROOT_CACHED; variable
32 static void insert(struct test_node *node, struct rb_root_cached *root) in insert() argument
34 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert()
46 rb_insert_color(&node->rb, &root->rb_root); in insert()
49 static void insert_cached(struct test_node *node, struct rb_root_cached *root) in insert_cached() argument
51 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert_cached()
66 rb_insert_color_cached(&node->rb, root, leftmost); in insert_cached()
69 static inline void erase(struct test_node *node, struct rb_root_cached *root) in erase() argument
71 rb_erase(&node->rb, &root->rb_root); in erase()
74 static inline void erase_cached(struct test_node *node, struct rb_root_cached *root) in erase_cached() argument
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/acpi/
Dfan_performance_states.rst22 -r--r--r-- 1 root root 4096 Dec 13 20:38 state0
23 -r--r--r-- 1 root root 4096 Dec 13 20:38 state1
24 -r--r--r-- 1 root root 4096 Dec 13 20:38 state10
25 -r--r--r-- 1 root root 4096 Dec 13 20:38 state11
26 -r--r--r-- 1 root root 4096 Dec 13 20:38 state2
27 -r--r--r-- 1 root root 4096 Dec 13 20:38 state3
28 -r--r--r-- 1 root root 4096 Dec 13 20:38 state4
29 -r--r--r-- 1 root root 4096 Dec 13 20:38 state5
30 -r--r--r-- 1 root root 4096 Dec 13 20:38 state6
31 -r--r--r-- 1 root root 4096 Dec 13 20:38 state7
[all …]
/kernel/linux/linux-5.10/tools/include/linux/
Drbtree.h39 #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL) argument
64 struct rb_root *root);
97 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
98 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \
103 static inline void rb_erase_init(struct rb_node *n, struct rb_root *root) in rb_erase_init() argument
105 rb_erase(n, root); in rb_erase_init()
127 #define rb_first_cached(root) (root)->rb_leftmost argument
130 struct rb_root_cached *root, in rb_insert_color_cached() argument
134 root->rb_leftmost = node; in rb_insert_color_cached()
135 rb_insert_color(node, &root->rb_root); in rb_insert_color_cached()
[all …]
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dregression3.c31 RADIX_TREE(root, GFP_KERNEL); in regression3_test()
40 radix_tree_insert(&root, 0, ptr0); in regression3_test()
41 radix_tree_tag_set(&root, 0, 0); in regression3_test()
44 radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { in regression3_test()
47 radix_tree_insert(&root, 1, ptr); in regression3_test()
48 radix_tree_tag_set(&root, 1, 0); in regression3_test()
57 radix_tree_delete(&root, 1); in regression3_test()
60 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test()
63 radix_tree_insert(&root, 1, ptr); in regression3_test()
73 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test()
[all …]
Dtest.h14 int item_insert(struct radix_tree_root *root, unsigned long index);
17 int item_delete(struct radix_tree_root *root, unsigned long index);
19 struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
21 void item_check_present(struct radix_tree_root *root, unsigned long index);
22 void item_check_absent(struct radix_tree_root *root, unsigned long index);
23 void item_gang_check_present(struct radix_tree_root *root,
26 void item_full_scan(struct radix_tree_root *root, unsigned long start,
28 void item_kill_tree(struct radix_tree_root *root);
43 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag);
45 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag);
[all …]
Dtest.c12 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_set() argument
14 return radix_tree_tag_set(root, index, tag); in item_tag_set()
18 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_clear() argument
20 return radix_tree_tag_clear(root, index, tag); in item_tag_clear()
23 int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_get() argument
25 return radix_tree_tag_get(root, index, tag); in item_tag_get()
37 int item_insert(struct radix_tree_root *root, unsigned long index) in item_insert() argument
40 int err = radix_tree_insert(root, item->index, item); in item_insert()
61 int item_delete(struct radix_tree_root *root, unsigned long index) in item_delete() argument
63 struct item *item = radix_tree_delete(root, index); in item_delete()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-rapidio48 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001
49 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004
50 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007
51 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002
52 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003
53 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005
54 lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0
55 -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid
56 drwxr-xr-x 2 root root 0 Feb 11 15:11 power
57 lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dtdp_mmu.c45 static void tdp_mmu_put_root(struct kvm *kvm, struct kvm_mmu_page *root) in tdp_mmu_put_root() argument
47 if (kvm_mmu_put_root(kvm, root)) in tdp_mmu_put_root()
48 kvm_tdp_mmu_free_root(kvm, root); in tdp_mmu_put_root()
52 struct kvm_mmu_page *root) in tdp_mmu_next_root_valid() argument
56 if (list_entry_is_head(root, &kvm->arch.tdp_mmu_roots, link)) in tdp_mmu_next_root_valid()
59 kvm_mmu_get_root(kvm, root); in tdp_mmu_next_root_valid()
65 struct kvm_mmu_page *root) in tdp_mmu_next_root() argument
69 next_root = list_next_entry(root, link); in tdp_mmu_next_root()
70 tdp_mmu_put_root(kvm, root); in tdp_mmu_next_root()
105 static bool zap_gfn_range(struct kvm *kvm, struct kvm_mmu_page *root,
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
Dtest_core.c78 static int test_cgcore_destroy(const char *root) in test_cgcore_destroy() argument
85 cg_test = cg_name(root, "cg_test"); in test_cgcore_destroy()
140 static int test_cgcore_populated(const char *root) in test_cgcore_populated() argument
149 cg_test_a = cg_name(root, "cg_test_a"); in test_cgcore_populated()
150 cg_test_b = cg_name(root, "cg_test_a/cg_test_b"); in test_cgcore_populated()
151 cg_test_c = cg_name(root, "cg_test_a/cg_test_b/cg_test_c"); in test_cgcore_populated()
152 cg_test_d = cg_name(root, "cg_test_a/cg_test_b/cg_test_d"); in test_cgcore_populated()
184 if (cg_enter_current(root)) in test_cgcore_populated()
273 static int test_cgcore_invalid_domain(const char *root) in test_cgcore_invalid_domain() argument
278 grandparent = cg_name(root, "cg_test_grandparent"); in test_cgcore_invalid_domain()
[all …]
/kernel/linux/linux-5.10/include/linux/
Drbtree.h40 #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL) argument
65 struct rb_root *root);
67 struct rb_root *root);
109 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
110 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \
133 #define rb_first_cached(root) (root)->rb_leftmost argument
136 struct rb_root_cached *root, in rb_insert_color_cached() argument
140 root->rb_leftmost = node; in rb_insert_color_cached()
141 rb_insert_color(node, &root->rb_root); in rb_insert_color_cached()
145 struct rb_root_cached *root) in rb_erase_cached() argument
[all …]
Drbtree_latch.h79 struct rb_root *root = &ltr->tree[idx]; in __lt_insert() local
80 struct rb_node **link = &root->rb_node; in __lt_insert()
96 rb_insert_color(node, root); in __lt_insert()
145 struct latch_tree_root *root, in latch_tree_insert() argument
148 raw_write_seqcount_latch(&root->seq); in latch_tree_insert()
149 __lt_insert(node, root, 0, ops->less); in latch_tree_insert()
150 raw_write_seqcount_latch(&root->seq); in latch_tree_insert()
151 __lt_insert(node, root, 1, ops->less); in latch_tree_insert()
172 struct latch_tree_root *root, in latch_tree_erase() argument
175 raw_write_seqcount_latch(&root->seq); in latch_tree_erase()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dqgroup-tests.c14 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() argument
40 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
67 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument
90 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref()
112 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref()
119 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() argument
140 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item()
146 btrfs_del_item(&trans, root, path); in remove_extent_item()
151 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() argument
174 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in remove_extent_ref()
[all …]
/kernel/linux/linux-5.10/fs/vboxsf/
Dvboxsf_wrappers.c75 int vboxsf_map_folder(struct shfl_string *folder_name, u32 *root) in vboxsf_map_folder() argument
84 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
85 parms.root.u.value32 = 0; in vboxsf_map_folder()
98 *root = parms.root.u.value32; in vboxsf_map_folder()
102 int vboxsf_unmap_folder(u32 root) in vboxsf_unmap_folder() argument
106 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_unmap_folder()
107 parms.root.u.value32 = root; in vboxsf_unmap_folder()
130 int vboxsf_create(u32 root, struct shfl_string *parsed_path, in vboxsf_create() argument
135 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_create()
136 parms.root.u.value32 = root; in vboxsf_create()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Dcgroup.h13 TP_PROTO(struct cgroup_root *root),
15 TP_ARGS(root),
18 __field( int, root )
20 __string( name, root->name )
24 __entry->root = root->hierarchy_id;
25 __entry->ss_mask = root->subsys_mask;
26 __assign_str(name, root->name);
30 __entry->root, __entry->ss_mask, __get_str(name))
35 TP_PROTO(struct cgroup_root *root),
37 TP_ARGS(root)
[all …]
/kernel/linux/linux-5.10/Documentation/target/
Dtcm_mod_builder.rst74 drwxr-xr-x 2 root root 4096 2010-10-05 03:23 .
75 drwxr-xr-x 9 root root 4096 2010-10-05 03:22 ..
76 -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild
77 -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig
78 -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order
79 -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h
80 -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c
81 -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o
82 -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd
83 -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c
[all …]
/kernel/linux/linux-5.10/drivers/eisa/
Deisa-bus.c43 struct eisa_root_device *root, in is_forced_dev() argument
49 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
187 static int __init eisa_init_device(struct eisa_root_device *root, in eisa_init_device() argument
195 sig_addr = SLOT_ADDRESS(root, slot) + EISA_VENDOR_ID_OFFSET; in eisa_init_device()
203 edev->state = inb(SLOT_ADDRESS(root, slot) + EISA_CONFIG_OFFSET) in eisa_init_device()
205 edev->base_addr = SLOT_ADDRESS(root, slot); in eisa_init_device()
206 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device()
208 edev->dev.parent = root->dev; in eisa_init_device()
212 dev_set_name(&edev->dev, "%02X:%02X", root->bus_nr, slot); in eisa_init_device()
222 if (is_forced_dev(enable_dev, enable_dev_count, root, edev)) in eisa_init_device()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/nx/
Dnx_debugfs.c35 struct dentry *root; in nx_debugfs_init() local
37 root = debugfs_create_dir(NX_NAME, NULL); in nx_debugfs_init()
38 drv->dfs_root = root; in nx_debugfs_init()
41 root, &drv->stats.aes_ops.counter); in nx_debugfs_init()
43 root, &drv->stats.sha256_ops.counter); in nx_debugfs_init()
45 root, &drv->stats.sha512_ops.counter); in nx_debugfs_init()
47 root, &drv->stats.aes_bytes.counter); in nx_debugfs_init()
49 root, &drv->stats.sha256_bytes.counter); in nx_debugfs_init()
51 root, &drv->stats.sha512_bytes.counter); in nx_debugfs_init()
53 root, &drv->stats.errors.counter); in nx_debugfs_init()
[all …]

12345678910>>...69