]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit21cf967c8dd240b8bfe5e656ac37fb0ec1d3872e
treed52b91b659b22f5f24ba8b8bf42a3a829e335010
parent29a2790aa1843c2685c3e5b51e0cc0cb1a9ad744
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