diff options
Diffstat (limited to 'include/linux/ext3_fs.h')
-rw-r--r-- | include/linux/ext3_fs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 34136ff02aca..5607e6457a65 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h | |||
@@ -710,6 +710,14 @@ struct dir_private_info { | |||
710 | __u32 next_hash; | 710 | __u32 next_hash; |
711 | }; | 711 | }; |
712 | 712 | ||
713 | /* calculate the first block number of the group */ | ||
714 | static inline ext3_fsblk_t | ||
715 | ext3_group_first_block_no(struct super_block *sb, unsigned long group_no) | ||
716 | { | ||
717 | return group_no * (ext3_fsblk_t)EXT3_BLOCKS_PER_GROUP(sb) + | ||
718 | le32_to_cpu(EXT3_SB(sb)->s_es->s_first_data_block); | ||
719 | } | ||
720 | |||
713 | /* | 721 | /* |
714 | * Special error return code only used by dx_probe() and its callers. | 722 | * Special error return code only used by dx_probe() and its callers. |
715 | */ | 723 | */ |
@@ -739,7 +747,7 @@ extern void ext3_free_blocks (handle_t *handle, struct inode *inode, | |||
739 | extern void ext3_free_blocks_sb (handle_t *handle, struct super_block *sb, | 747 | extern void ext3_free_blocks_sb (handle_t *handle, struct super_block *sb, |
740 | ext3_fsblk_t block, unsigned long count, | 748 | ext3_fsblk_t block, unsigned long count, |
741 | unsigned long *pdquot_freed_blocks); | 749 | unsigned long *pdquot_freed_blocks); |
742 | extern unsigned long ext3_count_free_blocks (struct super_block *); | 750 | extern ext3_fsblk_t ext3_count_free_blocks (struct super_block *); |
743 | extern void ext3_check_blocks_bitmap (struct super_block *); | 751 | extern void ext3_check_blocks_bitmap (struct super_block *); |
744 | extern struct ext3_group_desc * ext3_get_group_desc(struct super_block * sb, | 752 | extern struct ext3_group_desc * ext3_get_group_desc(struct super_block * sb, |
745 | unsigned int block_group, | 753 | unsigned int block_group, |
@@ -811,7 +819,7 @@ extern int ext3_group_add(struct super_block *sb, | |||
811 | struct ext3_new_group_data *input); | 819 | struct ext3_new_group_data *input); |
812 | extern int ext3_group_extend(struct super_block *sb, | 820 | extern int ext3_group_extend(struct super_block *sb, |
813 | struct ext3_super_block *es, | 821 | struct ext3_super_block *es, |
814 | unsigned long n_blocks_count); | 822 | ext3_fsblk_t n_blocks_count); |
815 | 823 | ||
816 | /* super.c */ | 824 | /* super.c */ |
817 | extern void ext3_error (struct super_block *, const char *, const char *, ...) | 825 | extern void ext3_error (struct super_block *, const char *, const char *, ...) |