Readd zfs_holey() from OpenSolaris
authorMatthew Ahrens <mahrens@delphix.com>
Mon, 1 Jul 2013 16:24:43 +0000 (09:24 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 2 Jul 2013 16:24:18 +0000 (09:24 -0700)
commitcf91b2b6b2baaca1e56f23c985e3261cd98bd3f0
tree96cb43a75ad5252357a54acba48dfd0f158b0939
parent0a6bef26ec80ee4db5f5340bbc007a45311e0415
Readd zfs_holey() from OpenSolaris

This patch restores the zfs_holey() function from OpenSolaris.
This was removed by commit 3558fd7 because it wasn't clear we
had a use for it in ZoL.  However, this functionality is a
prerequisite for adding SEEK_DATA/SEEK_HOLE support to the ZPL.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Issue #1384
module/zfs/zfs_vnops.c