root-tree.c (aef8755711a28bb0ecde7780ae6613fcb62cf6f7) root-tree.c (1a40e23b95da45051ee4d74374c58ae87a14051c)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

205 dead_root =
206 btrfs_read_fs_root_no_radix(root->fs_info->tree_root,
207 &found_key);
208 if (IS_ERR(dead_root)) {
209 ret = PTR_ERR(dead_root);
210 goto err;
211 }
212
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

205 dead_root =
206 btrfs_read_fs_root_no_radix(root->fs_info->tree_root,
207 &found_key);
208 if (IS_ERR(dead_root)) {
209 ret = PTR_ERR(dead_root);
210 goto err;
211 }
212
213 ret = btrfs_add_dead_root(dead_root, latest);
213 if (objectid == BTRFS_TREE_RELOC_OBJECTID)
214 ret = btrfs_add_dead_reloc_root(dead_root);
215 else
216 ret = btrfs_add_dead_root(dead_root, latest);
214 if (ret)
215 goto err;
216 goto again;
217next:
218 slot++;
219 path->slots[0]++;
220 }
221 ret = 0;

--- 36 unchanged lines hidden ---
217 if (ret)
218 goto err;
219 goto again;
220next:
221 slot++;
222 path->slots[0]++;
223 }
224 ret = 0;

--- 36 unchanged lines hidden ---