kvm: external module: Use native anon_inodes on RHEL5 if available
commited901b6e2f9ded04fdac388b90420502c10bb3d3
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 23 Jan 2009 18:41:34 +0000 (23 16:41 -0200)
committerAvi Kivity <avi@redhat.com>
Tue, 3 Feb 2009 10:25:23 +0000 (3 12:25 +0200)
tree48343529a678e86ea63d9155c691966c3b59f06a
parentcab9ddf8b10587887a295527168651e0e91d1111
kvm: external module: Use native anon_inodes on RHEL5 if available

Seom RHEL5 kernel versions include anon_inodes. Detect this case and
use the native anon_inodes implementation when available.

This patch also applies to the maint/2.6.29 branch.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
kvm/kernel/anon_inodes.c