Skip to content
Commit c7cfb8a5 authored by Wang Shilong's avatar Wang Shilong Committed by Chris Mason
Browse files

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: default avatarWang Shilong <wangshilong1991@gmail.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent df95e7f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment