bcachefs: Fix __bch2_buffered_write() returning -ENOMEM
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 1 Oct 2019 22:51:10 +0000 (18:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:28 +0000 (17:08 -0400)
commit8de819f83446dcdedae572ccc7449e3fa90b2c20
tree8dfc6c5c620efbb92ce88a3a79221ea39d5db8fa
parent6988e85be525b874745824622bae4209c265dc5a
bcachefs: Fix __bch2_buffered_write() returning -ENOMEM

When grab_cache_page_write_begin() fails but we did pin some pages, we
shouldn't return -ENOMEM, we should do a partial write.

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