Skip to contentSkip to conversation

update the allocator

PATCH New Zheng Yan 1 participant 1 message Sep 25, 2008 Btrfs file system

lore
Share & tools
lore

Zheng Yan

author
#0 lore raw

PATCH 1/4 update the allocator

Hello,

This patch updates the allocator for the new space balancing code. It adds reserved extents accounting, changes a few ENOSPC check, and makes btrfs_find_block_group not return NULL for volumes that have been ebalanced.

Regards
Yan Zheng

---

ctree.h +2 -0
diff -r 4b327f4fcee0 ctree.h
@@ -498,6 +498,7 @@
 	u64 total_bytes;
 	u64 bytes_used;
 	u64 bytes_pinned;
+	u64 bytes_reserved;
 	int full;
 	int force_alloc;
 	struct list_head list;
@@ -519,6 +520,7 @@
 	struct btrfs_block_group_item item;
 	spinlock_t lock;
 	u64 pinned;
+	u64 reserved;
 	u64 flags;
 	int cached;
 	int ro;
extent-tree.c +66 -72

294 lines not on this page · raw message