/linux/fs/bcachefs/ |
H A D | io_misc.c | 104 bch2_alloc_sectors_append_ptrs(c, wp, &e->k_i, sectors, false); in bch2_extent_fallocate() 282 bkey_logged_op_truncate_init(&op.k_i); in bch2_truncate() 294 int ret = bch2_logged_op_start(trans, &op.k_i); in bch2_truncate() 297 ret = __bch2_resume_logged_op_truncate(trans, &op.k_i, i_sectors_delta); in bch2_truncate() 298 ret = bch2_logged_op_finish(trans, &op.k_i) ?: ret; in bch2_truncate() 395 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 406 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 467 bch2_logged_op_update(trans, &op->k_i) ?: in __bch2_resume_logged_op_finsert() 485 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 490 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() [all …]
|
H A D | data_update.c | 209 trace_move_extent_fail2(m, k, bkey_i_to_s_c(&new->k_i), in __bch2_data_update_index_update() 219 bch2_cut_front(iter.pos, &new->k_i); in __bch2_data_update_index_update() 223 bch2_cut_back(insert->k.p, &new->k_i); in __bch2_data_update_index_update() 249 trace_move_extent_fail2(m, k, bkey_i_to_s_c(&new->k_i), insert, "no rewrites found:"); in __bch2_data_update_index_update() 261 bch2_bkey_drop_ptr_noerror(bkey_i_to_s(&new->k_i), ptr); in __bch2_data_update_index_update() 266 trace_move_extent_fail2(m, k, bkey_i_to_s_c(&new->k_i), insert, "new replicas conflicted:"); in __bch2_data_update_index_update() 276 bch2_bkey_durability(c, bkey_i_to_s_c(&new->k_i)); in __bch2_data_update_index_update() 377 trace_move_extent_finish2(c, bkey_i_to_s_c(&new->k_i)); in __bch2_data_update_index_update() 501 bch2_alloc_sectors_append_ptrs(c, wp, &e->k_i, sectors, false); in bch2_update_unwritten_extent()
|
H A D | subvolume.c | 583 ret = bch2_trans_update(trans, &src_iter, &src_subvol->k_i, 0); in bch2_subvolume_create() 619 bkey_snapshot_tree_init(&root_tree.k_i); in bch2_initialize_subvolumes() 624 bkey_snapshot_init(&root_snapshot.k_i); in bch2_initialize_subvolumes() 632 bkey_subvolume_init(&root_volume.k_i); in bch2_initialize_subvolumes() 638 ret = bch2_btree_insert(c, BTREE_ID_snapshot_trees, &root_tree.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes() 639 bch2_btree_insert(c, BTREE_ID_snapshots, &root_snapshot.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes() 640 bch2_btree_insert(c, BTREE_ID_subvolumes, &root_volume.k_i, NULL, 0, 0); in bch2_initialize_subvolumes()
|
H A D | alloc_background.c | 424 bkey_reassemble(&ret->k_i, k); in __bch2_alloc_to_v4_mut() 436 bkey_alloc_v4_init(&ret->k_i); in __bch2_alloc_to_v4_mut() 492 ret = bch2_trans_update(trans, &iter, &a->k_i, flags); in bch2_trans_start_alloc_update() 567 ret2 = bch2_btree_insert_trans(trans, BTREE_ID_bucket_gens, &g.k_i, 0) ?: in bch2_bucket_gens_init() 575 bkey_bucket_gens_init(&g.k_i); in bch2_bucket_gens_init() 588 bch2_btree_insert_trans(trans, BTREE_ID_bucket_gens, &g.k_i, 0)); in bch2_bucket_gens_init() 761 bkey_bucket_gens_init(&g->k_i); in bch2_bucket_gen_update() 764 bkey_reassemble(&g->k_i, k); in bch2_bucket_gen_update() 769 ret = bch2_trans_update(trans, &iter, &g->k_i, 0); in bch2_bucket_gen_update() 1235 bkey_reassemble(&g->k_i, k); in bch2_check_alloc_key() [all …]
|
H A D | dirent.c | 182 bkey_dirent_init(&dirent->k_i); in dirent_create_key() 225 dir_inum, snapshot, &dirent->k_i, in bch2_dirent_create_snapshot() 247 dir, &dirent->k_i, flags); in bch2_dirent_create() 409 ret = bch2_trans_update(trans, &dst_iter, &new_dst->k_i, 0); in bch2_dirent_rename() 431 ret = bch2_trans_update(trans, &src_iter, &new_src->k_i, src_update_flags); in bch2_dirent_rename()
|
H A D | backpointers.h | 98 bkey_backpointer_init(&bp_k.k_i); in bch2_bucket_backpointer_mod() 107 return bch2_trans_update_buffered(trans, BTREE_ID_backpointers, &bp_k.k_i); in bch2_bucket_backpointer_mod()
|
H A D | disk_accounting.c | 95 struct { __BKEY_PADDED(k, BCH_ACCOUNTING_MAX_COUNTERS); } k_i; in bch2_disk_accounting_mod() local 97 accounting_key_init(&k_i.k, k, d, nr); in bch2_disk_accounting_mod() 100 ? bch2_trans_update_buffered(trans, BTREE_ID_accounting, &k_i.k) in bch2_disk_accounting_mod() 101 : bch2_accounting_mem_add(trans, bkey_i_to_s_c_accounting(&k_i.k), true); in bch2_disk_accounting_mod() 578 struct { __BKEY_PADDED(k, BCH_ACCOUNTING_MAX_COUNTERS); } k_i; in bch2_gc_accounting_done() local 580 accounting_key_init(&k_i.k, &acc_k, src_v, nr); in bch2_gc_accounting_done() 582 bkey_i_to_s_c_accounting(&k_i.k), in bch2_gc_accounting_done()
|
H A D | btree_gc.c | 104 bkey_copy(&dst->k_i, &b->key); in btree_ptr_to_v2() 136 ret = bch2_journal_key_insert_take(c, b->c.btree_id, b->c.level + 1, &new->k_i); in set_node_min() 143 bkey_copy(&b->key, &new->k_i); in set_node_min() 176 ret = bch2_journal_key_insert_take(c, b->c.btree_id, b->c.level + 1, &new->k_i); in set_node_max() 187 bkey_copy(&b->key, &new->k_i); in set_node_max() 887 ret = bch2_trans_update(trans, iter, &a->k_i, BTREE_TRIGGER_norun); in bch2_alloc_write_key() 1065 bkey_reassemble(&new->k_i, k); in bch2_gc_write_stripes_key() 1070 ret = bch2_trans_update(trans, iter, &new->k_i, 0); in bch2_gc_write_stripes_key() 1229 return bch2_trans_update(trans, iter, &a_mut->k_i, 0); in bch2_alloc_write_oldest_gen()
|
H A D | inode.c | 87 bkey_inode_v3_init(&packed->inode.k_i); in bch2_inode_pack_inlined() 134 ret = bch2_inode_unpack(bkey_i_to_s_c(&packed->inode.k_i), &unpacked); in bch2_inode_pack_inlined() 382 return bch2_trans_update(trans, iter, &inode_p->inode.k_i, flags); in bch2_inode_write_flags() 397 &inode_p->inode.k_i, in __bch2_fsck_write_inode() 427 return &inode_p->inode.k_i; in bch2_inode_to_v3() 1044 bkey_inode_generation_init(&delete.k_i); in bch2_inode_rm() 1048 ret = bch2_trans_update(trans, &iter, &delete.k_i, 0) ?: in bch2_inode_rm() 1212 bkey_inode_generation_init(&delete.k_i); in __bch2_inode_rm_snapshot() 1216 ret = bch2_trans_update(trans, &iter, &delete.k_i, 0) ?: in __bch2_inode_rm_snapshot()
|
H A D | acl.c | 233 bkey_xattr_init(&xattr->k_i); in bch2_acl_to_xattr() 334 inum, &xattr->k_i, 0); in bch2_set_acl_trans() 440 ret = bch2_trans_update(trans, &iter, &new->k_i, 0); in bch2_acl_chmod()
|
H A D | rebalance.c | 61 bkey_cookie_init(&cookie->k_i); in __bch2_set_rebalance_needs_scan() 65 ret = bch2_trans_update(trans, &iter, &cookie->k_i, 0); in __bch2_set_rebalance_needs_scan()
|
H A D | backpointers.c | 181 bkey_backpointer_init(&bp_k->k_i); in bch2_bucket_backpointer_mod_nowritebuffer() 208 ret = bch2_trans_update(trans, &bp_iter, &bp_k->k_i, 0); in bch2_bucket_backpointer_mod_nowritebuffer() 643 bkey_backpointer_init(&n_bp_k.k_i); in check_bp_exists() 647 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&n_bp_k.k_i)); in check_bp_exists()
|
H A D | fsck.c | 567 bkey_subvolume_init(&new_subvol->k_i); in reconstruct_subvol() 571 ret = bch2_btree_insert_trans(trans, BTREE_ID_subvolumes, &new_subvol->k_i, 0); in reconstruct_subvol() 1034 bkey_dirent_init(&new->k_i); in fsck_rename_dirent() 1050 old.k->p.snapshot, &new->k_i, in fsck_rename_dirent() 1059 return fsck_update_backpointers(trans, s, desc, hash_info, &new->k_i); in fsck_rename_dirent() 2260 bkey_reassemble(&n->k_i, d.s_c); in check_dirent_target() 2269 ret = bch2_trans_update(trans, iter, &n->k_i, 0); in check_dirent_target() 2648 bkey_subvolume_init(&root_subvol->k_i); in check_root_trans() 2653 ret = bch2_btree_insert_trans(trans, BTREE_ID_subvolumes, &root_subvol->k_i, 0); in check_root_trans() 3175 bkey_reassemble(&u->k_i, k); in fix_reflink_p_key() [all …]
|
H A D | snapshot.c | 937 bkey_snapshot_init(&snapshot->k_i); in check_snapshot_exists() 952 return bch2_btree_insert_trans(trans, BTREE_ID_snapshots, &snapshot->k_i, 0) ?: in check_snapshot_exists() 954 bkey_s_c_null, bkey_i_to_s(&snapshot->k_i), 0) ?: in check_snapshot_exists() 955 bch2_snapshot_set_equiv(trans, bkey_i_to_s_c(&snapshot->k_i)); in check_snapshot_exists() 1292 bkey_s_c_null, bkey_i_to_s_c(&n->k_i), 0); in create_snapids() 1588 return bch2_trans_update(trans, iter, &s->k_i, 0); in bch2_fix_child_of_deleted_snapshot()
|
H A D | bkey_types.h | 103 struct bkey_i k_i; \
|
H A D | quota.c | 846 ret = bch2_trans_update(trans, &iter, &new_quota->k_i, 0); in bch2_set_quota_trans() 869 bkey_quota_init(&new_quota.k_i); in bch2_set_quota() 874 __bch2_quota_set(c, bkey_i_to_s_c(&new_quota.k_i), qdq); in bch2_set_quota()
|
H A D | xattr.c | 200 bkey_xattr_init(&xattr->k_i); in bch2_xattr_set() 209 inum, &xattr->k_i, in bch2_xattr_set()
|
H A D | ec.c | 1246 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&new->k_i)); in ec_stripe_key_update() 1268 ret = bch2_trans_update(trans, &iter, &new->k_i, 0); in ec_stripe_key_update() 2272 bch2_bkey_to_replicas(&acc.replicas, bkey_i_to_s_c(&s->k_i)); in bch2_invalidate_stripe_to_dev() 2278 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(&s->k_i)); in bch2_invalidate_stripe_to_dev() 2285 bch2_bkey_to_replicas(&acc.replicas, bkey_i_to_s_c(&s->k_i)); in bch2_invalidate_stripe_to_dev()
|
H A D | buckets.c | 663 bch2_bkey_to_replicas(&acc.replicas, bkey_i_to_s_c(&s->k_i)); in bch2_trigger_stripe_ptr() 979 ret = bch2_trans_update(trans, &iter, &a->k_i, 0); in __bch2_trans_mark_metadata_bucket()
|
H A D | reflink.c | 399 ret = bch2_trans_update(trans, extent_iter, &r_p->k_i, in bch2_make_extent_indirect()
|
/linux/drivers/thermal/ |
H A D | gov_power_allocator.c | 156 s32 k_i; in estimate_pid_constants() local 178 k_i = tz->tzp->k_pu / 10; in estimate_pid_constants() 179 tz->tzp->k_i = k_i > 0 ? k_i : 1; in estimate_pid_constants() 265 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller() 268 s64 i_next = i + mul_frac(tz->tzp->k_i, err); in pid_controller()
|
H A D | thermal_sysfs.c | 326 create_s32_tzp_attr(k_i);
|
/linux/Documentation/driver-api/thermal/ |
H A D | power_allocator.rst | 26 P_max = k_p * e + k_i * err_integral + k_d * diff_err + sustainable_power 43 | | k_i | | get_requested_power() 162 k_i and integral_cutoff 165 `k_i` configures the PID loop's integral term constant. This term 170 integral term. This term is then multiplied by `k_i` and the result 171 added to the output of the controller. Typically `k_i` is set low (1
|
/linux/include/linux/ |
H A D | thermal.h | 170 s32 k_i; member
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-thermal | 128 What: /sys/class/thermal/thermal_zoneX/k_i
|