Btrfs: fix wrong size for the reservation of the, snapshot creation
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Sep 2012 10:03:56 +0000 (04:03 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:12 +0000 (15:19 -0400)
commit48c03c4bcfd7a1fcb1e05e9b1db1188cdbecf49a
treeaa89a228922632062ce60e18719e1be0bdb4475a
parent42874b3db7817f662b1d7c6e32f8b63638fa0321
Btrfs: fix wrong size for the reservation of the, snapshot creation

We should insert/update 6 items(root ref, root backref, dir item, dir index,
root item and parent inode) when creating a snapshot, not 5 items, fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c