26 #ifndef _CHAINALLOC_H_
27 #define _CHAINALLOC_H_
44 #define OCFS2_AC_USE_LOCAL 1
45 #define OCFS2_AC_USE_MAIN 2
46 #define OCFS2_AC_USE_INODE 3
47 #define OCFS2_AC_USE_META 4
93 u16 *suballoc_bit_start,
98 struct buffer_head *parent_fe_bh,
120 struct inode *alloc_inode,
121 struct buffer_head *alloc_bh,
126 struct inode *inode_alloc_inode,
127 struct buffer_head *inode_alloc_bh,
130 struct inode *bitmap_inode,
131 struct buffer_head *bitmap_bh,
133 unsigned int num_clusters);
135 struct inode *bitmap_inode,
136 struct buffer_head *bitmap_bh,
138 unsigned int num_clusters);
140 static inline u64 ocfs2_which_suballoc_group(
u64 block,
unsigned int bit)
147 static inline u32 ocfs2_cluster_from_desc(
struct ocfs2_super *osb,
160 return ocfs2_blocks_to_clusters(osb->
sb, bg_blkno);
163 static inline int ocfs2_is_cluster_bitmap(
struct inode *
inode)
188 struct buffer_head *bh);
195 u64 gd_blkno,
struct buffer_head **bh);
198 u32 clusters_to_add,
u32 extents_to_split,
210 struct buffer_head *parent_fe_bh,