bcachefs: Add vmalloc fallback for decompress workspace

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2020-05-25 18:47:21 -04:00 committed by Kent Overstreet
parent e5c15444d6
commit 2628cfe3d3

View file

@ -607,7 +607,7 @@ static int __bch2_fs_compress_init(struct bch_fs *c, u64 features)
}
if (!mempool_initialized(&c->decompress_workspace)) {
ret = mempool_init_kmalloc_pool(
ret = mempool_init_kvpmalloc_pool(
&c->decompress_workspace,
1, decompress_workspace_size);
if (ret)