bcachefs: Fix for sb buffer being misaligned
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 8 Aug 2023 00:44:56 +0000 (20:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:10 +0000 (17:10 -0400)
commit6fe893eade864665c0956a2ac2eff78b86dc8145
tree499691b030f7ee84c37fecbd6e087dedaa67536b
parentc4e382e234778197c95c5553024e0b3f93103382
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: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c