]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: allow shrink_delalloc flush the needed reclaimed pages
authorJosef Bacik <josef@redhat.com>
Fri, 14 Oct 2011 18:02:10 +0000 (14:02 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:32 +0000 (21:20 -0500)
commit67218451488d6e92c6c541f3a04b6dea9b59dc09
tree66aab100dd0909ca9e47855d4adde1b008f4f10e
parent3b710d17be38772b92a35b89599658f7e5a12765
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: Josef Bacik <josef@redhat.com>
(cherry picked from commit 877da174301dde9062b915da4c8103048be49702)
fs/btrfs/extent-tree.c