Commit 6fe893ea authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix for sb buffer being misaligned



On old kernels, kmalloc() may return an allocation that's not naturally
aligned - this resulted in a bug where we allocated a bio with not
enough biovecs. Fix this by using buf_pages().

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent c4e382e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment