Btrfs: re-work delalloc flushing
authorJosef Bacik <josef@redhat.com>
Fri, 15 Oct 2010 19:18:40 +0000 (15:18 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 22 Oct 2010 19:54:58 +0000 (15:54 -0400)
commit0019f10db6f596f3e14a19f9bd7059a1b85b0853
tree9f295bc2e335a6890ea29bc0830bda43903671d9
parent6d48755d02b150de7f47e7b4753202f2fc9f990f
Btrfs: re-work delalloc flushing

Currently we try and flush delalloc, but we only do that in a sort of weak way,
which works fine in most cases but if we're under heavy pressure we need to be
able to wait for flushing to happen.  Also instead of checking the bytes
reserved in the block_rsv, check the space info since it is more accurate.  The
sync option will be used in a future patch.

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c