#ifndef BTRFS_MISC_H
#define BTRFS_MISC_H
#include <linux/types.h>
#include <linux/bitmap.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/math64.h>
#include <linux/rbtree.h>
#define ENUM_BIT(name) …
static inline void cond_wake_up(struct wait_queue_head *wq)
{ … }
static inline void cond_wake_up_nomb(struct wait_queue_head *wq)
{ … }
static inline u64 mult_perc(u64 num, u32 percent)
{ … }
static inline bool is_power_of_two_u64(u64 n)
{ … }
static inline bool has_single_bit_set(u64 n)
{ … }
struct rb_simple_node { … };
static inline struct rb_node *rb_simple_search(const struct rb_root *root, u64 bytenr)
{ … }
static inline struct rb_node *rb_simple_search_first(const struct rb_root *root,
u64 bytenr)
{ … }
static inline struct rb_node *rb_simple_insert(struct rb_root *root, u64 bytenr,
struct rb_node *node)
{ … }
static inline bool bitmap_test_range_all_set(const unsigned long *addr,
unsigned long start,
unsigned long nbits)
{ … }
static inline bool bitmap_test_range_all_zero(const unsigned long *addr,
unsigned long start,
unsigned long nbits)
{ … }
#endif