kernfs: replace kernfs_node->u.completion with kernfs_root->deactivate_waitq
[cascardo/linux.git] / include / linux / kernfs.h
index 5be9f02..295a3bf 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/lockdep.h>
 #include <linux/rbtree.h>
 #include <linux/atomic.h>
-#include <linux/completion.h>
+#include <linux/wait.h>
 
 struct file;
 struct dentry;
@@ -92,7 +92,6 @@ struct kernfs_node {
        struct rb_node          rb;
 
        union {
-               struct completion       *completion;
                struct kernfs_node      *removed_list;
        } u;
 
@@ -133,6 +132,7 @@ struct kernfs_root {
        /* private fields, do not use outside kernfs proper */
        struct ida              ino_ida;
        struct kernfs_dir_ops   *dir_ops;
+       wait_queue_head_t       deactivate_waitq;
 };
 
 struct kernfs_open_file {