diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-02-27 21:46:12 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fb.com> | 2014-03-10 15:17:10 -0400 |
commit | e66f0bb14465371d4c86fa70cff2acc331efa1fb (patch) | |
tree | 90a1d4009e0a486ccf60361d48eaa7a9335d84a1 /fs/btrfs/extent-tree.c | |
parent | d05a33ac265c62d4be35788dd978b2665033f077 (diff) |
btrfs: Replace fs_info->cache_workers workqueue with btrfs_workqueue.
Replace the fs_info->cache_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/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 32312e09f0f5..bb58082f6d61 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -378,7 +378,7 @@ static u64 add_new_free_space(struct btrfs_block_group_cache *block_group, | |||
378 | return total_added; | 378 | return total_added; |
379 | } | 379 | } |
380 | 380 | ||
381 | static noinline void caching_thread(struct btrfs_work *work) | 381 | static noinline void caching_thread(struct btrfs_work_struct *work) |
382 | { | 382 | { |
383 | struct btrfs_block_group_cache *block_group; | 383 | struct btrfs_block_group_cache *block_group; |
384 | struct btrfs_fs_info *fs_info; | 384 | struct btrfs_fs_info *fs_info; |
@@ -549,7 +549,7 @@ static int cache_block_group(struct btrfs_block_group_cache *cache, | |||
549 | caching_ctl->block_group = cache; | 549 | caching_ctl->block_group = cache; |
550 | caching_ctl->progress = cache->key.objectid; | 550 | caching_ctl->progress = cache->key.objectid; |
551 | atomic_set(&caching_ctl->count, 1); | 551 | atomic_set(&caching_ctl->count, 1); |
552 | caching_ctl->work.func = caching_thread; | 552 | btrfs_init_work(&caching_ctl->work, caching_thread, NULL, NULL); |
553 | 553 | ||
554 | spin_lock(&cache->lock); | 554 | spin_lock(&cache->lock); |
555 | /* | 555 | /* |
@@ -640,7 +640,7 @@ static int cache_block_group(struct btrfs_block_group_cache *cache, | |||
640 | 640 | ||
641 | btrfs_get_block_group(cache); | 641 | btrfs_get_block_group(cache); |
642 | 642 | ||
643 | btrfs_queue_worker(&fs_info->caching_workers, &caching_ctl->work); | 643 | btrfs_queue_work(fs_info->caching_workers, &caching_ctl->work); |
644 | 644 | ||
645 | return ret; | 645 | return ret; |
646 | } | 646 | } |