]> 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)
commitec88a6624bf3f11fe26f60f37b57cf91c55763e1
treeb693669e3a58f39e706bca7f2da8a71211be99de
parentcb4d60f9e3ccf13526208025f344c6766b696514
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