HomeFreeBSD

Removed erroneous zfs_inode_destroy() calls from zfs_rmnode().

Description

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

Details

Provenance
Gunnar Beutner <gunnar@beutner.name>Authored on Jun 16 2011, 6:59 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 20 2011, 5:30 PM
Parents
rGdf30f56639f9: Add "ashift" property to zpool create
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6f0cf71e0d19: Removed erroneous zfs_inode_destroy() calls from zfs_rmnode(). (authored by Gunnar Beutner <gunnar@beutner.name>).Jun 20 2011, 5:30 PM