summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-10-14 20:02:10 +0200
committerJosef Bacik <josef@redhat.com>2011-10-19 21:12:58 +0200
commit877da174301dde9062b915da4c8103048be49702 (patch)
treed7110b64088d6e14e86cfeb02c483dd48c303c56 /fs/btrfs/transaction.c
parentBtrfs: wait for ordered extents if we're in trouble when shrinking delalloc (diff)
downloadlinux-877da174301dde9062b915da4c8103048be49702.tar.xz
linux-877da174301dde9062b915da4c8103048be49702.zip
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>
Diffstat (limited to 'fs/btrfs/transaction.c')
0 files changed, 0 insertions, 0 deletions