aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2006-06-25 08:48:07 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:01:10 -0400
commit43d23f9039fc810ecd621f1e4f9d578eadce058a (patch)
treebe241eb5a8e6010f1f8ca9e960bc9838b70d6779 /include
parent1c2bf374a4b8c2e1a3e6ff3a64fb67272a8cd2e2 (diff)
[PATCH] ext3_fsblk_t: the rest of in-kernel filesystem blocks conversion
Convert the ext3 in-kernel filesystem blocks to ext3_fsblk_t. Convert the rest of all unsigned long type in-kernel filesystem blocks to ext3_fsblk_t, and replace the printk format string respondingly. Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ext3_fs.h12
-rw-r--r--include/linux/ext3_fs_i.h8
2 files changed, 14 insertions, 6 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 */
714static inline ext3_fsblk_t
715ext3_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,
739extern void ext3_free_blocks_sb (handle_t *handle, struct super_block *sb, 747extern 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);
742extern unsigned long ext3_count_free_blocks (struct super_block *); 750extern ext3_fsblk_t ext3_count_free_blocks (struct super_block *);
743extern void ext3_check_blocks_bitmap (struct super_block *); 751extern void ext3_check_blocks_bitmap (struct super_block *);
744extern struct ext3_group_desc * ext3_get_group_desc(struct super_block * sb, 752extern 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);
812extern int ext3_group_extend(struct super_block *sb, 820extern 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 */
817extern void ext3_error (struct super_block *, const char *, const char *, ...) 825extern void ext3_error (struct super_block *, const char *, const char *, ...)
diff --git a/include/linux/ext3_fs_i.h b/include/linux/ext3_fs_i.h
index e1c7509c0c9f..2f18b9511f21 100644
--- a/include/linux/ext3_fs_i.h
+++ b/include/linux/ext3_fs_i.h
@@ -30,8 +30,8 @@ typedef unsigned long ext3_fsblk_t;
30#define E3FSBLK "%lu" 30#define E3FSBLK "%lu"
31 31
32struct ext3_reserve_window { 32struct ext3_reserve_window {
33 __u32 _rsv_start; /* First byte reserved */ 33 ext3_fsblk_t _rsv_start; /* First byte reserved */
34 __u32 _rsv_end; /* Last byte reserved or 0 */ 34 ext3_fsblk_t _rsv_end; /* Last byte reserved or 0 */
35}; 35};
36 36
37struct ext3_reserve_window_node { 37struct ext3_reserve_window_node {
@@ -58,7 +58,7 @@ struct ext3_block_alloc_info {
58 * allocated to this file. This give us the goal (target) for the next 58 * allocated to this file. This give us the goal (target) for the next
59 * allocation when we detect linearly ascending requests. 59 * allocation when we detect linearly ascending requests.
60 */ 60 */
61 __u32 last_alloc_physical_block; 61 ext3_fsblk_t last_alloc_physical_block;
62}; 62};
63 63
64#define rsv_start rsv_window._rsv_start 64#define rsv_start rsv_window._rsv_start
@@ -75,7 +75,7 @@ struct ext3_inode_info {
75 __u8 i_frag_no; 75 __u8 i_frag_no;
76 __u8 i_frag_size; 76 __u8 i_frag_size;
77#endif 77#endif
78 __u32 i_file_acl; 78 ext3_fsblk_t i_file_acl;
79 __u32 i_dir_acl; 79 __u32 i_dir_acl;
80 __u32 i_dtime; 80 __u32 i_dtime;
81 81