extent-tree.c (a213501153fd66e2359e091b1612841305ba6551) extent-tree.c (051e1b9f748ae673b7325d3fc049bb838606cffa)
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,

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

83 if (block_group->cached)
84 return 0;
85
86 path = btrfs_alloc_path();
87 if (!path)
88 return -ENOMEM;
89
90 path->reada = 2;
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,

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

83 if (block_group->cached)
84 return 0;
85
86 path = btrfs_alloc_path();
87 if (!path)
88 return -ENOMEM;
89
90 path->reada = 2;
91 path->skip_locking = 1;
92 first_free = block_group->key.objectid;
93 key.objectid = block_group->key.objectid;
94 key.offset = 0;
95 btrfs_set_key_type(&key, BTRFS_EXTENT_ITEM_KEY);
96 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
97 if (ret < 0)
98 return ret;
99 ret = btrfs_previous_item(root, path, 0, BTRFS_EXTENT_ITEM_KEY);

--- 3182 unchanged lines hidden ---
91 first_free = block_group->key.objectid;
92 key.objectid = block_group->key.objectid;
93 key.offset = 0;
94 btrfs_set_key_type(&key, BTRFS_EXTENT_ITEM_KEY);
95 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
96 if (ret < 0)
97 return ret;
98 ret = btrfs_previous_item(root, path, 0, BTRFS_EXTENT_ITEM_KEY);

--- 3182 unchanged lines hidden ---