]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: reserve some space for an orphan item when unlinking
authorJosef Bacik <josef@redhat.com>
Fri, 14 Oct 2011 18:46:51 +0000 (14:46 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:59 +0000 (15:12 -0400)
commit9fac3d6f5967ab337c526df0f2a14a7edd1c444a
treeb693669e3a58f39e706bca7f2da8a71211be99de
parent3a99a4d719868870fa63ec3eebe9fd8a9490b2af
Btrfs: reserve some space for an orphan item when unlinking

In __unlink_start_trans() if we don't have enough room for a reservation we will
check to see if the unlink will free up space.  If it does that's great, but we
will still could add an orphan item, so we need to reserve enough space to add
the orphan item.  Do this and migrate the space the global reserve so it all
works out right.  Thanks,

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