Searched refs:delayed_root (Results 1 – 4 of 4) sorted by relevance
206 struct btrfs_delayed_root *delayed_root) in btrfs_first_delayed_node() argument211 spin_lock(&delayed_root->lock); in btrfs_first_delayed_node()212 if (list_empty(&delayed_root->node_list)) in btrfs_first_delayed_node()215 p = delayed_root->node_list.next; in btrfs_first_delayed_node()219 spin_unlock(&delayed_root->lock); in btrfs_first_delayed_node()227 struct btrfs_delayed_root *delayed_root; in btrfs_next_delayed_node() local231 delayed_root = node->root->fs_info->delayed_root; in btrfs_next_delayed_node()232 spin_lock(&delayed_root->lock); in btrfs_next_delayed_node()235 if (list_empty(&delayed_root->node_list)) in btrfs_next_delayed_node()237 p = delayed_root->node_list.next; in btrfs_next_delayed_node()[all …]
77 struct btrfs_delayed_root *delayed_root) in btrfs_init_delayed_root() argument79 atomic_set(&delayed_root->items, 0); in btrfs_init_delayed_root()80 atomic_set(&delayed_root->items_seq, 0); in btrfs_init_delayed_root()81 delayed_root->nodes = 0; in btrfs_init_delayed_root()82 spin_lock_init(&delayed_root->lock); in btrfs_init_delayed_root()83 init_waitqueue_head(&delayed_root->wait); in btrfs_init_delayed_root()84 INIT_LIST_HEAD(&delayed_root->node_list); in btrfs_init_delayed_root()85 INIT_LIST_HEAD(&delayed_root->prepare_list); in btrfs_init_delayed_root()
1570 kfree(fs_info->delayed_root); in btrfs_free_fs_info()2998 fs_info->delayed_root = kmalloc(sizeof(struct btrfs_delayed_root), in init_mount_fs_info()3000 if (!fs_info->delayed_root) in init_mount_fs_info()3002 btrfs_init_delayed_root(fs_info->delayed_root); in init_mount_fs_info()
965 struct btrfs_delayed_root *delayed_root; member