Removed erroneous zfs_inode_destroy() calls from zfs_rmnode().
authorGunnar Beutner <gunnar@beutner.name>
Thu, 16 Jun 2011 18:59:56 +0000 (20:59 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 20 Jun 2011 17:30:17 +0000 (10:30 -0700)
commit6f0cf71e0d191abb850a45f6d216cb5af158a6dd
treed5d52fab9a839bf17b6d945de51f160e36e453a9
parentdf30f56639f96175ba71d83b4456ccf410c46542
Removed erroneous zfs_inode_destroy() calls from zfs_rmnode().

iput_final() already calls zpl_inode_destroy() -> zfs_inode_destroy()
for us after zfs_zinactive(), thus making sure that the inode is
properly cleaned up.

The zfs_inode_destroy() calls in zfs_rmnode() would lead to a
double-free.

Fixes #282
module/zfs/zfs_dir.c