1 ext4: fix type declaration of ext4_validate_block_bitmap
3 From: "Darrick J. Wong" <darrick.wong@oracle.com>
5 The block_group parameter to ext4_validate_block_bitmap is both used
6 as a ext4_group_t inside the function and the same type is passed in
7 by all callers. We might as well use the typedef consistently instead
8 of open-coding the 'unsigned int'.
10 Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
11 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
13 fs/ext4/balloc.c | 4 ++--
15 2 files changed, 3 insertions(+), 3 deletions(-)
17 diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
18 index b430afe..a40b1f9 100644
19 --- a/fs/ext4/balloc.c
20 +++ b/fs/ext4/balloc.c
21 @@ -305,7 +305,7 @@ struct ext4_group_desc * ext4_get_group_desc(struct super_block *sb,
23 static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb,
24 struct ext4_group_desc *desc,
25 - unsigned int block_group,
26 + ext4_group_t block_group,
27 struct buffer_head *bh)
30 @@ -352,7 +352,7 @@ static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb,
32 void ext4_validate_block_bitmap(struct super_block *sb,
33 struct ext4_group_desc *desc,
34 - unsigned int block_group,
35 + ext4_group_t block_group,
36 struct buffer_head *bh)
39 diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
40 index 2889665..2e58182 100644
43 @@ -1930,7 +1930,7 @@ extern ext4_group_t ext4_get_group_number(struct super_block *sb,
45 extern void ext4_validate_block_bitmap(struct super_block *sb,
46 struct ext4_group_desc *desc,
47 - unsigned int block_group,
48 + ext4_group_t block_group,
49 struct buffer_head *bh);
50 extern unsigned int ext4_block_group(struct super_block *sb,
51 ext4_fsblk_t blocknr);