Home
last modified time | relevance | path

Searched refs:nritems (Results 1 – 14 of 14) sorted by relevance

/fs/btrfs/
Dctree.c621 int nritems) in __tree_mod_log_free_eb() argument
626 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() local
655 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 …]
Dtree-defrag.c66 u32 nritems; in btrfs_defrag_leaves() local
70 nritems = btrfs_header_nritems(root_node); in btrfs_defrag_leaves()
74 nritems - 1); in btrfs_defrag_leaves()
Ddir-item.c315 u32 nritems; in btrfs_search_dir_index_item() local
327 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()
Dtree-checker.c447 u32 nritems = btrfs_header_nritems(leaf); in check_leaf() local
465 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()
Dtree-log.c1888 int nritems; in find_dir_range() local
1925 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() local
2087 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() local
2224 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 …]
Dreada.c112 int nritems; in __readahead_hook() local
146 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()
Drelocation.c1647 u32 nritems; local
1662 nritems = btrfs_header_nritems(leaf);
1663 for (i = 0; i < nritems; i++) {
1948 u32 nritems; local
1959 nritems = btrfs_header_nritems(eb);
1960 while (path->slots[i] + 1 < nritems) {
1987 u32 nritems; local
1993 nritems = btrfs_header_nritems(eb);
1994 while (path->slots[i] < nritems) {
2000 if (path->slots[i] >= nritems) {
[all …]
Dfile-item.c697 u32 nritems; in btrfs_csum_file_blocks() local
742 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()
Dbackref.c90 int nritems; in find_extent_in_eb() local
99 nritems = btrfs_header_nritems(eb); in find_extent_in_eb()
100 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
Dextent-tree.c409 u32 nritems; in caching_thread() local
457 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() local
1208 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() local
3204 nritems = btrfs_header_nritems(buf); in __btrfs_mod_ref()
[all …]
Dioctl.c1970 int nritems; in copy_to_sk() local
1977 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() local
3622 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()
Dctree.h383 __le32 nritems; member
2868 BTRFS_SETGET_HEADER_FUNCS(header_nritems, struct btrfs_header, nritems, 32);
2875 nritems, 32);
Dextent_io.c3850 u32 nritems; in write_one_eb() local
3864 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()
Dinode.c3597 u32 nritems = btrfs_header_nritems(leaf); in acls_after_inode_item() local
3612 while (slot < nritems) { in acls_after_inode_item()