debugfs: fix automount d_fsdata usage
[linux-2.6-microblaze.git] / fs / debugfs / internal.h
index 92af8ae..f7c489b 100644 (file)
@@ -17,8 +17,14 @@ extern const struct file_operations debugfs_full_proxy_file_operations;
 
 struct debugfs_fsdata {
        const struct file_operations *real_fops;
-       refcount_t active_users;
-       struct completion active_users_drained;
+       union {
+               /* automount_fn is used when real_fops is NULL */
+               debugfs_automount_t automount;
+               struct {
+                       refcount_t active_users;
+                       struct completion active_users_drained;
+               };
+       };
 };
 
 /*