relocation.c (c258d6e36442eb5d3363f6dbc0e6f2c162bfb66d) | relocation.c (43eb5f2975848743e5b14c5bef20f40d404a7a04) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2009 Oracle. All rights reserved. 4 */ 5 6#include <linux/sched.h> 7#include <linux/pagemap.h> 8#include <linux/writeback.h> --- 4220 unchanged lines hidden (view full) --- 4229 rc = kzalloc(sizeof(*rc), GFP_NOFS); 4230 if (!rc) 4231 return NULL; 4232 4233 INIT_LIST_HEAD(&rc->reloc_roots); 4234 INIT_LIST_HEAD(&rc->dirty_subvol_roots); 4235 backref_cache_init(&rc->backref_cache); 4236 mapping_tree_init(&rc->reloc_root_tree); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2009 Oracle. All rights reserved. 4 */ 5 6#include <linux/sched.h> 7#include <linux/pagemap.h> 8#include <linux/writeback.h> --- 4220 unchanged lines hidden (view full) --- 4229 rc = kzalloc(sizeof(*rc), GFP_NOFS); 4230 if (!rc) 4231 return NULL; 4232 4233 INIT_LIST_HEAD(&rc->reloc_roots); 4234 INIT_LIST_HEAD(&rc->dirty_subvol_roots); 4235 backref_cache_init(&rc->backref_cache); 4236 mapping_tree_init(&rc->reloc_root_tree); |
4237 extent_io_tree_init(fs_info, &rc->processed_blocks, NULL); | 4237 extent_io_tree_init(fs_info, &rc->processed_blocks, 4238 IO_TREE_RELOC_BLOCKS, NULL); |
4238 return rc; 4239} 4240 4241/* 4242 * Print the block group being relocated 4243 */ 4244static void describe_relocation(struct btrfs_fs_info *fs_info, 4245 struct btrfs_block_group_cache *block_group) --- 491 unchanged lines hidden --- | 4239 return rc; 4240} 4241 4242/* 4243 * Print the block group being relocated 4244 */ 4245static void describe_relocation(struct btrfs_fs_info *fs_info, 4246 struct btrfs_block_group_cache *block_group) --- 491 unchanged lines hidden --- |