[PATCH 4/6] btrfs-progs: Add btrfs_unlink() and btrfs_add_link() functions.

2014-11-25 Thread Qu Wenruo
Add btrfs_unlink() and btrfs_add_link() functions in inode.c, for the incoming btrfs_mkdir() and later inode operations functions. Signed-off-by: Qu Wenruo --- Changlog: v2: Do dir name conflicting check before adding inode_backref or dir_item/index. --- Makefile | 2 +- cmds-check.c

[PATCH 4/6] btrfs-progs: Add btrfs_unlink() and btrfs_add_link() functions.

2014-11-24 Thread Qu Wenruo
Add btrfs_unlink() and btrfs_add_link() functions in inode.c, for the incoming btrfs_mkdir() and later inode operations functions. Signed-off-by: Qu Wenruo --- Makefile | 2 +- cmds-check.c | 7 +- ctree.h | 12 ++ inode.c | 361