From: Wang Shilong Date: Wed, 24 Dec 2014 06:45:30 +0000 (+0800) Subject: Btrfs: call inode_dec_link_count() on mkdir error path X-Git-Tag: fixes-v4.0-rc1~327^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7cfb8a5405a34777d670f7a5441bb2c7ca9730f;p=pandora-kernel.git Btrfs: call inode_dec_link_count() on mkdir error path In btrfs_mkdir(), if it fails to create dir, we should clean up existed items, setting inode's link properly to make sure it could be cleaned up properly. Signed-off-by: Wang Shilong Signed-off-by: Chris Mason --- Reading git-diff-tree failed