diff options
Diffstat (limited to 'fs/ocfs2/suballoc.h')
| -rw-r--r-- | fs/ocfs2/suballoc.h | 18 | 
1 files changed, 17 insertions, 1 deletions
diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h index b8afabfeede..2d2501767c0 100644 --- a/fs/ocfs2/suballoc.h +++ b/fs/ocfs2/suballoc.h @@ -49,7 +49,7 @@ struct ocfs2_alloc_context {  	/* these are used by the chain search */  	u16    ac_chain; -	int    ac_allow_chain_relink; +	int    ac_disable_chain_relink;  	group_search_t *ac_group_search;  	u64    ac_last_group; @@ -86,6 +86,22 @@ int ocfs2_reserve_clusters(struct ocfs2_super *osb,  			   u32 bits_wanted,  			   struct ocfs2_alloc_context **ac); +int ocfs2_alloc_dinode_update_counts(struct inode *inode, +			 handle_t *handle, +			 struct buffer_head *di_bh, +			 u32 num_bits, +			 u16 chain); +void ocfs2_rollback_alloc_dinode_counts(struct inode *inode, +			 struct buffer_head *di_bh, +			 u32 num_bits, +			 u16 chain); +int ocfs2_block_group_set_bits(handle_t *handle, +			 struct inode *alloc_inode, +			 struct ocfs2_group_desc *bg, +			 struct buffer_head *group_bh, +			 unsigned int bit_off, +			 unsigned int num_bits); +  int ocfs2_claim_metadata(handle_t *handle,  			 struct ocfs2_alloc_context *ac,  			 u32 bits_wanted,  | 
