diff options
Diffstat (limited to 'fs/ocfs2/suballoc.h')
-rw-r--r-- | fs/ocfs2/suballoc.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h index 4df159d8f450..e3c13c77f9e8 100644 --- a/fs/ocfs2/suballoc.h +++ b/fs/ocfs2/suballoc.h | |||
@@ -164,10 +164,24 @@ void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac); | |||
164 | * and return that block offset. */ | 164 | * and return that block offset. */ |
165 | u64 ocfs2_which_cluster_group(struct inode *inode, u32 cluster); | 165 | u64 ocfs2_which_cluster_group(struct inode *inode, u32 cluster); |
166 | 166 | ||
167 | /* somewhat more expensive than our other checks, so use sparingly. */ | 167 | /* |
168 | * By default, ocfs2_read_group_descriptor() calls ocfs2_error() when it | ||
169 | * finds a problem. A caller that wants to check a group descriptor | ||
170 | * without going readonly should read the block with ocfs2_read_block[s]() | ||
171 | * and then checking it with this function. This is only resize, really. | ||
172 | * Everyone else should be using ocfs2_read_group_descriptor(). | ||
173 | */ | ||
168 | int ocfs2_check_group_descriptor(struct super_block *sb, | 174 | int ocfs2_check_group_descriptor(struct super_block *sb, |
169 | struct ocfs2_dinode *di, | 175 | struct ocfs2_dinode *di, |
170 | struct ocfs2_group_desc *gd); | 176 | struct buffer_head *bh); |
177 | /* | ||
178 | * Read a group descriptor block into *bh. If *bh is NULL, a bh will be | ||
179 | * allocated. This is a cached read. The descriptor will be validated with | ||
180 | * ocfs2_validate_group_descriptor(). | ||
181 | */ | ||
182 | int ocfs2_read_group_descriptor(struct inode *inode, struct ocfs2_dinode *di, | ||
183 | u64 gd_blkno, struct buffer_head **bh); | ||
184 | |||
171 | int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_extent_tree *et, | 185 | int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_extent_tree *et, |
172 | u32 clusters_to_add, u32 extents_to_split, | 186 | u32 clusters_to_add, u32 extents_to_split, |
173 | struct ocfs2_alloc_context **data_ac, | 187 | struct ocfs2_alloc_context **data_ac, |