Home
last modified time | relevance | path

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

/linux-4.19.296/fs/btrfs/
Dctree.c603 int nritems) in __tree_mod_log_free_eb() argument
608 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() local
635 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 …]
Dtree-defrag.c52 u32 nritems; in btrfs_defrag_leaves() local
56 nritems = btrfs_header_nritems(root_node); in btrfs_defrag_leaves()
60 nritems - 1); in btrfs_defrag_leaves()
Ddir-item.c303 u32 nritems; in btrfs_search_dir_index_item() local
315 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()
Dtree-log.c2118 int nritems; in find_dir_range() local
2155 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() local
2312 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() local
2449 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 …]
Dtree-checker.c811 u32 nritems = btrfs_header_nritems(leaf); in check_leaf() local
829 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()
Dreada.c97 int nritems; in __readahead_hook() local
130 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()
Drelocation.c1616 u32 nritems; in replace_file_extents() local
1631 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() local
1956 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() local
1993 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 …]
Dfile-item.c740 u32 nritems; in btrfs_csum_file_blocks() local
785 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()
Dref-verify.c518 int nritems = btrfs_header_nritems(leaf); in process_leaf() local
520 for (i = 0; i < nritems; i++) { in process_leaf()
Dbackref.c83 int nritems; in find_extent_in_eb() local
92 nritems = btrfs_header_nritems(eb); in find_extent_in_eb()
93 for (slot = 0; slot < nritems; ++slot) { in find_extent_in_eb()
Dioctl.c2059 int nritems; in copy_to_sk() local
2066 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() local
4012 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()
Dextent-tree.c389 u32 nritems; in load_extent_tree_free() local
428 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() local
1169 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() local
3205 nritems = btrfs_header_nritems(buf); in __btrfs_mod_ref()
[all …]
Dctree.h149 __le32 nritems; member
2085 BTRFS_SETGET_HEADER_FUNCS(header_nritems, struct btrfs_header, nritems, 32);
2092 nritems, 32);
Dextent_io.c3772 u32 nritems; in write_one_eb() local
3783 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()
Dinode.c3588 u32 nritems = btrfs_header_nritems(leaf); in acls_after_inode_item() local
3603 while (slot < nritems) { in acls_after_inode_item()