aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-02-27 21:46:14 -0500
committerJosef Bacik <jbacik@fb.com>2014-03-10 15:17:12 -0400
commitdc6e320998fb907e4c19032d545d461bfe5040d1 (patch)
treeb21fe7b84d7df8da954cc25a27ef277dfdb63621 /fs/btrfs/inode.c
parent736cfa15e89a654436d4149c109bf1ae09fc67cf (diff)
btrfs: Replace fs_info->fixup_workers workqueue with btrfs_workqueue.
Replace the fs_info->fixup_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 ce3f73046605..0885f333574d 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1748,10 +1748,10 @@ int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end,
1748/* see btrfs_writepage_start_hook for details on why this is required */ 1748/* see btrfs_writepage_start_hook for details on why this is required */
1749struct btrfs_writepage_fixup { 1749struct btrfs_writepage_fixup {
1750 struct page *page; 1750 struct page *page;
1751 struct btrfs_work work; 1751 struct btrfs_work_struct work;
1752}; 1752};
1753 1753
1754static void btrfs_writepage_fixup_worker(struct btrfs_work *work) 1754static void btrfs_writepage_fixup_worker(struct btrfs_work_struct *work)
1755{ 1755{
1756 struct btrfs_writepage_fixup *fixup; 1756 struct btrfs_writepage_fixup *fixup;
1757 struct btrfs_ordered_extent *ordered; 1757 struct btrfs_ordered_extent *ordered;
@@ -1842,9 +1842,9 @@ static int btrfs_writepage_start_hook(struct page *page, u64 start, u64 end)
1842 1842
1843 SetPageChecked(page); 1843 SetPageChecked(page);
1844 page_cache_get(page); 1844 page_cache_get(page);
1845 fixup->work.func = btrfs_writepage_fixup_worker; 1845 btrfs_init_work(&fixup->work, btrfs_writepage_fixup_worker, NULL, NULL);
1846 fixup->page = page; 1846 fixup->page = page;
1847 btrfs_queue_worker(&root->fs_info->fixup_workers, &fixup->work); 1847 btrfs_queue_work(root->fs_info->fixup_workers, &fixup->work);
1848 return -EBUSY; 1848 return -EBUSY;
1849} 1849}
1850 1850