extent_io.c (95d002e0a34cb0f238abb39987f9980f325d8332) | extent_io.c (c258d6e36442eb5d3363f6dbc0e6f2c162bfb66d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/bitops.h> 4#include <linux/slab.h> 5#include <linux/bio.h> 6#include <linux/mm.h> 7#include <linux/pagemap.h> 8#include <linux/page-flags.h> --- 218 unchanged lines hidden (view full) --- 227 * destroy caches. 228 */ 229 rcu_barrier(); 230 kmem_cache_destroy(extent_state_cache); 231 kmem_cache_destroy(extent_buffer_cache); 232 bioset_exit(&btrfs_bioset); 233} 234 | 1// SPDX-License-Identifier: GPL-2.0 2 3#include <linux/bitops.h> 4#include <linux/slab.h> 5#include <linux/bio.h> 6#include <linux/mm.h> 7#include <linux/pagemap.h> 8#include <linux/page-flags.h> --- 218 unchanged lines hidden (view full) --- 227 * destroy caches. 228 */ 229 rcu_barrier(); 230 kmem_cache_destroy(extent_state_cache); 231 kmem_cache_destroy(extent_buffer_cache); 232 bioset_exit(&btrfs_bioset); 233} 234 |
235void extent_io_tree_init(struct extent_io_tree *tree, 236 void *private_data) | 235void extent_io_tree_init(struct btrfs_fs_info *fs_info, 236 struct extent_io_tree *tree, void *private_data) |
237{ | 237{ |
238 tree->fs_info = fs_info; |
|
238 tree->state = RB_ROOT; 239 tree->ops = NULL; 240 tree->dirty_bytes = 0; 241 spin_lock_init(&tree->lock); 242 tree->private_data = private_data; 243} 244 245static struct extent_state *alloc_extent_state(gfp_t mask) --- 5622 unchanged lines hidden --- | 239 tree->state = RB_ROOT; 240 tree->ops = NULL; 241 tree->dirty_bytes = 0; 242 spin_lock_init(&tree->lock); 243 tree->private_data = private_data; 244} 245 246static struct extent_state *alloc_extent_state(gfp_t mask) --- 5622 unchanged lines hidden --- |