Searched refs:nritems (Results 1 – 15 of 15) sorted by relevance
603 int nritems) in __tree_mod_log_free_eb() argument608 for (i = nritems - 1; i >= 0; i--) { in __tree_mod_log_free_eb()611 for (j = nritems - 1; j > i; j--) in __tree_mod_log_free_eb()627 int nritems = 0; in tree_mod_log_insert_root() local635 nritems = btrfs_header_nritems(old_root); in tree_mod_log_insert_root()636 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), in tree_mod_log_insert_root()642 for (i = 0; i < nritems; i++) { in tree_mod_log_insert_root()668 ret = __tree_mod_log_free_eb(fs_info, tm_list, nritems); in tree_mod_log_insert_root()681 for (i = 0; i < nritems; i++) in tree_mod_log_insert_root()829 int nritems = 0; in tree_mod_log_free_eb() local[all …]
52 u32 nritems; in btrfs_defrag_leaves() local56 nritems = btrfs_header_nritems(root_node); in btrfs_defrag_leaves()60 nritems - 1); in btrfs_defrag_leaves()
303 u32 nritems; in btrfs_search_dir_index_item() local315 nritems = btrfs_header_nritems(leaf); in btrfs_search_dir_index_item()318 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item()325 nritems = btrfs_header_nritems(leaf); in btrfs_search_dir_index_item()
2118 int nritems; in find_dir_range() local2155 nritems = btrfs_header_nritems(path->nodes[0]); in find_dir_range()2157 if (path->slots[0] >= nritems) { in find_dir_range()2297 int nritems; in replay_xattr_deletes() local2312 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()2313 for (i = path->slots[0]; i < nritems; i++) { in replay_xattr_deletes()2443 int nritems; in replay_dir_deletes() local2449 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()2450 if (path->slots[0] >= nritems) { in replay_dir_deletes()2510 int nritems; in replay_one_buffer() local[all …]
811 u32 nritems = btrfs_header_nritems(leaf); in check_leaf() local829 if (nritems == 0 && !btrfs_header_flag(leaf, BTRFS_HEADER_FLAG_RELOC)) { in check_leaf()868 nritems); in check_leaf()877 if (nritems == 0) in check_leaf()891 for (slot = 0; slot < nritems; slot++) { in check_leaf()
97 int nritems; in __readahead_hook() local130 nritems = btrfs_header_nritems(eb); in __readahead_hook()132 for (i = 0; i < nritems; i++) { in __readahead_hook()139 if (i + 1 < nritems) in __readahead_hook()
1616 u32 nritems; in replace_file_extents() local1631 nritems = btrfs_header_nritems(leaf); in replace_file_extents()1632 for (i = 0; i < nritems; i++) { in replace_file_extents()1945 u32 nritems; in walk_up_reloc_tree() local1956 nritems = btrfs_header_nritems(eb); in walk_up_reloc_tree()1957 while (path->slots[i] + 1 < nritems) { in walk_up_reloc_tree()1985 u32 nritems; in walk_down_reloc_tree() local1993 nritems = btrfs_header_nritems(eb); in walk_down_reloc_tree()1994 while (path->slots[i] < nritems) { in walk_down_reloc_tree()2000 if (path->slots[i] >= nritems) { in walk_down_reloc_tree()[all …]
740 u32 nritems; in btrfs_csum_file_blocks() local785 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_csum_file_blocks()786 if (!nritems || (path->slots[0] >= nritems - 1)) { in btrfs_csum_file_blocks()
518 int nritems = btrfs_header_nritems(leaf); in process_leaf() local520 for (i = 0; i < nritems; i++) { in process_leaf()
83 int nritems; in find_extent_in_eb() local92 nritems = btrfs_header_nritems(eb); in find_extent_in_eb()93 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
2059 int nritems; in copy_to_sk() local2066 nritems = btrfs_header_nritems(leaf); in copy_to_sk()2069 i = nritems; in copy_to_sk()2074 for (i = slot; i < nritems; i++) { in copy_to_sk()3965 u32 nritems; in btrfs_clone() local4012 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_clone()4014 if (path->slots[0] >= nritems) { in btrfs_clone()4020 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_clone()
389 u32 nritems; in load_extent_tree_free() local428 nritems = btrfs_header_nritems(leaf); in load_extent_tree_free()436 if (path->slots[0] < nritems) { in load_extent_tree_free()462 nritems = btrfs_header_nritems(leaf); in load_extent_tree_free()1140 u32 nritems; in lookup_extent_data_ref() local1169 nritems = btrfs_header_nritems(leaf); in lookup_extent_data_ref()1171 if (path->slots[0] >= nritems) { in lookup_extent_data_ref()1179 nritems = btrfs_header_nritems(leaf); in lookup_extent_data_ref()3190 u32 nritems; in __btrfs_mod_ref() local3205 nritems = btrfs_header_nritems(buf); in __btrfs_mod_ref()[all …]
149 __le32 nritems; member2085 BTRFS_SETGET_HEADER_FUNCS(header_nritems, struct btrfs_header, nritems, 32);2092 nritems, 32);
3772 u32 nritems; in write_one_eb() local3783 nritems = btrfs_header_nritems(eb); in write_one_eb()3785 end = btrfs_node_key_ptr_offset(nritems); in write_one_eb()3793 start = btrfs_item_nr_offset(nritems); in write_one_eb()
3588 u32 nritems = btrfs_header_nritems(leaf); in acls_after_inode_item() local3603 while (slot < nritems) { in acls_after_inode_item()