]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: handle preemptive delalloc flushing slightly differently
authorJosef Bacik <josef@toxicpanda.com>
Wed, 28 Apr 2021 17:38:48 +0000 (13:38 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jun 2021 13:19:04 +0000 (15:19 +0200)
commit56bdb858df5bdfd518b886d8d2d68d1f8e72d1d5
tree2e33d920227c00501c5c08af993791ae558b79e7
parent7920b7f4926a57394a0a3d2e83acc664f7eb527d
btrfs: handle preemptive delalloc flushing slightly differently

If we decide to flush delalloc from the preemptive flusher, we really do
not want to wait on ordered extents, as it gains us nothing.  However
there was logic to go ahead and wait on ordered extents if there was
more ordered bytes than delalloc bytes.  We do not want this behavior,
so pass through whether this flushing is for preemption, and do not wait
for ordered extents if that's the case.  Also break out of the shrink
loop after the first flushing, as we just want to one shot shrink
delalloc.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c