Btrfs: make sure to remove the orphan item from the in-memory list
authorJosef Bacik <josef@redhat.com>
Fri, 4 Mar 2011 19:09:46 +0000 (14:09 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:28 +0000 (14:21 -0400)
commitded5db9de78f963979e1605f859de67626f54693
treed52b91b659b22f5f24ba8b8bf42a3a829e335010
parent66b4ffd110f9b48b8d8c1319ee446b53b8d073bf
Btrfs: make sure to remove the orphan item from the in-memory list

This fixes a problem where if truncate fails the inode will still be on the in
memory orphan list.  This is will make us complain when the inode gets destroyed
because it's still on the orphan list.  So if we fail just remove us from the in
memory list and carry on.

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c