bcachefs: Fix initialization of bounce mempools
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 9 May 2020 03:15:42 +0000 (23:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:39 +0000 (17:08 -0400)
commitd9b59a57cc81b1a73ff094401e9d65326cf0156b
tree53c209f633df4df0898a8cf2e3287cadf0f492cf
parentc4dd7871ef71a7327b6b3834e2cdf6777e03eb0a
bcachefs: Fix initialization of bounce mempools

When they were converted to kvpmalloc pools they weren't converted to
pass the actual size of the allocation. Oops.

Also, validate the real length in the zstd decompression path.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/compress.c