]> www.infradead.org Git - users/hch/dma-mapping.git/commit
bcachefs: bch2_folio_reservation_get_partial() is now better behaved
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 17 Oct 2024 05:05:17 +0000 (01:05 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Oct 2024 04:49:48 +0000 (00:49 -0400)
commit335d318ef5329e0b500e0f3394bbe0a14cd7f99b
tree8146a8a3b390fbf18ae1f827102f1fbd3a1342ff
parent81e0b6c7c1f75c914dede330121391f57f216a6e
bcachefs: bch2_folio_reservation_get_partial() is now better behaved

bch2_folio_reservation_get_partial(), on partial success, will now
return a reservation that's aligned to the filesystem blocksize.

This is a partial fix for fstests generic/299 - fio verify is badly
behaved in the presence of short writes that aren't aligned to its
blocksize.

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