bcachefs: Fix buffered write path for generic/275
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 24 Oct 2022 02:01:50 +0000 (22:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:45 +0000 (17:09 -0400)
commit353448f3ea42e5deec298d6d2c577ade7028b7fd
treeb9e153d091b5a0cce6f644181855bdf8905eed89
parentc167f9e54100179a009051ad6eac1dfb0bcd21f6
bcachefs: Fix buffered write path for generic/275

Per fstests generic/275, on -ENOSPC we're supposed write until the
filesystem is full - i.e. do a partial write instead of failing the full
write.

This is a partial fix for the buffered write path: we'll still fail on a
page boundary.

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