]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a5211c1a674064343dee4120c9402a4210ed9f5
tree9f295bc2e335a6890ea29bc0830bda43903671d9
parentb700cef4d4b214ac661a80af463142197cf8f1ae
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