summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-12-16 22:23:27 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:50 +0300
commitffb7c3d370a104d14ad0658b359cdf04ae679f04 (patch)
tree8bc29b326f11dd7ef8a6cbe5065f3b361b11aefa /fs/bcachefs/super_types.h
parentded54580bdf18ba3a2b38e7910c54b1c53f007c6 (diff)
downloadlinux-ffb7c3d370a104d14ad0658b359cdf04ae679f04.tar.xz
bcachefs: Add BCH_BKEY_PTRS_MAX
This now means "the maximum number of pointers within a bkey" - and bch_devs_list is updated to use it instead of BCH_REPLICAS_MAX, since stripes can contain more than BCH_REPLICAS_MAX pointers. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super_types.h')
-rw-r--r--fs/bcachefs/super_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super_types.h b/fs/bcachefs/super_types.h
index 6d0168a73ee4..e3a989e3e9d9 100644
--- a/fs/bcachefs/super_types.h
+++ b/fs/bcachefs/super_types.h
@@ -21,7 +21,7 @@ struct bch_devs_mask {
struct bch_devs_list {
u8 nr;
- u8 devs[BCH_REPLICAS_MAX + 1];
+ u8 devs[BCH_BKEY_PTRS_MAX];
};
struct bch_member_cpu {