]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: make delalloc inodes be flushed by multi-task
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 25 Oct 2012 09:28:04 +0000 (09:28 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 11 Dec 2012 18:31:37 +0000 (13:31 -0500)
commit09042192ff3ab8530e9db169f2c751ff635e25c1
tree98cd76ca5dd2e7c93adc1bd363fefaa803acc824
parentac05aa03b3da3e85650357553f087bb31b60dd10
Btrfs: make delalloc inodes be flushed by multi-task

This patch introduce a new worker pool named "flush_workers", and if we
want to force all the inode with pending delalloc to the disks, we can
queue those inodes into the work queue of the worker pool, in this way,
those inodes will be flushed by multi-task.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c