Add support for the radix buddy bitmaps

Update mkfs and print to support the buddy allocator that's indexed by
radix blocks.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-08-02 13:29:51 -07:00
parent 4b86256904
commit 6a97aa3c9a
4 changed files with 278 additions and 111 deletions
+5
View File
@@ -104,4 +104,9 @@ __gen_functions(cast, be)
#error "machine is neither BIG_ENDIAN nor LITTLE_ENDIAN"
#endif
static inline void le32_add_cpu(__le32 *val, u32 delta)
{
*val = cpu_to_le32(le32_to_cpu(*val) + delta);
}
#endif