disk-io.c (5c8fd99fec9d9265ed8fb732120a2ffd2bbab9b8) disk-io.c (dc9492c14c758639d7b2468d4ed3c77e785c1a35)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#include <linux/fs.h>
7#include <linux/blkdev.h>
8#include <linux/radix-tree.h>

--- 2021 unchanged lines hidden (view full) ---

2030
2031 while (!list_empty(&fs_info->dead_roots)) {
2032 gang[0] = list_entry(fs_info->dead_roots.next,
2033 struct btrfs_root, root_list);
2034 list_del(&gang[0]->root_list);
2035
2036 if (test_bit(BTRFS_ROOT_IN_RADIX, &gang[0]->state))
2037 btrfs_drop_and_free_fs_root(fs_info, gang[0]);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#include <linux/fs.h>
7#include <linux/blkdev.h>
8#include <linux/radix-tree.h>

--- 2021 unchanged lines hidden (view full) ---

2030
2031 while (!list_empty(&fs_info->dead_roots)) {
2032 gang[0] = list_entry(fs_info->dead_roots.next,
2033 struct btrfs_root, root_list);
2034 list_del(&gang[0]->root_list);
2035
2036 if (test_bit(BTRFS_ROOT_IN_RADIX, &gang[0]->state))
2037 btrfs_drop_and_free_fs_root(fs_info, gang[0]);
2038 else
2039 btrfs_put_root(gang[0]);
2038 btrfs_put_root(gang[0]);
2040 }
2041
2042 while (1) {
2043 ret = radix_tree_gang_lookup(&fs_info->fs_roots_radix,
2044 (void **)gang, 0,
2045 ARRAY_SIZE(gang));
2046 if (!ret)
2047 break;

--- 2597 unchanged lines hidden ---
2039 }
2040
2041 while (1) {
2042 ret = radix_tree_gang_lookup(&fs_info->fs_roots_radix,
2043 (void **)gang, 0,
2044 ARRAY_SIZE(gang));
2045 if (!ret)
2046 break;

--- 2597 unchanged lines hidden ---