Home
last modified time | relevance | path

Searched refs:bkey_s (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.12.1/fs/bcachefs/
Dbkey_methods.h28 void (*swab)(struct bkey_s);
29 bool (*key_normalize)(struct bch_fs *, struct bkey_s);
30 bool (*key_merge)(struct bch_fs *, struct bkey_s, struct bkey_s_c);
32 struct bkey_s_c, struct bkey_s,
36 struct bkey_s);
66 void bch2_bkey_swab_val(struct bkey_s);
68 bool bch2_bkey_normalize(struct bch_fs *, struct bkey_s);
77 bool bch2_bkey_merge(struct bch_fs *, struct bkey_s, struct bkey_s_c);
81 struct bkey_s_c old, struct bkey_s new, in bch2_key_trigger()
107 struct bkey_s new, in bch2_key_trigger_new()
Dbkey_types.h54 struct bkey_s { struct
64 #define bkey_s_null ((struct bkey_s) { .k = NULL }) argument
67 #define bkey_s_err(err) ((struct bkey_s) { .k = ERR_PTR(err) })
70 static inline struct bkey_s bkey_to_s(struct bkey *k) in bkey_to_s()
72 return (struct bkey_s) { .k = k, .v = NULL }; in bkey_to_s()
80 static inline struct bkey_s bkey_i_to_s(struct bkey_i *k) in bkey_i_to_s()
82 return (struct bkey_s) { .k = &k->k, .v = &k->v }; in bkey_i_to_s()
125 struct bkey_s s; \
143 static inline struct bkey_s_##name bkey_s_to_##name(struct bkey_s k) \
Dreflink.h9 bool bch2_reflink_p_merge(struct bch_fs *, struct bkey_s, struct bkey_s_c);
11 struct bkey_s_c, struct bkey_s,
25 struct bkey_s_c, struct bkey_s,
42 struct bkey_s_c, struct bkey_s,
64 static inline __le64 *bkey_refcount(struct bkey_s k) in bkey_refcount()
Dextents.h97 static inline void extent_entry_drop(struct bkey_s k, union bch_extent_entry *entry) in extent_entry_drop()
277 static inline struct bkey_ptrs bch2_bkey_ptrs(struct bkey_s k) in bch2_bkey_ptrs()
421 int, struct bkey_s);
441 bool bch2_extent_merge(struct bch_fs *, struct bkey_s, struct bkey_s_c);
457 bool bch2_reservation_merge(struct bch_fs *, struct bkey_s, struct bkey_s_c);
616 static inline struct bch_extent_ptr *bch2_bkey_has_device(struct bkey_s k, unsigned dev) in bch2_bkey_has_device()
649 void bch2_bkey_drop_ptr_noerror(struct bkey_s, struct bch_extent_ptr *);
650 void bch2_bkey_drop_ptr(struct bkey_s, struct bch_extent_ptr *);
652 void bch2_bkey_drop_device_noerror(struct bkey_s, unsigned);
653 void bch2_bkey_drop_device(struct bkey_s, unsigned);
[all …]
Dbkey_methods.c106 static bool key_type_set_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r) in key_type_set_merge()
318 void bch2_bkey_swab_val(struct bkey_s k) in bch2_bkey_swab_val()
326 bool bch2_bkey_normalize(struct bch_fs *c, struct bkey_s k) in bch2_bkey_normalize()
335 bool bch2_bkey_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r) in bch2_bkey_merge()
458 struct bkey_s u; in __bch2_bkey_compat()
Dextents.c233 struct bkey_s k) in bch2_btree_ptr_v2_compat()
249 bool bch2_extent_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r) in bch2_extent_merge()
420 bool bch2_reservation_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r) in bch2_reservation_merge()
781 void bch2_bkey_drop_ptr_noerror(struct bkey_s k, struct bch_extent_ptr *ptr) in bch2_bkey_drop_ptr_noerror()
819 void bch2_bkey_drop_ptr(struct bkey_s k, struct bch_extent_ptr *ptr) in bch2_bkey_drop_ptr()
853 void bch2_bkey_drop_device(struct bkey_s k, unsigned dev) in bch2_bkey_drop_device()
858 void bch2_bkey_drop_device_noerror(struct bkey_s k, unsigned dev) in bch2_bkey_drop_device_noerror()
965 bch2_extent_has_ptr(struct bkey_s_c k1, struct extent_ptr_decoded p1, struct bkey_s k2) in bch2_extent_has_ptr()
995 struct bkey_s k, in bch2_extent_ptr_set_cached()
1035 bool bch2_extent_normalize(struct bch_fs *c, struct bkey_s k) in bch2_extent_normalize()
[all …]
Dreflink.c57 bool bch2_reflink_p_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r) in bch2_reflink_p_merge()
243 struct bkey_s new, in bch2_trigger_reflink_p()
277 bool bch2_reflink_v_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r)
287 check_indirect_extent_deleting(struct bkey_s new, in check_indirect_extent_deleting()
300 struct bkey_s_c old, struct bkey_s new, in bch2_trigger_reflink_v()
331 struct bkey_s_c old, struct bkey_s new, in bch2_trigger_indirect_inline_data()
Dalloc_background.h252 void bch2_alloc_v4_swab(struct bkey_s);
308 struct bkey_s_c, struct bkey_s,
Dsubvolume.h16 struct bkey_s_c, struct bkey_s,
Dbuckets.h283 struct bkey_s_c, struct bkey_s,
286 struct bkey_s_c, struct bkey_s,
Dmigrate.c21 static int drop_dev_ptrs(struct bch_fs *c, struct bkey_s k, in drop_dev_ptrs()
Dbackpointers.h24 void bch2_backpointer_swab(struct bkey_s);
Dbkey.h480 static inline struct bkey_s __bkey_disassemble(const struct btree *b, in __bkey_disassemble()
486 return (struct bkey_s) { .k = u, .v = bkeyp_val(&b->format, k), }; in __bkey_disassemble()
Dec.h15 struct bkey_s_c, struct bkey_s,
Dinode.h31 struct bkey_s_c, struct bkey_s,
Dsnapshot.h24 struct bkey_s_c, struct bkey_s,
Ddisk_accounting.h88 void bch2_accounting_swab(struct bkey_s);
Dinode.c587 static inline void bkey_inode_flags_set(struct bkey_s k, u64 f) in bkey_inode_flags_set()
669 struct bkey_s k, in update_inode_has_children()
723 struct bkey_s new, in bch2_trigger_inode()
Dbuckets.c846 struct bkey_s_c old, struct bkey_s new, in bch2_trigger_extent()
941 struct bkey_s_c old, struct bkey_s new, in bch2_trigger_reservation()
Dbtree_gc.c64 static struct bkey_s unsafe_bkey_s_c_to_s(struct bkey_s_c k) in unsafe_bkey_s_c_to_s()
66 return (struct bkey_s) {{{ in unsafe_bkey_s_c_to_s()
Dsubvolume.c255 struct bkey_s_c old, struct bkey_s new, in bch2_subvolume_trigger()
Dbtree_io.c857 struct bkey_s u = __bkey_disassemble(b, k, &tmp); in bkey_packed_valid()
874 struct bkey_s u; in validate_bset_keys()
1217 struct bkey_s u = __bkey_disassemble(b, k, &tmp); in bch2_btree_node_read_done()
Ddisk_accounting.c237 void bch2_accounting_swab(struct bkey_s k) in bch2_accounting_swab()
Dbackpointers.c110 void bch2_backpointer_swab(struct bkey_s k) in bch2_backpointer_swab()
Dalloc_background.c322 void bch2_alloc_v4_swab(struct bkey_s k) in bch2_alloc_v4_swab()
831 struct bkey_s_c old, struct bkey_s new, in bch2_trigger_alloc()

12