KVM: Rename debugfs_dir to kvm_debugfs_dir
authorHollis Blanchard <hollisb@us.ibm.com>
Tue, 15 Apr 2008 21:05:42 +0000 (16:05 -0500)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 15:21:36 +0000 (18:21 +0300)
It's a globally exported symbol now.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c
virt/kvm/kvm_trace.c

index 81d4c3305a28e6e653d90735e072f90cba769489..4e16682ee8bbe4971a45deeda461c47139d62292 100644 (file)
@@ -315,7 +315,7 @@ struct kvm_stats_debugfs_item {
        struct dentry *dentry;
 };
 extern struct kvm_stats_debugfs_item debugfs_entries[];
-extern struct dentry *debugfs_dir;
+extern struct dentry *kvm_debugfs_dir;
 
 #ifdef CONFIG_KVM_TRACE
 int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg);
index 0998455749019051460e35d69a22ed40310ed6ef..d3cb4cc0a5aa22db9238f8904371087877cf4b20 100644 (file)
@@ -60,7 +60,7 @@ EXPORT_SYMBOL_GPL(kvm_vcpu_cache);
 
 static __read_mostly struct preempt_ops kvm_preempt_ops;
 
-struct dentry *debugfs_dir;
+struct dentry *kvm_debugfs_dir;
 
 static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
                           unsigned long arg);
@@ -1392,9 +1392,9 @@ static void kvm_init_debug(void)
 {
        struct kvm_stats_debugfs_item *p;
 
-       debugfs_dir = debugfs_create_dir("kvm", NULL);
+       kvm_debugfs_dir = debugfs_create_dir("kvm", NULL);
        for (p = debugfs_entries; p->name; ++p)
-               p->dentry = debugfs_create_file(p->name, 0444, debugfs_dir,
+               p->dentry = debugfs_create_file(p->name, 0444, kvm_debugfs_dir,
                                                (void *)(long)p->offset,
                                                stat_fops[p->kind]);
 }
@@ -1405,7 +1405,7 @@ static void kvm_exit_debug(void)
 
        for (p = debugfs_entries; p->name; ++p)
                debugfs_remove(p->dentry);
-       debugfs_remove(debugfs_dir);
+       debugfs_remove(kvm_debugfs_dir);
 }
 
 static int kvm_suspend(struct sys_device *dev, pm_message_t state)
index 5425440c54bffb9d8fff30cae8ac5d276dd9279e..0e495470788da6b83061e2f9c6192ec76b809fb2 100644 (file)
@@ -159,12 +159,12 @@ static int do_kvm_trace_enable(struct kvm_user_trace_setup *kuts)
 
        r = -EIO;
        atomic_set(&kt->lost_records, 0);
-       kt->lost_file = debugfs_create_file("lost_records", 0444, debugfs_dir,
+       kt->lost_file = debugfs_create_file("lost_records", 0444, kvm_debugfs_dir,
                                            kt, &kvm_trace_lost_ops);
        if (!kt->lost_file)
                goto err;
 
-       kt->rchan = relay_open("trace", debugfs_dir, kuts->buf_size,
+       kt->rchan = relay_open("trace", kvm_debugfs_dir, kuts->buf_size,
                                kuts->buf_nr, &kvm_relay_callbacks, kt);
        if (!kt->rchan)
                goto err;