commit | 7e6b6465e6efbca3985258996be9c189da96c8bf | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Fri Feb 18 09:21:17 2011 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Mar 10 11:21:49 2011 -0500 |
tree | d4cde91d45865effa20fca9a789813321808c129 | |
parent | b4966b7770349deb05e3dd2bd2c65d2d044abbbb [diff] |
btrfs: fix not enough reserved space btrfs_link() will insert 3 items(inode ref, dir name item and dir index item) into the b+ tree and update 2 items(its inode, and parent's inode) in the b+ tree. So we should reserve space for these 5 items, not 3 items. Reported-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>