Lines Matching defs:batch

2900 		int batch = atomic_read(&root->log_batch);
2909 if (batch == atomic_read(&root->log_batch))
3547 struct btrfs_item_batch batch;
3558 batch.nr = count;
3563 batch.keys = &key;
3564 batch.data_sizes = &item_size;
3565 batch.total_data_size = item_size;
3577 batch.keys = ins_keys;
3578 batch.data_sizes = ins_sizes;
3579 batch.total_data_size = 0;
3586 batch.total_data_size += ins_sizes[i];
3590 ret = btrfs_insert_empty_items(trans, log, dst_path, &batch);
3607 copy_extent_buffer(dst, src, dst_offset, src_offset, batch.total_data_size);
3610 last_index = batch.keys[count - 1].offset;
3623 btrfs_set_first_dir_index_to_log(inode, batch.keys[0].offset);
3935 * do batch insertions of dir index keys.
4278 struct btrfs_item_batch batch;
4329 batch.keys = ins_keys;
4330 batch.data_sizes = ins_sizes;
4331 batch.total_data_size = 0;
4332 batch.nr = 0;
4425 batch.total_data_size += ins_sizes[dst_index];
4426 batch.nr++;
4434 if (batch.nr == 0)
4437 ret = btrfs_insert_empty_items(trans, log, dst_path, &batch);
4453 if (dst_index >= batch.nr)
5952 const struct btrfs_item_batch *batch,
5958 ret = btrfs_insert_empty_items(trans, log, path, batch);
5962 for (int i = 0; i < batch->nr; i++) {
5988 struct btrfs_item_batch batch = {
6028 batch.data_sizes = ins_sizes;
6030 batch.keys = ins_keys;
6037 batch.nr == max_batch_size) {
6039 &batch, first);
6043 batch.nr = 0;
6044 batch.total_data_size = 0;
6054 batch.total_data_size += curr->data_len;
6055 batch.nr++;
6060 ASSERT(batch.nr >= 1);
6061 ret = insert_delayed_items_batch(trans, log, path, &batch, first);