diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-16 14:23:27 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:50 -0400 |
commit | ffb7c3d370a104d14ad0658b359cdf04ae679f04 (patch) | |
tree | 8bc29b326f11dd7ef8a6cbe5065f3b361b11aefa /fs/bcachefs/super_types.h | |
parent | ded54580bdf18ba3a2b38e7910c54b1c53f007c6 (diff) | |
download | linux-stable-ffb7c3d370a104d14ad0658b359cdf04ae679f04.tar.gz linux-stable-ffb7c3d370a104d14ad0658b359cdf04ae679f04.tar.bz2 linux-stable-ffb7c3d370a104d14ad0658b359cdf04ae679f04.zip |
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.h | 2 |
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 { |