• Home
  • Raw
  • Download

Lines Matching refs:eb

141 	struct extent_buffer *eb;  in btrfs_root_node()  local
143 eb = root->node; in btrfs_root_node()
144 extent_buffer_get(eb); in btrfs_root_node()
146 return eb; in btrfs_root_node()
155 struct extent_buffer *eb; in btrfs_lock_root_node() local
158 eb = btrfs_root_node(root); in btrfs_lock_root_node()
159 btrfs_tree_lock(eb); in btrfs_lock_root_node()
162 if (eb == root->node) { in btrfs_lock_root_node()
168 btrfs_tree_unlock(eb); in btrfs_lock_root_node()
169 free_extent_buffer(eb); in btrfs_lock_root_node()
171 return eb; in btrfs_lock_root_node()
781 static noinline int generic_bin_search(struct extent_buffer *eb, in generic_bin_search() argument
807 unmap_extent_buffer(eb, map_token, KM_USER0); in generic_bin_search()
811 err = map_private_extent_buffer(eb, offset, in generic_bin_search()
820 read_extent_buffer(eb, &unaligned, in generic_bin_search()
838 unmap_extent_buffer(eb, map_token, KM_USER0); in generic_bin_search()
844 unmap_extent_buffer(eb, map_token, KM_USER0); in generic_bin_search()
852 static int bin_search(struct extent_buffer *eb, struct btrfs_key *key, in bin_search() argument
856 return generic_bin_search(eb, in bin_search()
859 key, btrfs_header_nritems(eb), in bin_search()
862 return generic_bin_search(eb, in bin_search()
865 key, btrfs_header_nritems(eb), in bin_search()
1276 struct extent_buffer *eb; in reada_for_search() local
1291 eb = btrfs_find_tree_block(root, search, blocksize); in reada_for_search()
1292 if (eb) { in reada_for_search()
1293 free_extent_buffer(eb); in reada_for_search()
1339 struct extent_buffer *eb; in reada_for_balance() local
1357 eb = btrfs_find_tree_block(root, block1, blocksize); in reada_for_balance()
1358 if (eb && btrfs_buffer_uptodate(eb, gen)) in reada_for_balance()
1360 free_extent_buffer(eb); in reada_for_balance()
1365 eb = btrfs_find_tree_block(root, block2, blocksize); in reada_for_balance()
1366 if (eb && btrfs_buffer_uptodate(eb, gen)) in reada_for_balance()
1368 free_extent_buffer(eb); in reada_for_balance()
1379 eb = read_tree_block(root, block1, blocksize, 0); in reada_for_balance()
1380 free_extent_buffer(eb); in reada_for_balance()
1383 eb = read_tree_block(root, block2, blocksize, 0); in reada_for_balance()
1384 free_extent_buffer(eb); in reada_for_balance()
1759 struct extent_buffer *eb; in btrfs_merge_path() local
1770 eb = btrfs_lock_root_node(root); in btrfs_merge_path()
1771 ret = btrfs_cow_block(trans, root, eb, NULL, 0, &eb, 0); in btrfs_merge_path()
1774 btrfs_set_lock_blocking(eb); in btrfs_merge_path()
1776 parent = eb; in btrfs_merge_path()
1793 btrfs_node_key_to_cpu(eb, &key, slot); in btrfs_merge_path()
1797 eb = read_tree_block(root, bytenr, blocksize, in btrfs_merge_path()
1799 btrfs_tree_lock(eb); in btrfs_merge_path()
1800 btrfs_set_lock_blocking(eb); in btrfs_merge_path()
1812 btrfs_header_owner(eb) != BTRFS_TREE_RELOC_OBJECTID)) { in btrfs_merge_path()
1815 btrfs_tree_unlock(eb); in btrfs_merge_path()
1816 free_extent_buffer(eb); in btrfs_merge_path()
1822 eb = read_tree_block(root, bytenr, blocksize, in btrfs_merge_path()
1824 btrfs_tree_lock(eb); in btrfs_merge_path()
1825 btrfs_set_lock_blocking(eb); in btrfs_merge_path()
1828 ret = btrfs_cow_block(trans, root, eb, parent, slot, in btrfs_merge_path()
1829 &eb, 0); in btrfs_merge_path()
1835 nodes[level - 1] = eb->start; in btrfs_merge_path()
1845 parent = eb; in btrfs_merge_path()
1867 ret = btrfs_drop_subtree(trans, root, eb, parent); in btrfs_merge_path()
1869 btrfs_tree_unlock(eb); in btrfs_merge_path()
1870 free_extent_buffer(eb); in btrfs_merge_path()
1928 struct extent_buffer *eb; in btrfs_set_item_key_safe() local
1931 eb = path->nodes[0]; in btrfs_set_item_key_safe()
1934 btrfs_item_key(eb, &disk_key, slot - 1); in btrfs_set_item_key_safe()
1938 if (slot < btrfs_header_nritems(eb) - 1) { in btrfs_set_item_key_safe()
1939 btrfs_item_key(eb, &disk_key, slot + 1); in btrfs_set_item_key_safe()
1945 btrfs_set_item_key(eb, &disk_key, slot); in btrfs_set_item_key_safe()
1946 btrfs_mark_buffer_dirty(eb); in btrfs_set_item_key_safe()