| /fs/bcachefs/ |
| D | extents.c | 107 int bch2_bkey_pick_read_device(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_pick_read_device() 171 int bch2_btree_ptr_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_btree_ptr_validate() 186 struct bkey_s_c k) in bch2_btree_ptr_to_text() 191 int bch2_btree_ptr_v2_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_btree_ptr_v2_validate() 217 struct bkey_s_c k) in bch2_btree_ptr_v2_to_text() 233 struct bkey_s k) in bch2_btree_ptr_v2_compat() 397 int bch2_reservation_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reservation_validate() 411 struct bkey_s_c k) in bch2_reservation_to_text() 459 bool bch2_can_narrow_extent_crcs(struct bkey_s_c k, in bch2_can_narrow_extent_crcs() 485 bool bch2_bkey_narrow_crcs(struct bkey_i *k, struct bch_extent_crc_unpacked n) in bch2_bkey_narrow_crcs() [all …]
|
| D | bkey_types.h | 15 static inline struct bkey_i *bkey_next(struct bkey_i *k) in bkey_next() 22 static inline size_t bkey_val_bytes(const struct bkey *k) in bkey_val_bytes() 27 static inline void set_bkey_val_u64s(struct bkey *k, unsigned val_u64s) in set_bkey_val_u64s() 35 static inline void set_bkey_val_bytes(struct bkey *k, unsigned bytes) in set_bkey_val_bytes() 49 const struct bkey *k; member 57 struct bkey *k; member 70 static inline struct bkey_s bkey_to_s(struct bkey *k) in bkey_to_s() 75 static inline struct bkey_s_c bkey_to_s_c(const struct bkey *k) in bkey_to_s_c() 80 static inline struct bkey_s bkey_i_to_s(struct bkey_i *k) in bkey_i_to_s() 85 static inline struct bkey_s_c bkey_i_to_s_c(const struct bkey_i *k) in bkey_i_to_s_c()
|
| D | bkey_methods.c | 30 static int deleted_key_validate(struct bch_fs *c, struct bkey_s_c k, in deleted_key_validate() 44 static int empty_val_key_validate(struct bch_fs *c, struct bkey_s_c k, in empty_val_key_validate() 61 static int key_type_cookie_validate(struct bch_fs *c, struct bkey_s_c k, in key_type_cookie_validate() 68 struct bkey_s_c k) in key_type_cookie_to_text() 85 static int key_type_inline_data_validate(struct bch_fs *c, struct bkey_s_c k, in key_type_inline_data_validate() 92 struct bkey_s_c k) in key_type_inline_data_to_text() 126 int bch2_bkey_val_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_val_validate() 163 int __bch2_bkey_validate(struct bch_fs *c, struct bkey_s_c k, in __bch2_bkey_validate() 230 int bch2_bkey_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_validate() 239 struct bkey_s_c k, enum bch_validate_flags flags) in bch2_bkey_in_btree_node() [all …]
|
| D | extents.h | 85 static inline void __extent_entry_insert(struct bkey_i *k, in __extent_entry_insert() 97 static inline void extent_entry_drop(struct bkey_s k, union bch_extent_entry *entry) in extent_entry_drop() 152 bch2_extent_crc_unpack(const struct bkey *k, const union bch_extent_crc *crc) in bch2_extent_crc_unpack() 229 static inline struct bkey_ptrs_c bch2_bkey_ptrs_c(struct bkey_s_c k) in bch2_bkey_ptrs_c() 277 static inline struct bkey_ptrs bch2_bkey_ptrs(struct bkey_s k) in bch2_bkey_ptrs() 477 static inline bool bkey_is_btree_ptr(const struct bkey *k) in bkey_is_btree_ptr() 488 static inline bool bkey_extent_is_direct_data(const struct bkey *k) in bkey_extent_is_direct_data() 501 static inline bool bkey_extent_is_inline_data(const struct bkey *k) in bkey_extent_is_inline_data() 507 static inline unsigned bkey_inline_data_offset(const struct bkey *k) in bkey_inline_data_offset() 519 static inline unsigned bkey_inline_data_bytes(const struct bkey *k) in bkey_inline_data_bytes() [all …]
|
| D | inode.c | 79 struct bkey_i_inode_v3 *k = &packed->inode; in bch2_inode_pack_inlined() local 230 static int bch2_inode_unpack_v3(struct bkey_s_c k, in bch2_inode_unpack_v3() 281 static noinline int bch2_inode_unpack_slowpath(struct bkey_s_c k, in bch2_inode_unpack_slowpath() 325 int bch2_inode_unpack(struct bkey_s_c k, in bch2_inode_unpack() 346 struct bkey_s_c k = bch2_bkey_get_iter(trans, iter, BTREE_ID_inodes, in __bch2_inode_peek() local 409 struct bkey_i *bch2_inode_to_v3(struct btree_trans *trans, struct bkey_i *k) in bch2_inode_to_v3() 430 static int __bch2_inode_validate(struct bch_fs *c, struct bkey_s_c k, in __bch2_inode_validate() 470 int bch2_inode_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_inode_validate() 486 int bch2_inode_v2_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_inode_v2_validate() 502 int bch2_inode_v3_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_inode_v3_validate() [all …]
|
| D | data_update.c | 23 static void bkey_put_dev_refs(struct bch_fs *c, struct bkey_s_c k) in bkey_put_dev_refs() 31 static bool bkey_get_dev_refs(struct bch_fs *c, struct bkey_s_c k) in bkey_get_dev_refs() 48 static void bkey_nocow_unlock(struct bch_fs *c, struct bkey_s_c k) in bkey_nocow_unlock() 60 static bool bkey_nocow_lock(struct bch_fs *c, struct moving_context *ctxt, struct bkey_s_c k) in bkey_nocow_lock() 94 static void trace_move_extent_finish2(struct bch_fs *c, struct bkey_s_c k) in trace_move_extent_finish2() 185 struct bkey_s_c k; in __bch2_data_update_index_update() local 432 struct bkey_s_c k = bkey_i_to_s_c(update->k.k); in bch2_data_update_exit() local 451 struct bkey_s_c k; in bch2_update_unwritten_extent() local 562 struct bkey_s_c k, in bch2_extent_drop_ptrs() 611 struct bkey_s_c k) in bch2_data_update_init() [all …]
|
| D | bset.c | 34 struct bset_tree *bch2_bkey_to_bset(struct btree *b, struct bkey_packed *k) in bch2_bkey_to_bset() 60 struct bkey_s_c k; in bch2_dump_bset() local 122 struct bkey_packed *k = __btree_node_offset_to_key(b, set->k); in bch2_dump_btree_node_iter() local 137 struct bkey_packed *k; in bch2_btree_node_count_keys() local 160 const struct bkey_packed *k, *n; in bch2_btree_node_iter_next_check() local 197 struct bkey_packed *k, *p; in bch2_btree_node_iter_verify() local 314 struct bpos k; member 435 const struct bkey_packed *k) in bkey_to_cacheline() 443 const struct bkey_packed *k) in __bkey_to_cacheline_offset() 451 const struct bkey_packed *k) in bkey_to_cacheline_offset() [all …]
|
| D | btree_update.c | 33 struct bkey_s_c k, in extent_front_merge() 70 struct bkey_s_c k) in extent_back_merge() 97 struct bkey_s_c k; in need_whiteout_for_snapshot() local 291 struct bkey_s_c k; in bch2_trans_update_extent() local 352 struct bkey k; in flush_new_cached_update() local 386 struct bkey_i *k, enum btree_iter_update_trigger_flags flags, in bch2_trans_update_by_path() 512 struct bkey_i *k, enum btree_iter_update_trigger_flags flags) in bch2_trans_update() 551 struct bkey_i *k) in bch2_btree_insert_clone_trans() 591 struct bkey_s_c k; in bch2_bkey_get_empty_slot() local 627 enum btree_id btree, struct bkey_i *k, in bch2_btree_insert_nonextent() [all …]
|
| D | bkey.h | 234 static inline struct bkey_packed *bkey_to_packed(struct bkey_i *k) in bkey_to_packed() 239 static inline const struct bkey_packed *bkey_to_packed_c(const struct bkey_i *k) in bkey_to_packed_c() 244 static inline struct bkey_i *packed_to_bkey(struct bkey_packed *k) in packed_to_bkey() 249 static inline const struct bkey *packed_to_bkey_c(const struct bkey_packed *k) in packed_to_bkey_c() 303 static inline u64 bkey_start_offset(const struct bkey *k) in bkey_start_offset() 308 static inline struct bpos bkey_start_pos(const struct bkey *k) in bkey_start_pos() 320 const struct bkey_packed *k) in bkeyp_key_u64s() 326 const struct bkey_packed *k) in bkeyp_u64s_valid() 332 const struct bkey_packed *k) in bkeyp_key_bytes() 338 const struct bkey_packed *k) in bkeyp_val_u64s() [all …]
|
| D | alloc_background.c | 88 struct bkey_s_c k) in bch2_alloc_unpack_v1() 102 struct bkey_s_c k) in bch2_alloc_unpack_v2() 135 struct bkey_s_c k) in bch2_alloc_unpack_v3() 170 static struct bkey_alloc_unpacked bch2_alloc_unpack(struct bkey_s_c k) in bch2_alloc_unpack() 200 int bch2_alloc_v1_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v1_validate() 215 int bch2_alloc_v2_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v2_validate() 228 int bch2_alloc_v3_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v3_validate() 241 int bch2_alloc_v4_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_alloc_v4_validate() 322 void bch2_alloc_v4_swab(struct bkey_s k) in bch2_alloc_v4_swab() 345 void bch2_alloc_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c k) in bch2_alloc_to_text() [all …]
|
| D | reflink.c | 18 static inline unsigned bkey_type_to_indirect(const struct bkey *k) in bkey_type_to_indirect() 32 int bch2_reflink_p_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reflink_p_validate() 47 struct bkey_s_c k) in bch2_reflink_p_to_text() 81 struct bkey_i *k; in trans_trigger_reflink_p_segment() local 206 enum btree_id btree_id, unsigned level, struct bkey_s_c k, in __trigger_reflink_p() 258 int bch2_reflink_v_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reflink_v_validate() 265 struct bkey_s_c k) in bch2_reflink_v_to_text() 312 int bch2_indirect_inline_data_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_indirect_inline_data_validate() 319 struct bch_fs *c, struct bkey_s_c k) in bch2_indirect_inline_data_to_text() 345 struct bkey_s_c k; in bch2_make_extent_indirect() local [all …]
|
| D | logged_ops.c | 34 struct bkey_s_c k) in resume_logged_op() 74 static int __bch2_logged_op_start(struct btree_trans *trans, struct bkey_i *k) in __bch2_logged_op_start() 90 int bch2_logged_op_start(struct btree_trans *trans, struct bkey_i *k) in bch2_logged_op_start() 96 int bch2_logged_op_finish(struct btree_trans *trans, struct bkey_i *k) in bch2_logged_op_finish()
|
| D | extent_update.c | 14 static unsigned bch2_bkey_nr_alloc_ptrs(struct bkey_s_c k) in bch2_bkey_nr_alloc_ptrs() 41 struct bkey_s_c k, in count_iters_for_insert() 111 struct bkey_s_c k; in bch2_extent_atomic_end() local 162 struct bkey_i *k) in bch2_extent_trim_atomic()
|
| D | rebalance.c | 39 struct bkey_s_c k; in __bch2_set_rebalance_needs_scan() local 89 struct bkey_s_c k; in bch2_clear_rebalance_needs_scan() local 122 struct bkey_s_c k) in bch2_bkey_clear_needs_rebalance() 140 struct bkey_s_c k; in next_rebalance_extent() local 205 struct bkey_s_c k; in do_rebalance_extent() local 252 struct bkey_s_c k, in rebalance_pred() 328 struct bkey_s_c k; in do_rebalance() local
|
| D | tests.c | 36 struct bkey_i_cookie k; in test_delete() local 77 struct bkey_i_cookie k; in test_delete_written() local 347 struct bkey_s_c k; in test_peek_end() local 367 struct bkey_s_c k; in test_peek_end_extents() local 390 struct bkey_i_cookie k; in insert_test_extent() local 444 struct bkey_i_cookie k; in insert_test_overlapping_extent() local 478 struct bkey_s_c k; in test_snapshot_filter() local 542 struct bkey_i_cookie k; in rand_insert() local 564 struct bkey_i_cookie k[8]; in rand_insert_multi() local 597 struct bkey_s_c k; in rand_lookup() local [all …]
|
| D | snapshot.c | 25 struct bkey_s_c k) in bch2_snapshot_tree_to_text() 34 int bch2_snapshot_tree_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_snapshot_tree_validate() 206 struct bkey_s_c k) in bch2_snapshot_to_text() 227 int bch2_snapshot_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_snapshot_validate() 395 static int bch2_snapshot_set_equiv(struct btree_trans *trans, struct bkey_s_c k) in bch2_snapshot_set_equiv() 491 struct bkey_s_c k; in bch2_snapshot_tree_master_subvol() local 532 struct bkey_s_c k) in check_snapshot_tree() 688 struct bkey_s_c k, in snapshot_tree_ptr_repair() 742 struct bkey_s_c k) in check_snapshot() 910 struct bkey_s_c k; in check_snapshot_exists() local [all …]
|
| D | fsck.c | 121 struct bkey_s_c k; in lookup_first_inode() local 144 struct bkey_s_c k; in lookup_inode() local 167 struct bkey_s_c k = bch2_hash_lookup_in_snapshot(trans, &iter, bch2_dirent_hash_desc, in lookup_dirent_in_snapshot() local 341 struct bkey_s_c k = bch2_bkey_get_iter(trans, &iter, BTREE_ID_dirents, in maybe_delete_dirent() local 354 struct bkey_i *k = bch2_trans_kmalloc(trans, sizeof(*k)); in maybe_delete_dirent() local 438 struct bkey_s_c k; in reattach_inode() local 616 struct bkey_s_c k = bch2_btree_iter_peek_prev(&iter); in reconstruct_inode() local 813 struct bkey_s_c k; in get_inodes_all_snapshots() local 844 lookup_inode_for_snapshot(struct bch_fs *c, struct inode_walker *w, struct bkey_s_c k) in lookup_inode_for_snapshot() 888 struct bkey_s_c k) in walk_inode() [all …]
|
| D | bset.h | 297 bch2_bkey_to_bset_inlined(struct btree *b, struct bkey_packed *k) in bch2_bkey_to_bset_inlined() 316 bch2_bkey_prev_all(struct btree *b, struct bset_tree *t, struct bkey_packed *k) in bch2_bkey_prev_all() 322 bch2_bkey_prev(struct btree *b, struct bset_tree *t, struct bkey_packed *k) in bch2_bkey_prev() 422 struct bkey_packed *k; in bch2_btree_node_iter_peek() local 451 #define for_each_btree_node_key(b, k, iter) \ argument 456 #define for_each_btree_node_key_unpack(b, k, iter, unpacked) \ argument 467 struct bkey_packed *k, in btree_keys_account_key() 480 struct bkey_packed *k, in btree_keys_account_val_delta()
|
| D | backpointers.c | 19 struct bkey_s_c k, in extent_matches_bp() 51 int bch2_backpointer_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_backpointer_validate() 93 void bch2_backpointer_k_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c k) in bch2_backpointer_k_to_text() 110 void bch2_backpointer_swab(struct bkey_s k) in bch2_backpointer_swab() 177 struct bkey_s_c k; in bch2_bucket_backpointer_mod_nowritebuffer() local 231 struct bkey_s_c k; in bch2_get_next_backpointer() local 271 struct bkey_s_c k) in backpointer_not_found() 327 struct bkey_s_c k = bch2_btree_iter_peek_slot(iter); in bch2_backpointer_get_key() local 392 struct bkey_s_c k) in bch2_check_btree_backpointer() 663 struct bkey_s_c k) in check_extent_to_backpointers() [all …]
|
| D | str_hash.h | 143 static inline bool is_visible_key(struct bch_hash_desc desc, subvol_inum inum, struct bkey_s_c k) in is_visible_key() 160 struct bkey_s_c k; in bch2_hash_lookup_in_snapshot() local 205 struct bkey_s_c k; in bch2_hash_hole() local 231 struct bkey_s_c k; in bch2_hash_needs_whiteout() local 264 struct bkey_s_c k; in bch2_hash_set_or_get_in_snapshot() local 323 struct bkey_s_c k = bch2_hash_set_or_get_in_snapshot(trans, &iter, desc, info, inum, in bch2_hash_set_in_snapshot() local 385 struct bkey_s_c k = bch2_hash_lookup(trans, &iter, desc, info, inum, key, in bch2_hash_delete() local
|
| D | btree_iter.c | 144 struct bkey_packed *p, *k; in bch2_btree_path_verify_level() local 277 static int bch2_btree_iter_verify_ret(struct btree_iter *iter, struct bkey_s_c k) in bch2_btree_iter_verify_ret() 368 static inline int bch2_btree_iter_verify_ret(struct btree_iter *iter, struct bkey_s_c k) { return 0… in bch2_btree_iter_verify_ret() 377 struct bkey_packed *k) in btree_node_iter_set_set_pos() 483 struct bkey_packed *k, *k2, *p; in __bch2_btree_node_iter_fix() local 541 struct bkey_packed *k) in __btree_iter_unpack() 568 struct bkey_s_c k = __btree_iter_unpack(trans->c, l, u, in btree_path_level_peek() local 582 struct bkey_s_c k = __btree_iter_unpack(trans->c, l, u, in btree_path_level_prev() local 595 struct bkey_packed *k; in btree_path_advance_to_pos() local 783 struct bkey_packed *k; in btree_path_prefetch() local [all …]
|
| D | disk_accounting.c | 71 static inline void accounting_key_init(struct bkey_i *k, struct disk_accounting_pos *pos, in accounting_key_init() 83 struct disk_accounting_pos *k, in bch2_disk_accounting_mod() 129 int bch2_accounting_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_accounting_validate() 190 void bch2_accounting_key_to_text(struct printbuf *out, struct disk_accounting_pos *k) in bch2_accounting_key_to_text() 225 void bch2_accounting_to_text(struct printbuf *out, struct bch_fs *c, struct bkey_s_c k) in bch2_accounting_to_text() 237 void bch2_accounting_swab(struct bkey_s k) in bch2_accounting_swab() 603 static int accounting_read_key(struct btree_trans *trans, struct bkey_s_c k) in accounting_read_key() 718 struct bkey_s_c k = bkey_i_to_s_c(i->k); in bch2_accounting_read() local 792 struct disk_accounting_pos k; in bch2_accounting_read() local
|
| D | reflink.h | 52 static inline const __le64 *bkey_refcount_c(struct bkey_s_c k) in bkey_refcount_c() 64 static inline __le64 *bkey_refcount(struct bkey_s k) in bkey_refcount()
|
| D | btree_write_buffer.h | 49 enum btree_id btree, struct bkey_i_accounting *k) in bch2_accounting_key_to_wb() 74 enum btree_id btree, struct bkey_i *k) in __bch2_journal_key_to_wb() 90 enum btree_id btree, struct bkey_i *k) in bch2_journal_key_to_wb()
|
| /fs/ubifs/ |
| D | key.h | 103 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() 181 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() 233 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() 333 static inline int key_type_flash(const struct ubifs_info *c, const void *k) in key_type_flash() 345 static inline ino_t key_inum(const struct ubifs_info *c, const void *k) in key_inum() 357 static inline ino_t key_inum_flash(const struct ubifs_info *c, const void *k) in key_inum_flash() 380 static inline uint32_t key_hash_flash(const struct ubifs_info *c, const void *k) in key_hash_flash() 404 const void *k) in key_block_flash()
|