HomeFreeBSD

Use is_vmalloc_addr() in vdev_disk.c

Description

Use is_vmalloc_addr() in vdev_disk.c

The initial port of ZFS to Linux required a way to identify virtual
memory to make IO to virtual memory backed slabs work, so kmem_virt()
was created. Linux 2.6.25 introduced is_vmalloc_addr(), which is
logically equivalent to kmem_virt(). Support for kernels before 2.6.26
was later dropped and more recently, support for kernels before Linux
2.6.32 has been dropped. We retire kmem_virt() in favor of
is_vmalloc_addr() to cleanup the code.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Richard Yao <ryao@gentoo.org>Authored on Nov 3 2014, 2:42 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 16 2015, 10:28 PM
Parents
rG92119cc259ee: Mark IO pipeline with PF_FSTRANS
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG71f8548ea443: Use is_vmalloc_addr() in vdev_disk.c (authored by Richard Yao <ryao@gentoo.org>).Jan 16 2015, 10:28 PM