Searched refs:nritems (Results 1 – 14 of 14) sorted by relevance
621 int nritems) in __tree_mod_log_free_eb() argument626 for (i = nritems - 1; i >= 0; i--) { in __tree_mod_log_free_eb()629 for (j = nritems - 1; j > i; j--) in __tree_mod_log_free_eb()647 int nritems = 0; in tree_mod_log_insert_root() local655 nritems = btrfs_header_nritems(old_root); in tree_mod_log_insert_root()656 tm_list = kcalloc(nritems, sizeof(struct tree_mod_elem *), in tree_mod_log_insert_root()662 for (i = 0; i < nritems; i++) { in tree_mod_log_insert_root()688 ret = __tree_mod_log_free_eb(fs_info, tm_list, nritems); in tree_mod_log_insert_root()701 for (i = 0; i < nritems; i++) in tree_mod_log_insert_root()873 int nritems = 0; in tree_mod_log_free_eb() local[all …]
66 u32 nritems; in btrfs_defrag_leaves() local70 nritems = btrfs_header_nritems(root_node); in btrfs_defrag_leaves()74 nritems - 1); in btrfs_defrag_leaves()
315 u32 nritems; in btrfs_search_dir_index_item() local327 nritems = btrfs_header_nritems(leaf); in btrfs_search_dir_index_item()330 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item()337 nritems = btrfs_header_nritems(leaf); in btrfs_search_dir_index_item()
447 u32 nritems = btrfs_header_nritems(leaf); in check_leaf() local465 if (nritems == 0 && !btrfs_header_flag(leaf, BTRFS_HEADER_FLAG_RELOC)) { in check_leaf()506 if (nritems == 0) in check_leaf()520 for (slot = 0; slot < nritems; slot++) { in check_leaf()
1888 int nritems; in find_dir_range() local1925 nritems = btrfs_header_nritems(path->nodes[0]); in find_dir_range()1927 if (path->slots[0] >= nritems) { in find_dir_range()2072 int nritems; in replay_xattr_deletes() local2087 nritems = btrfs_header_nritems(path->nodes[0]); in replay_xattr_deletes()2088 for (i = path->slots[0]; i < nritems; i++) { in replay_xattr_deletes()2218 int nritems; in replay_dir_deletes() local2224 nritems = btrfs_header_nritems(path->nodes[0]); in replay_dir_deletes()2225 if (path->slots[0] >= nritems) { in replay_dir_deletes()2285 int nritems; in replay_one_buffer() local[all …]
112 int nritems; in __readahead_hook() local146 nritems = level ? btrfs_header_nritems(eb) : 0; in __readahead_hook()161 nritems = 0; in __readahead_hook()165 for (i = 0; i < nritems; i++) { in __readahead_hook()172 if (i + 1 < nritems) in __readahead_hook()
1647 u32 nritems; local1662 nritems = btrfs_header_nritems(leaf);1663 for (i = 0; i < nritems; i++) {1948 u32 nritems; local1959 nritems = btrfs_header_nritems(eb);1960 while (path->slots[i] + 1 < nritems) {1987 u32 nritems; local1993 nritems = btrfs_header_nritems(eb);1994 while (path->slots[i] < nritems) {2000 if (path->slots[i] >= nritems) {[all …]
697 u32 nritems; in btrfs_csum_file_blocks() local742 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_csum_file_blocks()743 if (!nritems || (path->slots[0] >= nritems - 1)) { in btrfs_csum_file_blocks()
90 int nritems; in find_extent_in_eb() local99 nritems = btrfs_header_nritems(eb); in find_extent_in_eb()100 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
409 u32 nritems; in caching_thread() local457 nritems = btrfs_header_nritems(leaf); in caching_thread()465 if (path->slots[0] < nritems) { in caching_thread()489 nritems = btrfs_header_nritems(leaf); in caching_thread()1168 u32 nritems; in lookup_extent_data_ref() local1208 nritems = btrfs_header_nritems(leaf); in lookup_extent_data_ref()1210 if (path->slots[0] >= nritems) { in lookup_extent_data_ref()1218 nritems = btrfs_header_nritems(leaf); in lookup_extent_data_ref()3190 u32 nritems; in __btrfs_mod_ref() local3204 nritems = btrfs_header_nritems(buf); in __btrfs_mod_ref()[all …]
1970 int nritems; in copy_to_sk() local1977 nritems = btrfs_header_nritems(leaf); in copy_to_sk()1980 i = nritems; in copy_to_sk()1985 for (i = slot; i < nritems; i++) { in copy_to_sk()3575 u32 nritems; in btrfs_clone() local3622 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_clone()3624 if (path->slots[0] >= nritems) { in btrfs_clone()3630 nritems = btrfs_header_nritems(path->nodes[0]); in btrfs_clone()
383 __le32 nritems; member2868 BTRFS_SETGET_HEADER_FUNCS(header_nritems, struct btrfs_header, nritems, 32);2875 nritems, 32);
3850 u32 nritems; in write_one_eb() local3864 nritems = btrfs_header_nritems(eb); in write_one_eb()3866 end = btrfs_node_key_ptr_offset(nritems); in write_one_eb()3874 start = btrfs_item_nr_offset(nritems); in write_one_eb()
3597 u32 nritems = btrfs_header_nritems(leaf); in acls_after_inode_item() local3612 while (slot < nritems) { in acls_after_inode_item()