commit | 3880a1b46d87a6b030c31889875befc745d95dff | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Fri Oct 14 14:46:51 2011 -0400 |
committer | Josef Bacik <josef@redhat.com> | Wed Oct 19 15:12:59 2011 -0400 |
tree | b693669e3a58f39e706bca7f2da8a71211be99de | |
parent | b24e03db0df3e9164c9649db12fecc8c2d81b0d1 [diff] |
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>