Lines Matching refs:system_blks

55 static void release_system_zone(struct ext4_system_blocks *system_blks)  in release_system_zone()  argument
60 &system_blks->root, node) in release_system_zone()
69 static int add_system_zone(struct ext4_system_blocks *system_blks, in add_system_zone() argument
74 struct rb_node **n = &system_blks->root.rb_node, *node; in add_system_zone()
98 rb_insert_color(new_node, &system_blks->root); in add_system_zone()
107 rb_erase(node, &system_blks->root); in add_system_zone()
118 rb_erase(node, &system_blks->root); in add_system_zone()
129 struct ext4_system_blocks *system_blks; in debug_print_tree() local
134 system_blks = rcu_dereference(sbi->s_system_blks); in debug_print_tree()
135 node = rb_first(&system_blks->root); in debug_print_tree()
148 struct ext4_system_blocks *system_blks, in ext4_protect_reserved_inode() argument
176 err = add_system_zone(system_blks, map.m_pblk, n, ino); in ext4_protect_reserved_inode()
195 struct ext4_system_blocks *system_blks; in ext4_destroy_system_zone() local
197 system_blks = container_of(rcu, struct ext4_system_blocks, rcu); in ext4_destroy_system_zone()
198 release_system_zone(system_blks); in ext4_destroy_system_zone()
199 kfree(system_blks); in ext4_destroy_system_zone()
215 struct ext4_system_blocks *system_blks; in ext4_setup_system_zone() local
221 system_blks = kzalloc(sizeof(*system_blks), GFP_KERNEL); in ext4_setup_system_zone()
222 if (!system_blks) in ext4_setup_system_zone()
229 ret = add_system_zone(system_blks, in ext4_setup_system_zone()
236 ret = add_system_zone(system_blks, in ext4_setup_system_zone()
240 ret = add_system_zone(system_blks, in ext4_setup_system_zone()
244 ret = add_system_zone(system_blks, in ext4_setup_system_zone()
251 ret = ext4_protect_reserved_inode(sb, system_blks, in ext4_setup_system_zone()
262 rcu_assign_pointer(sbi->s_system_blks, system_blks); in ext4_setup_system_zone()
268 release_system_zone(system_blks); in ext4_setup_system_zone()
269 kfree(system_blks); in ext4_setup_system_zone()
285 struct ext4_system_blocks *system_blks; in ext4_release_system_zone() local
287 system_blks = rcu_dereference_protected(EXT4_SB(sb)->s_system_blks, in ext4_release_system_zone()
291 if (system_blks) in ext4_release_system_zone()
292 call_rcu(&system_blks->rcu, ext4_destroy_system_zone); in ext4_release_system_zone()
299 struct ext4_system_blocks *system_blks; in ext4_sb_block_valid() local
315 system_blks = rcu_dereference(sbi->s_system_blks); in ext4_sb_block_valid()
316 if (system_blks == NULL) in ext4_sb_block_valid()
319 n = system_blks->root.rb_node; in ext4_sb_block_valid()