aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2020-10-30 17:29:38 -0400
committerKent Overstreet <[email protected]>2023-10-22 17:08:45 -0400
commitb16fa0bae5766748bd682b0829136ca02d6ea3ba (patch)
treefe9abd7bab0dac64ba8050ca11c6a3668e0ea4f8
parentdcf141b9e13d261629806aa37e0fa7769d38b789 (diff)
bcachefs: Improve check for when bios are physically contiguous
Signed-off-by: Kent Overstreet <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
-rw-r--r--fs/bcachefs/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/compress.c b/fs/bcachefs/compress.c
index 595d76aa3956..27bbc265d550 100644
--- a/fs/bcachefs/compress.c
+++ b/fs/bcachefs/compress.c
@@ -70,7 +70,7 @@ static struct bbuf __bio_map_or_bounce(struct bch_fs *c, struct bio *bio,
BUG_ON(bvec_iter_sectors(start) > c->sb.encoded_extent_max);
- if (!IS_ENABLED(CONFIG_HIGHMEM) &&
+ if (!PageHighMem(bio_iter_page(bio, start)) &&
bio_phys_contig(bio, start))
return (struct bbuf) {
.b = page_address(bio_iter_page(bio, start)) +