push_items 3251 fs/btrfs/ctree.c int push_items = 0; push_items 3258 fs/btrfs/ctree.c push_items = BTRFS_NODEPTRS_PER_BLOCK(fs_info) - dst_nritems; push_items 3265 fs/btrfs/ctree.c if (push_items <= 0) push_items 3269 fs/btrfs/ctree.c push_items = min(src_nritems, push_items); push_items 3270 fs/btrfs/ctree.c if (push_items < src_nritems) { push_items 3274 fs/btrfs/ctree.c if (src_nritems - push_items < 8) { push_items 3275 fs/btrfs/ctree.c if (push_items <= 8) push_items 3277 fs/btrfs/ctree.c push_items -= 8; push_items 3281 fs/btrfs/ctree.c push_items = min(src_nritems - 8, push_items); push_items 3283 fs/btrfs/ctree.c ret = tree_mod_log_eb_copy(dst, src, dst_nritems, 0, push_items); push_items 3291 fs/btrfs/ctree.c push_items * sizeof(struct btrfs_key_ptr)); push_items 3293 fs/btrfs/ctree.c if (push_items < src_nritems) { push_items 3299 fs/btrfs/ctree.c btrfs_node_key_ptr_offset(push_items), push_items 3300 fs/btrfs/ctree.c (src_nritems - push_items) * push_items 3303 fs/btrfs/ctree.c btrfs_set_header_nritems(src, src_nritems - push_items); push_items 3304 fs/btrfs/ctree.c btrfs_set_header_nritems(dst, dst_nritems + push_items); push_items 3325 fs/btrfs/ctree.c int push_items = 0; push_items 3336 fs/btrfs/ctree.c push_items = BTRFS_NODEPTRS_PER_BLOCK(fs_info) - dst_nritems; push_items 3337 fs/btrfs/ctree.c if (push_items <= 0) push_items 3348 fs/btrfs/ctree.c if (max_push < push_items) push_items 3349 fs/btrfs/ctree.c push_items = max_push; push_items 3351 fs/btrfs/ctree.c ret = tree_mod_log_insert_move(dst, push_items, 0, dst_nritems); push_items 3353 fs/btrfs/ctree.c memmove_extent_buffer(dst, btrfs_node_key_ptr_offset(push_items), push_items 3358 fs/btrfs/ctree.c ret = tree_mod_log_eb_copy(dst, src, 0, src_nritems - push_items, push_items 3359 fs/btrfs/ctree.c push_items); push_items 3366 fs/btrfs/ctree.c btrfs_node_key_ptr_offset(src_nritems - push_items), push_items 3367 fs/btrfs/ctree.c push_items * sizeof(struct btrfs_key_ptr)); push_items 3369 fs/btrfs/ctree.c btrfs_set_header_nritems(src, src_nritems - push_items); push_items 3370 fs/btrfs/ctree.c btrfs_set_header_nritems(dst, dst_nritems + push_items); push_items 3643 fs/btrfs/ctree.c int push_items = 0; push_items 3663 fs/btrfs/ctree.c if (!empty && push_items > 0) { push_items 3681 fs/btrfs/ctree.c push_items++; push_items 3688 fs/btrfs/ctree.c if (push_items == 0) push_items 3691 fs/btrfs/ctree.c WARN_ON(!empty && push_items == left_nritems); push_items 3696 fs/btrfs/ctree.c push_space = btrfs_item_end_nr(left, left_nritems - push_items); push_items 3712 fs/btrfs/ctree.c memmove_extent_buffer(right, btrfs_item_nr_offset(push_items), push_items 3718 fs/btrfs/ctree.c btrfs_item_nr_offset(left_nritems - push_items), push_items 3719 fs/btrfs/ctree.c push_items * sizeof(struct btrfs_item)); push_items 3723 fs/btrfs/ctree.c right_nritems += push_items; push_items 3732 fs/btrfs/ctree.c left_nritems -= push_items; push_items 3868 fs/btrfs/ctree.c int push_items = 0; push_items 3885 fs/btrfs/ctree.c if (!empty && push_items > 0) { push_items 3903 fs/btrfs/ctree.c push_items++; push_items 3907 fs/btrfs/ctree.c if (push_items == 0) { push_items 3911 fs/btrfs/ctree.c WARN_ON(!empty && push_items == btrfs_header_nritems(right)); push_items 3917 fs/btrfs/ctree.c push_items * sizeof(struct btrfs_item)); push_items 3920 fs/btrfs/ctree.c btrfs_item_offset_nr(right, push_items - 1); push_items 3925 fs/btrfs/ctree.c btrfs_item_offset_nr(right, push_items - 1), push_items 3932 fs/btrfs/ctree.c for (i = old_left_nritems; i < old_left_nritems + push_items; i++) { push_items 3942 fs/btrfs/ctree.c btrfs_set_header_nritems(left, old_left_nritems + push_items); push_items 3945 fs/btrfs/ctree.c if (push_items > right_nritems) push_items 3946 fs/btrfs/ctree.c WARN(1, KERN_CRIT "push items %d nr %u\n", push_items, push_items 3949 fs/btrfs/ctree.c if (push_items < right_nritems) { push_items 3950 fs/btrfs/ctree.c push_space = btrfs_item_offset_nr(right, push_items - 1) - push_items 3958 fs/btrfs/ctree.c btrfs_item_nr_offset(push_items), push_items 3959 fs/btrfs/ctree.c (btrfs_header_nritems(right) - push_items) * push_items 3964 fs/btrfs/ctree.c right_nritems -= push_items; push_items 3985 fs/btrfs/ctree.c if (path->slots[0] < push_items) { push_items 3994 fs/btrfs/ctree.c path->slots[0] -= push_items;