Lines Matching refs:src_nritems
3298 int src_nritems; in push_node_left() local
3302 src_nritems = btrfs_header_nritems(src); in push_node_left()
3308 if (!empty && src_nritems <= 8) in push_node_left()
3315 push_items = min(src_nritems, push_items); in push_node_left()
3316 if (push_items < src_nritems) { in push_node_left()
3320 if (src_nritems - push_items < 8) { in push_node_left()
3327 push_items = min(src_nritems - 8, push_items); in push_node_left()
3340 if (push_items < src_nritems) { in push_node_left()
3347 (src_nritems - push_items) * in push_node_left()
3350 btrfs_set_header_nritems(src, src_nritems - push_items); in push_node_left()
3374 int src_nritems; in balance_node_right() local
3381 src_nritems = btrfs_header_nritems(src); in balance_node_right()
3387 if (src_nritems < 4) in balance_node_right()
3390 max_push = src_nritems / 2 + 1; in balance_node_right()
3392 if (max_push >= src_nritems) in balance_node_right()
3406 src_nritems - push_items, push_items); in balance_node_right()
3413 btrfs_node_key_ptr_offset(src_nritems - push_items), in balance_node_right()
3416 btrfs_set_header_nritems(src, src_nritems - push_items); in balance_node_right()