Btrfs: Fix incorrect inode nlink in btrfs_link()
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 13 Apr 2011 05:19:21 +0000 (13:19 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 13 Apr 2011 06:25:32 +0000 (14:25 +0800)
commit3153495d8ed6a9bb9f00aea42c18dc488a885dd6
treeee1b57cff9be737fee9d4e35290e3c6586785de8
parentb9e03af0bcc11310f6be4a3951c9ee2c26465011
Btrfs: Fix incorrect inode nlink in btrfs_link()

Link count of the inode is not decreased if btrfs_set_inode_index()
fails.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Singed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/inode.c