Btrfs: Fix split_leaf to detect when it is extending an item
authorChris Mason <chris.mason@oracle.com>
Thu, 25 Oct 2007 19:42:57 +0000 (15:42 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commitcc0c55384796b422133ff1f21646835b31590f88
tree152933613a431cce89a5cdcd0c5761688f8e5124
parent65555a06b4d1ae116ce223dc4b82d6068b36df96
Btrfs: Fix split_leaf to detect when it is extending an item

When making room for a new item, it is ok to create an empty leaf, but
when making room to extend an item, split_leaf needs to make sure it
keeps the item we're extending in the path and make sure we don't end up
with an empty leaf.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c