]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: call inode_dec_link_count() on mkdir error path
authorWang Shilong <wangshilong1991@gmail.com>
Wed, 24 Dec 2014 06:45:30 +0000 (14:45 +0800)
committerChris Mason <clm@fb.com>
Fri, 2 Jan 2015 19:47:55 +0000 (14:47 -0500)
commit4d338f2646d86342605bb5ca326b815341a192a0
tree4e960a9e39362a5cd5f6e704b4980e3f4da4004e
parent25d9eb3c44fe59a5d7a33b60b5380974c8cad29a
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 <wangshilong1991@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c