Home
last modified time | relevance | path

Searched refs:bch_member (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dsb-members_format.h43 struct bch_member { struct
82 LE64_BITMASK(BCH_MEMBER_STATE, struct bch_member, flags, 0, 4) argument
84 LE64_BITMASK(BCH_MEMBER_DISCARD, struct bch_member, flags, 14, 15)
85 LE64_BITMASK(BCH_MEMBER_DATA_ALLOWED, struct bch_member, flags, 15, 20)
86 LE64_BITMASK(BCH_MEMBER_GROUP, struct bch_member, flags, 20, 28)
87 LE64_BITMASK(BCH_MEMBER_DURABILITY, struct bch_member, flags, 28, 30)
89 struct bch_member, flags, 30, 31)
92 LE64_BITMASK(BCH_MEMBER_NR_READ_ERRORS, struct bch_member, flags[1], 0, 20);
93 LE64_BITMASK(BCH_MEMBER_NR_WRITE_ERRORS,struct bch_member, flags[1], 20, 40);
111 struct bch_member _members[]; //Members are now variable size
[all …]
Dsb-members.c37 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i) in bch2_members_v2_get_mut()
42 static struct bch_member members_v2_get(struct bch_sb_field_members_v2 *mi, int i) in members_v2_get()
44 struct bch_member ret, *p = __bch2_members_v2_get_mut(mi, i); in members_v2_get()
50 static struct bch_member *members_v1_get_mut(struct bch_sb_field_members_v1 *mi, int i) in members_v1_get_mut()
55 static struct bch_member members_v1_get(struct bch_sb_field_members_v1 *mi, int i) in members_v1_get()
57 struct bch_member ret, *p = members_v1_get_mut(mi, i); in members_v1_get()
63 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i) in bch2_sb_member_get()
76 if (le16_to_cpu(mi->member_bytes) < sizeof(struct bch_member)) { in sb_members_v2_resize_entries()
85 void *dst = (void *) mi->_members + (i * sizeof(struct bch_member)); in sb_members_v2_resize_entries()
88 0, (sizeof(struct bch_member) - le16_to_cpu(mi->member_bytes))); in sb_members_v2_resize_entries()
[all …]
Dsb-members.h10 static inline struct bch_member *
18 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i);
19 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i);
304 static inline bool bch2_member_alive(struct bch_member *m) in bch2_member_alive()
312 struct bch_member m = bch2_sb_member_get(sb, dev); in bch2_member_exists()
320 static inline struct bch_member_cpu bch2_mi_to_cpu(struct bch_member *mi) in bch2_mi_to_cpu()
Ddisk_groups.c32 struct bch_member m = bch2_sb_member_get(sb, i); in bch2_sb_disk_groups_validate()
176 struct bch_member m = bch2_sb_member_get(c->disk_sb.sb, i); in bch2_sb_disk_groups_to_cpu()
473 struct bch_member *mi; in __bch2_dev_group_set()
588 struct bch_member m = bch2_sb_member_get(sb, t.dev); in bch2_target_to_text_sb()
Djournal_sb.c23 struct bch_member m = bch2_sb_member_get(sb, sb->dev_idx); in bch2_sb_journal_validate()
105 struct bch_member m = bch2_sb_member_get(sb, sb->dev_idx); in bch2_sb_journal_v2_validate()
Dsuper.c1076 struct bch_member m = bch2_sb_member_get(sb, sb->dev_idx); in bch2_dev_may_add()
1141 struct bch_member m = bch2_sb_member_get(fs->sb, sb->sb->dev_idx); in bch2_dev_in_fs()
1299 struct bch_member *member) in __bch2_dev_alloc()
1367 struct bch_member member = bch2_sb_member_get(c->disk_sb.sb, dev_idx); in bch2_dev_alloc()
1568 struct bch_member *m; in __bch2_dev_set_state()
1612 struct bch_member *m; in bch2_dev_remove()
1730 struct bch_member dev_mi = bch2_sb_member_get(sb.sb, sb.sb->dev_idx); in bch2_dev_add()
1924 struct bch_member *m; in bch2_dev_resize()
Dopts.c656 void (*set_sb)(struct bch_member *, u64);
690 struct bch_member *m = bch2_members_v2_get_mut(sb, dev_idx); in __bch2_opt_set_sb()
Djournal_io.c25 struct bch_member *m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in bch2_journal_pos_from_member_info_set()
36 struct bch_member m = bch2_sb_member_get(c->disk_sb.sb, ca->dev_idx); in bch2_journal_pos_from_member_info_resume()
Drecovery.c1011 struct bch_member *m; in bch2_fs_initialize()
Dsuper-io.c549 struct bch_member m = bch2_sb_member_get(src, ca->dev_idx); in bch2_sb_update()
Dalloc_background.c2193 struct bch_member *m; in bch2_dev_freespace_init()