Skip to content

Commit

Permalink
[XFS] Use xfs_idestroy() to cleanup an inode.
Browse files Browse the repository at this point in the history
SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31927a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
  • Loading branch information
Lachlan McIlroy committed Oct 30, 2008
1 parent be8b78a commit d07c60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ xfs_iread(
*/
error = xfs_itobp(mp, tp, ip, &dip, &bp, bno, imap_flags, XFS_BUF_LOCK);
if (error) {
kmem_zone_free(xfs_inode_zone, ip);
xfs_idestroy(ip);
return error;
}

Expand Down

0 comments on commit d07c60e

Please sign in to comment.