Lines Matching refs:gang

2048 	struct btrfs_root *gang[8];  in btrfs_free_fs_roots()  local
2052 gang[0] = list_entry(fs_info->dead_roots.next, in btrfs_free_fs_roots()
2054 list_del(&gang[0]->root_list); in btrfs_free_fs_roots()
2056 if (test_bit(BTRFS_ROOT_IN_RADIX, &gang[0]->state)) { in btrfs_free_fs_roots()
2057 btrfs_drop_and_free_fs_root(fs_info, gang[0]); in btrfs_free_fs_roots()
2059 free_extent_buffer(gang[0]->node); in btrfs_free_fs_roots()
2060 free_extent_buffer(gang[0]->commit_root); in btrfs_free_fs_roots()
2061 btrfs_put_fs_root(gang[0]); in btrfs_free_fs_roots()
2067 (void **)gang, 0, in btrfs_free_fs_roots()
2068 ARRAY_SIZE(gang)); in btrfs_free_fs_roots()
2072 btrfs_drop_and_free_fs_root(fs_info, gang[i]); in btrfs_free_fs_roots()
3909 struct btrfs_root *gang[8]; in btrfs_cleanup_fs_roots() local
3918 (void **)gang, root_objectid, in btrfs_cleanup_fs_roots()
3919 ARRAY_SIZE(gang)); in btrfs_cleanup_fs_roots()
3924 root_objectid = gang[ret - 1]->root_key.objectid + 1; in btrfs_cleanup_fs_roots()
3928 if (btrfs_root_refs(&gang[i]->root_item) == 0) { in btrfs_cleanup_fs_roots()
3929 gang[i] = NULL; in btrfs_cleanup_fs_roots()
3933 gang[i] = btrfs_grab_fs_root(gang[i]); in btrfs_cleanup_fs_roots()
3938 if (!gang[i]) in btrfs_cleanup_fs_roots()
3940 root_objectid = gang[i]->root_key.objectid; in btrfs_cleanup_fs_roots()
3941 err = btrfs_orphan_cleanup(gang[i]); in btrfs_cleanup_fs_roots()
3944 btrfs_put_fs_root(gang[i]); in btrfs_cleanup_fs_roots()
3951 if (gang[i]) in btrfs_cleanup_fs_roots()
3952 btrfs_put_fs_root(gang[i]); in btrfs_cleanup_fs_roots()