update the allocator
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
@@ -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