| /linux-6.15/fs/bcachefs/ |
| H A D | tests.c | 39 bkey_cookie_init(&k.k_i); in test_delete() 80 bkey_cookie_init(&k.k_i); in test_delete_written() 120 bkey_cookie_init(&ck.k_i); in test_iterate() 174 bkey_cookie_init(&ck.k_i); in test_iterate_extents() 231 bkey_cookie_init(&ck.k_i); in test_iterate_slots() 290 bkey_cookie_init(&ck.k_i); in test_iterate_slots_extents() 397 bkey_cookie_init(&k.k_i); in insert_test_extent() 398 k.k_i.k.p.offset = end; in insert_test_extent() 451 bkey_cookie_init(&k.k_i); in insert_test_overlapping_extent() 452 k.k_i.k.p.inode = inum; in insert_test_overlapping_extent() [all …]
|
| H A D | io_misc.c | 285 bkey_logged_op_truncate_init(&op.k_i); in bch2_truncate() 297 int ret = bch2_logged_op_start(trans, &op.k_i); in bch2_truncate() 301 ret = bch2_logged_op_finish(trans, &op.k_i) ?: ret; in bch2_truncate() 398 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 409 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 470 bch2_logged_op_update(trans, &op->k_i) ?: in __bch2_resume_logged_op_finsert() 488 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 493 bch2_logged_op_update(trans, &op->k_i)); in __bch2_resume_logged_op_finsert() 519 bkey_logged_op_finsert_init(&op.k_i); in bch2_fcollapse_finsert() 533 int ret = bch2_logged_op_start(trans, &op.k_i); in bch2_fcollapse_finsert() [all …]
|
| H A D | data_update.c | 227 trace_io_move_fail2(m, k, bkey_i_to_s_c(&new->k_i), in __bch2_data_update_index_update() 237 bch2_cut_front(iter.pos, &new->k_i); in __bch2_data_update_index_update() 241 bch2_cut_back(insert->k.p, &new->k_i); in __bch2_data_update_index_update() 267 trace_io_move_fail2(m, k, bkey_i_to_s_c(&new->k_i), insert, "no rewrites found:"); in __bch2_data_update_index_update() 279 bch2_bkey_drop_ptr_noerror(bkey_i_to_s(&new->k_i), ptr); in __bch2_data_update_index_update() 284 trace_io_move_fail2(m, k, bkey_i_to_s_c(&new->k_i), insert, "new replicas conflicted:"); in __bch2_data_update_index_update() 294 bch2_bkey_durability(c, bkey_i_to_s_c(&new->k_i)); in __bch2_data_update_index_update() 405 trace_io_move_finish2(m, &new->k_i, insert); in __bch2_data_update_index_update() 536 bch2_alloc_sectors_append_ptrs(c, wp, &e->k_i, sectors, false); in bch2_update_unwritten_extent()
|
| H A D | subvolume.c | 618 ret = bch2_trans_update(trans, &src_iter, &src_subvol->k_i, 0); in bch2_subvolume_create() 654 bkey_snapshot_tree_init(&root_tree.k_i); in bch2_initialize_subvolumes() 659 bkey_snapshot_init(&root_snapshot.k_i); in bch2_initialize_subvolumes() 667 bkey_subvolume_init(&root_volume.k_i); in bch2_initialize_subvolumes() 673 ret = bch2_btree_insert(c, BTREE_ID_snapshot_trees, &root_tree.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes() 674 bch2_btree_insert(c, BTREE_ID_snapshots, &root_snapshot.k_i, NULL, 0, 0) ?: in bch2_initialize_subvolumes() 675 bch2_btree_insert(c, BTREE_ID_subvolumes, &root_volume.k_i, NULL, 0, 0); in bch2_initialize_subvolumes()
|
| H A D | disk_accounting.c | 97 struct { __BKEY_PADDED(k, BCH_ACCOUNTING_MAX_COUNTERS); } k_i; in bch2_disk_accounting_mod() local 99 accounting_key_init(&k_i.k, k, d, nr); in bch2_disk_accounting_mod() 102 int ret = bch2_accounting_mem_add(trans, bkey_i_to_s_c_accounting(&k_i.k), true); in bch2_disk_accounting_mod() 106 bch2_accounting_mem_add(trans, bkey_i_to_s_c_accounting(&k_i.k), true); in bch2_disk_accounting_mod() 109 return bch2_trans_update_buffered(trans, BTREE_ID_accounting, &k_i.k); in bch2_disk_accounting_mod() 594 struct { __BKEY_PADDED(k, BCH_ACCOUNTING_MAX_COUNTERS); } k_i; in bch2_gc_accounting_done() local 596 accounting_key_init(&k_i.k, &acc_k, src_v, nr); in bch2_gc_accounting_done() 598 bkey_i_to_s_c_accounting(&k_i.k), in bch2_gc_accounting_done()
|
| H A D | str_hash.c | 46 bkey_dirent_init(&new->k_i); in fsck_rename_dirent() 62 old.k->p.snapshot, &new->k_i, in fsck_rename_dirent() 71 return bch2_fsck_update_backpointers(trans, s, desc, hash_info, &new->k_i); in fsck_rename_dirent()
|
| H A D | btree_gc.c | 127 bkey_copy(&dst->k_i, &b->key); in btree_ptr_to_v2() 159 ret = bch2_journal_key_insert_take(c, b->c.btree_id, b->c.level + 1, &new->k_i); in set_node_min() 166 bkey_copy(&b->key, &new->k_i); in set_node_min() 199 ret = bch2_journal_key_insert_take(c, b->c.btree_id, b->c.level + 1, &new->k_i); in set_node_max() 210 bkey_copy(&b->key, &new->k_i); in set_node_max() 912 ret = bch2_trans_update(trans, iter, &a->k_i, BTREE_TRIGGER_norun); in bch2_alloc_write_key() 998 bkey_reassemble(&new->k_i, k); in bch2_gc_write_stripes_key() 1003 ret = bch2_trans_update(trans, iter, &new->k_i, 0); in bch2_gc_write_stripes_key() 1158 return bch2_trans_update(trans, iter, &a_mut->k_i, 0); in bch2_alloc_write_oldest_gen()
|
| H A D | backpointers.h | 113 return bch2_trans_update_buffered(trans, BTREE_ID_backpointers, &bp->k_i); in bch2_bucket_backpointer_mod() 154 bkey_backpointer_init(&bp->k_i); in bch2_extent_ptr_to_bp()
|
| H A D | alloc_background.c | 418 bkey_reassemble(&ret->k_i, k); in __bch2_alloc_to_v4_mut() 430 bkey_alloc_v4_init(&ret->k_i); in __bch2_alloc_to_v4_mut() 569 bkey_bucket_gens_init(&g.k_i); in bch2_bucket_gens_init() 763 bkey_bucket_gens_init(&g->k_i); in bch2_bucket_gen_update() 766 bkey_reassemble(&g->k_i, k); in bch2_bucket_gen_update() 771 ret = bch2_trans_update(trans, &iter, &g->k_i, 0); in bch2_bucket_gen_update() 1220 bkey_reassemble(&g->k_i, k); in bch2_check_alloc_key() 1222 bkey_bucket_gens_init(&g->k_i); in bch2_check_alloc_key() 1320 bkey_reassemble(&g.k_i, k); in bch2_check_alloc_hole_bucket_gens() 1501 bkey_reassemble(&g.k_i, k); in bch2_check_bucket_gens_key() [all …]
|
| H A D | acl.c | 228 bkey_xattr_init(&xattr->k_i); in bch2_acl_to_xattr() 329 inum, &xattr->k_i, 0); in bch2_set_acl_trans() 435 ret = bch2_trans_update(trans, &iter, &new->k_i, 0); in bch2_acl_chmod()
|
| H A D | dirent.c | 242 bkey_dirent_init(&dirent->k_i); in dirent_alloc_key() 346 dir_inum, snapshot, &dirent->k_i, flags); in bch2_dirent_create_snapshot() 367 dir, &dirent->k_i, flags); in bch2_dirent_create() 546 ret = bch2_trans_update(trans, &dst_iter, &new_dst->k_i, 0); in bch2_dirent_rename() 568 ret = bch2_trans_update(trans, &src_iter, &new_src->k_i, src_update_flags); in bch2_dirent_rename()
|
| H A D | reflink.c | 158 ret = bch2_btree_insert_trans(trans, BTREE_ID_extents, &new->k_i, BTREE_TRIGGER_norun); in bch2_indirect_extent_not_missing() 229 bch2_cut_front(new_start, &new->k_i); in bch2_indirect_extent_missing_error() 230 bch2_cut_back(new_end, &new->k_i); in bch2_indirect_extent_missing_error() 235 ret = bch2_btree_insert_trans(trans, BTREE_ID_extents, &new->k_i, BTREE_TRIGGER_norun); in bch2_indirect_extent_missing_error() 564 ret = bch2_trans_update(trans, extent_iter, &r_p->k_i, in bch2_make_extent_indirect()
|
| H A D | inode.c | 89 bkey_inode_v3_init(&packed->inode.k_i); in bch2_inode_pack_inlined() 136 ret = bch2_inode_unpack(bkey_i_to_s_c(&packed->inode.k_i), &unpacked); in bch2_inode_pack_inlined() 384 return bch2_trans_update(trans, iter, &inode_p->inode.k_i, flags); in bch2_inode_write_flags() 399 &inode_p->inode.k_i, in __bch2_fsck_write_inode() 429 return &inode_p->inode.k_i; in bch2_inode_to_v3() 1291 bkey_inode_generation_init(&delete.k_i); in __bch2_inode_rm_snapshot() 1295 ret = bch2_trans_update(trans, &iter, &delete.k_i, 0) ?: in __bch2_inode_rm_snapshot()
|
| H A D | backpointers.c | 103 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&new_bp->k_i)); in backpointer_mod_err() 120 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&new_bp->k_i)); in backpointer_mod_err() 169 ret = bch2_trans_update(trans, &bp_iter, &bp->k_i, 0); in bch2_bucket_backpointer_mod_nowritebuffer() 228 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&bp2.k_i)); in backpointer_target_not_found() 646 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&bp->k_i)); in check_bp_exists()
|
| 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 | rebalance.c | 250 bkey_cookie_init(&cookie->k_i); in bch2_set_rebalance_needs_scan_trans() 254 ret = bch2_trans_update(trans, &iter, &cookie->k_i, 0); in bch2_set_rebalance_needs_scan_trans()
|
| 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 | snapshot.c | 875 bkey_snapshot_init(&snapshot->k_i); in check_snapshot_exists() 890 return bch2_btree_insert_trans(trans, BTREE_ID_snapshots, &snapshot->k_i, 0) ?: in check_snapshot_exists() 892 bkey_s_c_null, bkey_i_to_s(&snapshot->k_i), 0); in check_snapshot_exists() 1229 bkey_s_c_null, bkey_i_to_s_c(&n->k_i), 0); in create_snapids() 1545 return bch2_trans_update(trans, iter, &s->k_i, 0); in bch2_fix_child_of_deleted_snapshot()
|
| H A D | namei.c | 813 bkey_reassemble(&n->k_i, d.s_c); in __bch2_check_dirent_target() 822 ret = bch2_trans_update(trans, dirent_iter, &n->k_i, 0); in __bch2_check_dirent_target()
|
| H A D | ec.c | 1064 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(&new->k_i)); in ec_stripe_key_update() 1086 ret = bch2_trans_update(trans, &iter, &new->k_i, 0); in ec_stripe_key_update() 2119 bch2_bkey_to_replicas(&acc.replicas, bkey_i_to_s_c(&s->k_i)); in bch2_invalidate_stripe_to_dev() 2125 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(&s->k_i)); in bch2_invalidate_stripe_to_dev() 2134 bch2_bkey_to_replicas(&acc.replicas, bkey_i_to_s_c(&s->k_i)); in bch2_invalidate_stripe_to_dev()
|
| H A D | fsck.c | 590 bkey_subvolume_init(&new_subvol->k_i); in reconstruct_subvol() 594 ret = bch2_btree_insert_trans(trans, BTREE_ID_subvolumes, &new_subvol->k_i, 0); in reconstruct_subvol() 2405 bkey_subvolume_init(&root_subvol->k_i); in check_root_trans() 2410 ret = bch2_btree_insert_trans(trans, BTREE_ID_subvolumes, &root_subvol->k_i, 0); in check_root_trans() 2992 bkey_reassemble(&u->k_i, k); in fix_reflink_p_key() 2996 return bch2_trans_update(trans, iter, &u->k_i, BTREE_TRIGGER_norun); in fix_reflink_p_key()
|
| /linux-6.15/drivers/thermal/ |
| H A D | gov_power_allocator.c | 155 s32 k_i; in estimate_pid_constants() local 177 k_i = tz->tzp->k_pu / 10; in estimate_pid_constants() 178 tz->tzp->k_i = k_i > 0 ? k_i : 1; in estimate_pid_constants() 264 i = mul_frac(tz->tzp->k_i, params->err_integral); in pid_controller() 267 s64 i_next = i + mul_frac(tz->tzp->k_i, err); in pid_controller()
|
| /linux-6.15/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-6.15/include/linux/ |
| H A D | thermal.h | 174 s32 k_i; member
|