Lines Matching refs:extent_map
14 sizeof(struct extent_map), 0, in extent_map_init()
48 struct extent_map *alloc_extent_map(void) in alloc_extent_map()
50 struct extent_map *em; in alloc_extent_map()
70 void free_extent_map(struct extent_map *em) in free_extent_map()
92 static int tree_insert(struct rb_root *root, struct extent_map *em) in tree_insert()
96 struct extent_map *entry = NULL; in tree_insert()
102 entry = rb_entry(parent, struct extent_map, rb_node); in tree_insert()
115 entry = rb_entry(parent, struct extent_map, rb_node); in tree_insert()
122 entry = rb_entry(parent, struct extent_map, rb_node); in tree_insert()
125 entry = rb_entry(parent, struct extent_map, rb_node); in tree_insert()
147 struct extent_map *entry; in __tree_search()
148 struct extent_map *prev_entry = NULL; in __tree_search()
151 entry = rb_entry(n, struct extent_map, rb_node); in __tree_search()
167 prev_entry = rb_entry(prev, struct extent_map, rb_node); in __tree_search()
174 prev_entry = rb_entry(prev, struct extent_map, rb_node); in __tree_search()
177 prev_entry = rb_entry(prev, struct extent_map, rb_node); in __tree_search()
185 static int mergable_maps(struct extent_map *prev, struct extent_map *next) in mergable_maps()
225 static void try_merge_map(struct extent_map_tree *tree, struct extent_map *em) in try_merge_map()
227 struct extent_map *merge = NULL; in try_merge_map()
244 merge = rb_entry(rb, struct extent_map, rb_node); in try_merge_map()
263 merge = rb_entry(rb, struct extent_map, rb_node); in try_merge_map()
290 struct extent_map *em; in unpin_extent_cache()
325 void clear_em_logging(struct extent_map_tree *tree, struct extent_map *em) in clear_em_logging()
333 struct extent_map *em, in setup_extent_mapping()
357 struct extent_map *em, int modified) in add_extent_mapping()
370 static struct extent_map *
374 struct extent_map *em; in __lookup_extent_mapping()
390 em = rb_entry(rb_node, struct extent_map, rb_node); in __lookup_extent_mapping()
410 struct extent_map *lookup_extent_mapping(struct extent_map_tree *tree, in lookup_extent_mapping()
427 struct extent_map *search_extent_mapping(struct extent_map_tree *tree, in search_extent_mapping()
441 int remove_extent_mapping(struct extent_map_tree *tree, struct extent_map *em) in remove_extent_mapping()
454 struct extent_map *cur, in replace_extent_mapping()
455 struct extent_map *new, in replace_extent_mapping()