commit | 877da174301dde9062b915da4c8103048be49702 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Fri Oct 14 14:02:10 2011 -0400 |
committer | Josef Bacik <josef@redhat.com> | Wed Oct 19 15:12:58 2011 -0400 |
tree | d7110b64088d6e14e86cfeb02c483dd48c303c56 | |
parent | f104d044376aadcee74605d66b8d9dc2e145782c [diff] |
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>