bcachefs: Fix for __readahead_batch getting partial batch
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 29 Nov 2020 21:00:47 +0000 (16:00 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:48 +0000 (17:08 -0400)
commit89931472c20bee93c6bcb0df7b057edda6473381
tree4313b83081e4e78ff45165e687349f41861131b6
parent33b3b1dc0f685b4542a631a0ca053380613829a6
bcachefs: Fix for __readahead_batch getting partial batch

We were incorrectly ignoring the return value of __readahead_batch,
leading to a null ptr deref in __bch2_page_state_create().

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