Re: any reason kvm_main.c doesn't use debugfs_remove_recursive?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 30, 2013 at 12:06:27PM -0400, Robert P. J. Day wrote:
> 
>  poking around in the KVM code and ran across this in kvm_main.c:
> 
> ... snip ...
> out_dir:
>         debugfs_remove_recursive(kvm_debugfs_dir);
> out:
>         return r;
> }
> 
> static void kvm_exit_debug(void)
> {
>         struct kvm_stats_debugfs_item *p;
> 
>         for (p = debugfs_entries; p->name; ++p)
>                 debugfs_remove(p->dentry);
>         debugfs_remove(kvm_debugfs_dir);
> }
> ... snip ...
> 
>   is there any reason why the earlier removal uses the recursive
> removal for debugfs, but the removal in kvm_exit_debug() does it the
> manual, one-file-at-a-time way?  just curious.

Can't see any.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux