Lines Matching refs:batch
3001 int batch = atomic_read(&root->log_batch); in btrfs_sync_log() local
3010 if (batch == atomic_read(&root->log_batch)) in btrfs_sync_log()
3643 struct btrfs_item_batch batch; in flush_dir_items_batch() local
3654 batch.nr = count; in flush_dir_items_batch()
3659 batch.keys = &key; in flush_dir_items_batch()
3660 batch.data_sizes = &item_size; in flush_dir_items_batch()
3661 batch.total_data_size = item_size; in flush_dir_items_batch()
3673 batch.keys = ins_keys; in flush_dir_items_batch()
3674 batch.data_sizes = ins_sizes; in flush_dir_items_batch()
3675 batch.total_data_size = 0; in flush_dir_items_batch()
3682 batch.total_data_size += ins_sizes[i]; in flush_dir_items_batch()
3686 ret = btrfs_insert_empty_items(trans, log, dst_path, &batch); in flush_dir_items_batch()
3703 copy_extent_buffer(dst, src, dst_offset, src_offset, batch.total_data_size); in flush_dir_items_batch()
3706 last_index = batch.keys[count - 1].offset; in flush_dir_items_batch()
3719 btrfs_set_first_dir_index_to_log(inode, batch.keys[0].offset); in flush_dir_items_batch()
4390 struct btrfs_item_batch batch; in copy_items() local
4437 batch.keys = ins_keys; in copy_items()
4438 batch.data_sizes = ins_sizes; in copy_items()
4439 batch.total_data_size = 0; in copy_items()
4440 batch.nr = 0; in copy_items()
4534 batch.total_data_size += ins_sizes[dst_index]; in copy_items()
4535 batch.nr++; in copy_items()
4543 if (batch.nr == 0) in copy_items()
4546 ret = btrfs_insert_empty_items(trans, log, dst_path, &batch); in copy_items()
4562 if (dst_index >= batch.nr) in copy_items()
6065 const struct btrfs_item_batch *batch, in insert_delayed_items_batch() argument
6071 ret = btrfs_insert_empty_items(trans, log, path, batch); in insert_delayed_items_batch()
6075 for (int i = 0; i < batch->nr; i++) { in insert_delayed_items_batch()
6101 struct btrfs_item_batch batch = { in log_delayed_insertion_items() local
6141 batch.data_sizes = ins_sizes; in log_delayed_insertion_items()
6143 batch.keys = ins_keys; in log_delayed_insertion_items()
6150 batch.nr == max_batch_size) { in log_delayed_insertion_items()
6152 &batch, first); in log_delayed_insertion_items()
6156 batch.nr = 0; in log_delayed_insertion_items()
6157 batch.total_data_size = 0; in log_delayed_insertion_items()
6167 batch.total_data_size += curr->data_len; in log_delayed_insertion_items()
6168 batch.nr++; in log_delayed_insertion_items()
6173 ASSERT(batch.nr >= 1); in log_delayed_insertion_items()
6174 ret = insert_delayed_items_batch(trans, log, path, &batch, first); in log_delayed_insertion_items()