summaryrefslogtreecommitdiff
path: root/libbcachefs/compress.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-08-24 16:05:04 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2020-08-24 16:25:05 -0400
commitcd9892e543845e045142ed29e4a5a9ce446a205e (patch)
tree1556289a5366d5cdfff32f9669cf748e39ed5063 /libbcachefs/compress.c
parent21ade396535e51503511f42ea06d58e25c0646c5 (diff)
Update bcachefs sources to 10ab39f2fa bcachefs: Improvements to the journal read error paths
Diffstat (limited to 'libbcachefs/compress.c')
-rw-r--r--libbcachefs/compress.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libbcachefs/compress.c b/libbcachefs/compress.c
index 3d75527d..b50d2b0d 100644
--- a/libbcachefs/compress.c
+++ b/libbcachefs/compress.c
@@ -7,7 +7,6 @@
#include "super-io.h"
#include <linux/lz4.h>
-#include <linux/sched/mm.h>
#include <linux/zlib.h>
#include <linux/zstd.h>
@@ -64,7 +63,7 @@ static struct bbuf __bio_map_or_bounce(struct bch_fs *c, struct bio *bio,
struct bbuf ret;
struct bio_vec bv;
struct bvec_iter iter;
- unsigned nr_pages = 0, flags;
+ unsigned nr_pages = 0;
struct page *stack_pages[16];
struct page **pages = NULL;
void *data;
@@ -104,10 +103,7 @@ static struct bbuf __bio_map_or_bounce(struct bch_fs *c, struct bio *bio,
__bio_for_each_segment(bv, bio, iter, start)
pages[nr_pages++] = bv.bv_page;
- flags = memalloc_nofs_save();
data = vmap(pages, nr_pages, VM_MAP, PAGE_KERNEL);
- memalloc_nofs_restore(flags);
-
if (pages != stack_pages)
kfree(pages);