btrfs-progs: delete state_private code
We used to store random private things into extent_states, but we haven't done this for a while and there are no users of this code, simply delete it. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
20d88c17e7
commit
83cc5a5489
|
@ -592,48 +592,6 @@ int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end,
|
|||
return bitset;
|
||||
}
|
||||
|
||||
int set_state_private(struct extent_io_tree *tree, u64 start, u64 private)
|
||||
{
|
||||
struct cache_extent *node;
|
||||
struct extent_state *state;
|
||||
int ret = 0;
|
||||
|
||||
node = search_cache_extent(&tree->state, start);
|
||||
if (!node) {
|
||||
ret = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
state = container_of(node, struct extent_state, cache_node);
|
||||
if (state->start != start) {
|
||||
ret = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
state->xprivate = private;
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int get_state_private(struct extent_io_tree *tree, u64 start, u64 *private)
|
||||
{
|
||||
struct cache_extent *node;
|
||||
struct extent_state *state;
|
||||
int ret = 0;
|
||||
|
||||
node = search_cache_extent(&tree->state, start);
|
||||
if (!node) {
|
||||
ret = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
state = container_of(node, struct extent_state, cache_node);
|
||||
if (state->start != start) {
|
||||
ret = -ENOENT;
|
||||
goto out;
|
||||
}
|
||||
*private = state->xprivate;
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static struct extent_buffer *__alloc_extent_buffer(struct btrfs_fs_info *info,
|
||||
u64 bytenr, u32 blocksize)
|
||||
{
|
||||
|
|
|
@ -127,8 +127,6 @@ static inline int extent_buffer_uptodate(struct extent_buffer *eb)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int set_state_private(struct extent_io_tree *tree, u64 start, u64 xprivate);
|
||||
int get_state_private(struct extent_io_tree *tree, u64 start, u64 *xprivate);
|
||||
struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info,
|
||||
u64 bytenr, u32 blocksize);
|
||||
struct extent_buffer *find_first_extent_buffer(struct btrfs_fs_info *fs_info,
|
||||
|
|
Loading…
Reference in New Issue