Searched refs:batch (Results 1 – 12 of 12) sorted by relevance
/fs/btrfs/ |
D | delayed-inode.c | 652 struct btrfs_item_batch batch; in btrfs_insert_delayed_item() local 683 batch.total_data_size = first_data_size; in btrfs_insert_delayed_item() 684 batch.nr = 1; in btrfs_insert_delayed_item() 709 batch.nr++; in btrfs_insert_delayed_item() 711 batch.total_data_size += next->data_len; in btrfs_insert_delayed_item() 715 if (batch.nr == 1) { in btrfs_insert_delayed_item() 719 batch.keys = &first_key; in btrfs_insert_delayed_item() 720 batch.data_sizes = &first_data_size; in btrfs_insert_delayed_item() 726 ins_data = kmalloc(batch.nr * sizeof(u32) + in btrfs_insert_delayed_item() 727 batch.nr * sizeof(struct btrfs_key), GFP_NOFS); in btrfs_insert_delayed_item() [all …]
|
D | tree-log.c | 2945 int batch = atomic_read(&root->log_batch); in btrfs_sync_log() local 2954 if (batch == atomic_read(&root->log_batch)) in btrfs_sync_log() 3592 struct btrfs_item_batch batch; in flush_dir_items_batch() local 3603 batch.nr = count; in flush_dir_items_batch() 3608 batch.keys = &key; in flush_dir_items_batch() 3609 batch.data_sizes = &item_size; in flush_dir_items_batch() 3610 batch.total_data_size = item_size; in flush_dir_items_batch() 3622 batch.keys = ins_keys; in flush_dir_items_batch() 3623 batch.data_sizes = ins_sizes; in flush_dir_items_batch() 3624 batch.total_data_size = 0; in flush_dir_items_batch() [all …]
|
D | ctree.c | 4038 const struct btrfs_item_batch *batch) in setup_items_for_insert() argument 4056 btrfs_cpu_key_to_disk(&disk_key, &batch->keys[0]); in setup_items_for_insert() 4066 total_size = batch->total_data_size + (batch->nr * sizeof(struct btrfs_item)); in setup_items_for_insert() 4095 ioff - batch->total_data_size); in setup_items_for_insert() 4098 memmove_extent_buffer(leaf, btrfs_item_nr_offset(slot + batch->nr), in setup_items_for_insert() 4104 data_end - batch->total_data_size, in setup_items_for_insert() 4111 for (i = 0; i < batch->nr; i++) { in setup_items_for_insert() 4112 btrfs_cpu_key_to_disk(&disk_key, &batch->keys[i]); in setup_items_for_insert() 4114 data_end -= batch->data_sizes[i]; in setup_items_for_insert() 4116 btrfs_set_token_item_size(&token, slot + i, batch->data_sizes[i]); in setup_items_for_insert() [all …]
|
D | ctree.h | 3117 const struct btrfs_item_batch *batch); 3125 struct btrfs_item_batch batch; in btrfs_insert_empty_item() local 3127 batch.keys = key; in btrfs_insert_empty_item() 3128 batch.data_sizes = &data_size; in btrfs_insert_empty_item() 3129 batch.total_data_size = data_size; in btrfs_insert_empty_item() 3130 batch.nr = 1; in btrfs_insert_empty_item() 3132 return btrfs_insert_empty_items(trans, root, path, &batch); in btrfs_insert_empty_item()
|
D | inode.c | 6438 struct btrfs_item_batch batch; in btrfs_create_new_inode() local 6533 batch.keys = &key[0]; in btrfs_create_new_inode() 6534 batch.data_sizes = &sizes[0]; in btrfs_create_new_inode() 6535 batch.total_data_size = sizes[0] + (args->orphan ? 0 : sizes[1]); in btrfs_create_new_inode() 6536 batch.nr = args->orphan ? 1 : 2; in btrfs_create_new_inode() 6537 ret = btrfs_insert_empty_items(trans, root, path, &batch); in btrfs_create_new_inode()
|
/fs/xfs/ |
D | xfs_icache.c | 1666 struct xfs_inode *batch[XFS_LOOKUP_BATCH]; in xfs_icwalk_ag() local 1673 (void **) batch, first_index, in xfs_icwalk_ag() 1686 struct xfs_inode *ip = batch[i]; in xfs_icwalk_ag() 1689 batch[i] = NULL; in xfs_icwalk_ag() 1714 if (!batch[i]) in xfs_icwalk_ag() 1716 error = xfs_icwalk_process_inode(goal, batch[i], pag, in xfs_icwalk_ag() 2248 shrink->batch = XFS_INODEGC_SHRINKER_BATCH; in xfs_inodegc_register_shrinker()
|
D | xfs_mount.c | 1127 s32 batch; in xfs_mod_freecounter() local 1170 batch = 1; in xfs_mod_freecounter() 1172 batch = XFS_FDBLOCKS_BATCH; in xfs_mod_freecounter() 1187 percpu_counter_add_batch(counter, delta, batch); in xfs_mod_freecounter()
|
D | xfs_qm.c | 70 struct xfs_dquot *batch[XFS_DQ_LOOKUP_BATCH]; in xfs_qm_dquot_walk() local 75 nr_found = radix_tree_gang_lookup(tree, (void **)batch, in xfs_qm_dquot_walk() 83 struct xfs_dquot *dqp = batch[i]; in xfs_qm_dquot_walk() 87 error = execute(batch[i], data); in xfs_qm_dquot_walk()
|
/fs/nfs/ |
D | nfs42xattr.c | 810 .batch = 512, 818 .batch = 512,
|
/fs/f2fs/ |
D | node.c | 2643 unsigned int batch = SHRINK_NID_BATCH_SIZE; in f2fs_try_to_free_nids() local 2647 if (!nr_shrink || !batch || in f2fs_try_to_free_nids() 2653 batch--; in f2fs_try_to_free_nids()
|
/fs/ |
D | super.c | 268 s->s_shrink.batch = 1024; in alloc_super()
|
/fs/jbd2/ |
D | journal.c | 1418 journal->j_shrinker.batch = journal->j_max_transaction_buffers; in journal_init_common()
|