extent_io.c (c258d6e36442eb5d3363f6dbc0e6f2c162bfb66d) | extent_io.c (43eb5f2975848743e5b14c5bef20f40d404a7a04) |
---|---|
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> --- 219 unchanged lines hidden (view full) --- 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 btrfs_fs_info *fs_info, | 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> --- 219 unchanged lines hidden (view full) --- 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 btrfs_fs_info *fs_info, |
236 struct extent_io_tree *tree, void *private_data) | 236 struct extent_io_tree *tree, unsigned int owner, 237 void *private_data) |
237{ 238 tree->fs_info = fs_info; 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; | 238{ 239 tree->fs_info = fs_info; 240 tree->state = RB_ROOT; 241 tree->ops = NULL; 242 tree->dirty_bytes = 0; 243 spin_lock_init(&tree->lock); 244 tree->private_data = private_data; |
245 tree->owner = owner; |
|
244} 245 246static struct extent_state *alloc_extent_state(gfp_t mask) 247{ 248 struct extent_state *state; 249 250 /* 251 * The given mask might be not appropriate for the slab allocator, --- 5617 unchanged lines hidden --- | 246} 247 248static struct extent_state *alloc_extent_state(gfp_t mask) 249{ 250 struct extent_state *state; 251 252 /* 253 * The given mask might be not appropriate for the slab allocator, --- 5617 unchanged lines hidden --- |