aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-02-27 21:46:09 -0500
committerJosef Bacik <jbacik@fb.com>2014-03-10 15:17:07 -0400
commita44903abe9dc23ffa305898368a7a910dbae13c5 (patch)
tree926814c93112bf608fa3db44ed33e0eb4562bd7e /fs/btrfs/inode.c
parenta8c93d4ef6f6727764a61a2ee1c1878a755637c5 (diff)
btrfs: Replace fs_info->flush_workers with btrfs_workqueue.
Replace the fs_info->submit_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Tested-by: David Sterba <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a41a5a7aa3cb..6c043bed0c32 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8386,7 +8386,7 @@ out_notrans:
8386 return ret; 8386 return ret;
8387} 8387}
8388 8388
8389static void btrfs_run_delalloc_work(struct btrfs_work *work) 8389static void btrfs_run_delalloc_work(struct btrfs_work_struct *work)
8390{ 8390{
8391 struct btrfs_delalloc_work *delalloc_work; 8391 struct btrfs_delalloc_work *delalloc_work;
8392 struct inode *inode; 8392 struct inode *inode;
@@ -8424,7 +8424,7 @@ struct btrfs_delalloc_work *btrfs_alloc_delalloc_work(struct inode *inode,
8424 work->inode = inode; 8424 work->inode = inode;
8425 work->wait = wait; 8425 work->wait = wait;
8426 work->delay_iput = delay_iput; 8426 work->delay_iput = delay_iput;
8427 work->work.func = btrfs_run_delalloc_work; 8427 btrfs_init_work(&work->work, btrfs_run_delalloc_work, NULL, NULL);
8428 8428
8429 return work; 8429 return work;
8430} 8430}
@@ -8476,8 +8476,8 @@ static int __start_delalloc_inodes(struct btrfs_root *root, int delay_iput)
8476 goto out; 8476 goto out;
8477 } 8477 }
8478 list_add_tail(&work->list, &works); 8478 list_add_tail(&work->list, &works);
8479 btrfs_queue_worker(&root->fs_info->flush_workers, 8479 btrfs_queue_work(root->fs_info->flush_workers,
8480 &work->work); 8480 &work->work);
8481 8481
8482 cond_resched(); 8482 cond_resched();
8483 spin_lock(&root->delalloc_lock); 8483 spin_lock(&root->delalloc_lock);