Btrfs: add a radix back bit tree
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:

committed by
David Woodhouse

parent
f7922033ef
commit
8ef97622ca
15
fs/btrfs/bit-radix.h
Normal file
15
fs/btrfs/bit-radix.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __BIT_RADIX__
|
||||
#define __BIT_RADIX__
|
||||
#include <linux/radix-tree.h>
|
||||
|
||||
int set_radix_bit(struct radix_tree_root *radix, unsigned long bit);
|
||||
int test_radix_bit(struct radix_tree_root *radix, unsigned long bit);
|
||||
int clear_radix_bit(struct radix_tree_root *radix, unsigned long bit);
|
||||
int find_first_radix_bit(struct radix_tree_root *radix, unsigned long *retbits,
|
||||
int nr);
|
||||
|
||||
static inline void init_bit_radix(struct radix_tree_root *radix)
|
||||
{
|
||||
INIT_RADIX_TREE(radix, GFP_NOFS);
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user