]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/btrfs/delayed-inode.c
btrfs: Replace fs_info->delayed_workers workqueue with btrfs_workqueue.
[mirror_ubuntu-bionic-kernel.git] / fs / btrfs / delayed-inode.c
index 451b00c86f6c0a038ed532f29855009abaa1d8a3..76e85d66801ff436f20bd282a9980289a3f1a15e 100644 (file)
@@ -1318,10 +1318,10 @@ void btrfs_remove_delayed_node(struct inode *inode)
 struct btrfs_async_delayed_work {
        struct btrfs_delayed_root *delayed_root;
        int nr;
-       struct btrfs_work work;
+       struct btrfs_work_struct work;
 };
 
-static void btrfs_async_run_delayed_root(struct btrfs_work *work)
+static void btrfs_async_run_delayed_root(struct btrfs_work_struct *work)
 {
        struct btrfs_async_delayed_work *async_work;
        struct btrfs_delayed_root *delayed_root;
@@ -1392,11 +1392,11 @@ static int btrfs_wq_run_delayed_node(struct btrfs_delayed_root *delayed_root,
                return -ENOMEM;
 
        async_work->delayed_root = delayed_root;
-       async_work->work.func = btrfs_async_run_delayed_root;
-       async_work->work.flags = 0;
+       btrfs_init_work(&async_work->work, btrfs_async_run_delayed_root,
+                       NULL, NULL);
        async_work->nr = nr;
 
-       btrfs_queue_worker(&root->fs_info->delayed_workers, &async_work->work);
+       btrfs_queue_work(root->fs_info->delayed_workers, &async_work->work);
        return 0;
 }