Lines Matching refs:src_nritems
2749 int src_nritems; in push_node_left() local
2753 src_nritems = btrfs_header_nritems(src); in push_node_left()
2759 if (!empty && src_nritems <= 8) in push_node_left()
2766 push_items = min(src_nritems, push_items); in push_node_left()
2767 if (push_items < src_nritems) { in push_node_left()
2771 if (src_nritems - push_items < 8) { in push_node_left()
2778 push_items = min(src_nritems - 8, push_items); in push_node_left()
2796 if (push_items < src_nritems) { in push_node_left()
2803 (src_nritems - push_items) * in push_node_left()
2806 btrfs_set_header_nritems(src, src_nritems - push_items); in push_node_left()
2830 int src_nritems; in balance_node_right() local
2837 src_nritems = btrfs_header_nritems(src); in balance_node_right()
2843 if (src_nritems < 4) in balance_node_right()
2846 max_push = src_nritems / 2 + 1; in balance_node_right()
2848 if (max_push >= src_nritems) in balance_node_right()
2870 ret = btrfs_tree_mod_log_eb_copy(dst, src, 0, src_nritems - push_items, in balance_node_right()
2878 btrfs_node_key_ptr_offset(src, src_nritems - push_items), in balance_node_right()
2881 btrfs_set_header_nritems(src, src_nritems - push_items); in balance_node_right()