projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcf141b
)
bcachefs: Improve check for when bios are physically contiguous
author
Kent Overstreet
<kent.overstreet@gmail.com>
Fri, 30 Oct 2020 21:29:38 +0000
(17:29 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:45 +0000
(17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/compress.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/compress.c
b/fs/bcachefs/compress.c
index 595d76aa3956bae67711f0fda5db687e37582cc0..27bbc265d550a3887ec40a2a9471dbfef710db57 100644
(file)
--- 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)) +