Lines Matching defs:batch
4290 * @batch: information about the batch of items to insert
4297 const struct btrfs_item_batch *batch)
4315 btrfs_cpu_key_to_disk(&disk_key, &batch->keys[0]);
4325 total_size = batch->total_data_size + (batch->nr * sizeof(struct btrfs_item));
4354 ioff - batch->total_data_size);
4357 memmove_leaf_items(leaf, slot + batch->nr, slot, nritems - slot);
4360 memmove_leaf_data(leaf, data_end - batch->total_data_size,
4366 for (i = 0; i < batch->nr; i++) {
4367 btrfs_cpu_key_to_disk(&disk_key, &batch->keys[i]);
4369 data_end -= batch->data_sizes[i];
4371 btrfs_set_token_item_size(&token, slot + i, batch->data_sizes[i]);
4374 btrfs_set_header_nritems(leaf, nritems + batch->nr);
4398 struct btrfs_item_batch batch;
4400 batch.keys = key;
4401 batch.data_sizes = &data_size;
4402 batch.total_data_size = data_size;
4403 batch.nr = 1;
4405 setup_items_for_insert(trans, root, path, &batch);
4415 const struct btrfs_item_batch *batch)
4421 total_size = batch->total_data_size + (batch->nr * sizeof(struct btrfs_item));
4422 ret = btrfs_search_slot(trans, root, &batch->keys[0], path, total_size, 1);
4431 setup_items_for_insert(trans, root, path, batch);