Btrfs: check if leaf's parent exists before pushing items around
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 22 May 2013 12:07:06 +0000 (12:07 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:58 +0000 (11:29 -0400)
commit33157e05dbd60c3edd30b56d4dfc7755cae787c5
tree2ffe513a580f38f31aad4d16864b9e0828df82eb
parentfdd99c729433ed6ab8d02aa4760c6708a6c5de2a
Btrfs: check if leaf's parent exists before pushing items around

During splitting a leaf, pushing items around to hopefully get some space only
works when we have a parent, ie. we have at least one sibling leaf.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.c