Repository navigation
Commit 3880a1b
Josef Bacik
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>1 parent b24e03d commit 3880a1b
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2790 | 2790 | | |
2791 | 2791 | | |
2792 | 2792 | | |
2793 | | - | |
| 2793 | + | |
| 2794 | + | |
2794 | 2795 | | |
2795 | 2796 | | |
2796 | 2797 | | |
| |||
2895 | 2896 | | |
2896 | 2897 | | |
2897 | 2898 | | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
2898 | 2905 | | |
2899 | 2906 | | |
2900 | 2907 | | |
| |||
0 commit comments