*/
#include <linux/pagemap.h>
+#include <linux/log2.h>
#include "btree.h"
tree->depth = be16_to_cpu(head->depth);
size = tree->node_size;
- if (!size || size & (size - 1))
+ if (!is_power_of_2(size))
goto fail_page;
if (!tree->node_count)
goto fail_page;