Searched refs:delayed_root (Results 1 – 4 of 4) sorted by relevance
207 struct btrfs_delayed_root *delayed_root) in btrfs_first_delayed_node() argument212 spin_lock(&delayed_root->lock); in btrfs_first_delayed_node()213 if (list_empty(&delayed_root->node_list)) in btrfs_first_delayed_node()216 p = delayed_root->node_list.next; in btrfs_first_delayed_node()220 spin_unlock(&delayed_root->lock); in btrfs_first_delayed_node()228 struct btrfs_delayed_root *delayed_root; in btrfs_next_delayed_node() local232 delayed_root = node->root->fs_info->delayed_root; in btrfs_next_delayed_node()233 spin_lock(&delayed_root->lock); in btrfs_next_delayed_node()236 if (list_empty(&delayed_root->node_list)) in btrfs_next_delayed_node()238 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()
1504 kfree(fs_info->delayed_root); in btrfs_free_fs_info()2866 fs_info->delayed_root = kmalloc(sizeof(struct btrfs_delayed_root), in init_mount_fs_info()2868 if (!fs_info->delayed_root) in init_mount_fs_info()2870 btrfs_init_delayed_root(fs_info->delayed_root); in init_mount_fs_info()
912 struct btrfs_delayed_root *delayed_root; member