diff options
author | 2010-11-09 14:56:50 +0800 | |
---|---|---|
committer | 2011-01-27 01:04:50 +0800 | |
commit | 120d66eec0dcb966fbd03f743598b2ff2513436b (patch) | |
tree | fc2b1d1e9555f2f9de847ba4134d827613c66e73 /kernel/irq/manage.c | |
parent | btrfs: Update stats when allocating from a cluster (diff) | |
download | wireguard-linux-120d66eec0dcb966fbd03f743598b2ff2513436b.tar.xz wireguard-linux-120d66eec0dcb966fbd03f743598b2ff2513436b.zip |
btrfs: Add a helper try_merge_free_space()
When adding a new extent, we'll firstly see if we can merge
this extent to the left or/and right extent. Extract this as
a helper try_merge_free_space().
As a side effect, we fix a small bug that if the new extent
has non-bitmap left entry but is unmergeble, we'll directly
link the extent without trying to drop it into bitmap.
This also prepares for the next patch.
Reviewed-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'kernel/irq/manage.c')
0 files changed, 0 insertions, 0 deletions