summaryrefslogtreecommitdiff
path: root/fs/bcachefs/alloc_background.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-11 00:29:39 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-07-15 02:00:16 +0300
commit7554a8bb6ddeeca87fa8abd1d9766111477a6643 (patch)
tree289b73e37804d7d5ba45b338d774ae18f6d7558d /fs/bcachefs/alloc_background.h
parent95924420b038a0d025c4d16c75be2a858e7c09df (diff)
downloadlinux-7554a8bb6ddeeca87fa8abd1d9766111477a6643.tar.xz
bcachefs: Ensure buffered writes write as much as they can
This adds a new helper, bch2_folio_reservation_get_partial(), which reserves as many blocks as possible and may return partial success. __bch2_buffered_write() is switched to the new helper - this fixes fstests generic/275, the write until -ENOSPC test. generic/230 now fails: this appears to be a test bug, where xfs_io isn't looping after a partial write to get the error code. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_background.h')
0 files changed, 0 insertions, 0 deletions