diff options
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index d9c5251d082..5973f3261b0 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1270,6 +1270,14 @@ extern struct ext4_group_desc * ext4_get_group_desc(struct super_block * sb, | |||
1270 | ext4_group_t block_group, | 1270 | ext4_group_t block_group, |
1271 | struct buffer_head ** bh); | 1271 | struct buffer_head ** bh); |
1272 | extern int ext4_should_retry_alloc(struct super_block *sb, int *retries); | 1272 | extern int ext4_should_retry_alloc(struct super_block *sb, int *retries); |
1273 | struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, | ||
1274 | ext4_group_t block_group); | ||
1275 | extern unsigned ext4_init_block_bitmap(struct super_block *sb, | ||
1276 | struct buffer_head *bh, | ||
1277 | ext4_group_t group, | ||
1278 | struct ext4_group_desc *desc); | ||
1279 | #define ext4_free_blocks_after_init(sb, group, desc) \ | ||
1280 | ext4_init_block_bitmap(sb, NULL, group, desc) | ||
1273 | 1281 | ||
1274 | /* dir.c */ | 1282 | /* dir.c */ |
1275 | extern int ext4_check_dir_entry(const char *, struct inode *, | 1283 | extern int ext4_check_dir_entry(const char *, struct inode *, |
@@ -1294,6 +1302,11 @@ extern struct inode * ext4_orphan_get(struct super_block *, unsigned long); | |||
1294 | extern unsigned long ext4_count_free_inodes(struct super_block *); | 1302 | extern unsigned long ext4_count_free_inodes(struct super_block *); |
1295 | extern unsigned long ext4_count_dirs(struct super_block *); | 1303 | extern unsigned long ext4_count_dirs(struct super_block *); |
1296 | extern void ext4_check_inodes_bitmap(struct super_block *); | 1304 | extern void ext4_check_inodes_bitmap(struct super_block *); |
1305 | extern unsigned ext4_init_inode_bitmap(struct super_block *sb, | ||
1306 | struct buffer_head *bh, | ||
1307 | ext4_group_t group, | ||
1308 | struct ext4_group_desc *desc); | ||
1309 | extern void mark_bitmap_end(int start_bit, int end_bit, char *bitmap); | ||
1297 | 1310 | ||
1298 | /* mballoc.c */ | 1311 | /* mballoc.c */ |
1299 | extern long ext4_mb_stats; | 1312 | extern long ext4_mb_stats; |
@@ -1417,6 +1430,10 @@ extern void ext4_used_dirs_set(struct super_block *sb, | |||
1417 | struct ext4_group_desc *bg, __u32 count); | 1430 | struct ext4_group_desc *bg, __u32 count); |
1418 | extern void ext4_itable_unused_set(struct super_block *sb, | 1431 | extern void ext4_itable_unused_set(struct super_block *sb, |
1419 | struct ext4_group_desc *bg, __u32 count); | 1432 | struct ext4_group_desc *bg, __u32 count); |
1433 | extern __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 group, | ||
1434 | struct ext4_group_desc *gdp); | ||
1435 | extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group, | ||
1436 | struct ext4_group_desc *gdp); | ||
1420 | 1437 | ||
1421 | static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) | 1438 | static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) |
1422 | { | 1439 | { |