search for: btrfs_alloc_from_bitmap

Displaying 2 results from an estimated 2 matches for "btrfs_alloc_from_bitmap".

2009 Jul 31
1
[PATCH] Btrfs: make sure we find a bitmap entry
...returned with NULL because we couldn''t find a free space extent that had that offset. This is fixed by making sure that if we fail to find the entry, we re-search again with bitmap_only set to 1 and do an offset_to_bitmap so we can get the appropriate bitmap. A similar problem happens in btrfs_alloc_from_bitmap for the clustering code, but that is not as bad since we will just go and redo our cluster allocation. Also this adds some debugging stuff to make sure that the free space we are trying to remove from the bitmap is in fact there. This can probably go away after a while, but since this code is onl...
2012 Jan 23
0
[PATCH] Btrfs: use cluster->window_start when allocating from a cluster bitmap
...ff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 35bfe3c..43e75f2 100644 --- a/fs/btrfs/free-space-cache.c +++ b/fs/btrfs/free-space-cache.c @@ -2242,7 +2242,7 @@ u64 btrfs_alloc_from_cluster(struct btrfs_block_group_cache *block_group, if (entry->bitmap) { ret = btrfs_alloc_from_bitmap(block_group, cluster, entry, bytes, - min_start); + cluster->window_start); if (ret == 0) { node = rb_next(&entry->offset_index); if (!node) -- 1.7.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in...