Displaying 1 result from an estimated 1 matches for "setup_cluster_bitmap".
2011 May 25
0
[PATCH] Btrfs: cache bitmaps when searching for a cluster
...list_add_tail(&entry->list, bitmaps);
continue;
+ }
+
/*
* we haven''t filled the empty size and the window is
* very large. reset and try again
@@ -2157,6 +2164,7 @@ static int setup_cluster_no_bitmap(struct btrfs_block_group_cache *block_group,
*/
static int setup_cluster_bitmap(struct btrfs_block_group_cache *block_group,
struct btrfs_free_cluster *cluster,
+ struct list_head *bitmaps,
u64 offset, u64 bytes, u64 min_bytes)
{
struct btrfs_free_space *entry;
@@ -2166,12 +2174,41 @@ static int setup_cluster_bitmap(struct btrfs_block_group_cache *block_group,...