diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-14 22:34:03 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:19 +0300 |
commit | e409999069928bc1da79f32e7adff88f981c65a5 (patch) | |
tree | 4677a1da967b76d3e5d04aa3a85af442d0fd6af4 /fs/bcachefs/extents.c | |
parent | 8244f3209b5b49a6bde9921d7825af9f57161b23 (diff) | |
download | linux-e409999069928bc1da79f32e7adff88f981c65a5.tar.xz |
bcachefs: Turn encoded_extent_max into a regular option
It'll now be handled at format time and in sysfs like other options - it
still can only be set at format time, though.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/extents.c')
-rw-r--r-- | fs/bcachefs/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/extents.c b/fs/bcachefs/extents.c index 161ae4fd59d9..3ed724e1fc98 100644 --- a/fs/bcachefs/extents.c +++ b/fs/bcachefs/extents.c @@ -302,7 +302,7 @@ bool bch2_extent_merge(struct bch_fs *c, struct bkey_s l, struct bkey_s_c r) if (lp.crc.csum_type && lp.crc.uncompressed_size + - rp.crc.uncompressed_size > c->sb.encoded_extent_max) + rp.crc.uncompressed_size > (c->opts.encoded_extent_max >> 9)) return false; if (lp.crc.uncompressed_size + rp.crc.uncompressed_size > |