Btrfs: free inode struct when btrfs_new_inode fails
authorShen Feng <shen@cn.fujitsu.com>
Thu, 2 Apr 2009 20:46:06 +0000 (16:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 2 Apr 2009 20:46:06 +0000 (16:46 -0400)
commit09771430f3b46ee27c69daa7ecad82007568e834
treeeb51c0f62c3c0672102cf53a731ca6ed68e1be49
parentb5555f77115bfba3630fefff2d4e68140b644171
Btrfs: free inode struct when btrfs_new_inode fails

btrfs_new_inode doesn't call iput to free the inode
when it fails.

Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c