summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io_read.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-08-01 05:56:04 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-09 15:41:48 +0200
commitc7652f253a6d590f5263b0f21ff78f58875ab412 (patch)
tree4f8a1d5e8fae1193275c150b1891f1562edcaeaf /fs/bcachefs/io_read.c
parentbcachefs: Move rebalance_status out of sysfs/internal (diff)
downloadlinux-c7652f253a6d590f5263b0f21ff78f58875ab412.tar.xz
linux-c7652f253a6d590f5263b0f21ff78f58875ab412.zip
bcachefs: promote_whole_extents is now a normal option
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_read.c')
-rw-r--r--fs/bcachefs/io_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io_read.c b/fs/bcachefs/io_read.c
index 808017873d07..ce27ba1f0b54 100644
--- a/fs/bcachefs/io_read.c
+++ b/fs/bcachefs/io_read.c
@@ -286,7 +286,7 @@ static struct promote_op *promote_alloc(struct btree_trans *trans,
*/
bool promote_full = (failed ||
*read_full ||
- READ_ONCE(c->promote_whole_extents));
+ READ_ONCE(c->opts.promote_whole_extents));
/* data might have to be decompressed in the write path: */
unsigned sectors = promote_full
? max(pick->crc.compressed_size, pick->crc.live_size)