mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
When writing into a block via an O_DIRECT open file description, we would first flush every dirty block *except* the one we're about to write into. The purpose of flushing is to ensure coherency when mixing direct and indirect accesses to the same file. This patch fixes the issue by only flushing the affected block. Our behavior was totally backwards and could end up doing a lot of unnecessary work while avoiding the work that actually mattered.
10 KiB
10 KiB