Skip to content
Commit 877da174 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: allow shrink_delalloc flush the needed reclaimed pages



Currently we only allow a maximum of 2 megabytes of pages to be flushed at a
time.  This was ok before, but now we have overcommit which will screw us in a
heartbeat if we are quickly filling the disk.  So instead pick either 2
megabytes or the number of pages we need to reclaim to be safe again, which ever
is larger.  Thanks,

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent f104d044
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment