Skip to content

Commit dbde0ab

Browse files
djwongtytso
authored andcommitted
ext4: fix type declaration of ext4_validate_block_bitmap
The block_group parameter to ext4_validate_block_bitmap is both used as a ext4_group_t inside the function and the same type is passed in by all callers. We might as well use the typedef consistently instead of open-coding the 'unsigned int'. Signed-off-by: Darrick J. Wong <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
1 parent 48d9eb9 commit dbde0ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/ext4/balloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct ext4_group_desc * ext4_get_group_desc(struct super_block *sb,
305305
*/
306306
static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb,
307307
struct ext4_group_desc *desc,
308-
unsigned int block_group,
308+
ext4_group_t block_group,
309309
struct buffer_head *bh)
310310
{
311311
ext4_grpblk_t offset;
@@ -352,7 +352,7 @@ static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb,
352352

353353
void ext4_validate_block_bitmap(struct super_block *sb,
354354
struct ext4_group_desc *desc,
355-
unsigned int block_group,
355+
ext4_group_t block_group,
356356
struct buffer_head *bh)
357357
{
358358
ext4_fsblk_t blk;

fs/ext4/ext4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ extern ext4_group_t ext4_get_group_number(struct super_block *sb,
19301930

19311931
extern void ext4_validate_block_bitmap(struct super_block *sb,
19321932
struct ext4_group_desc *desc,
1933-
unsigned int block_group,
1933+
ext4_group_t block_group,
19341934
struct buffer_head *bh);
19351935
extern unsigned int ext4_block_group(struct super_block *sb,
19361936
ext4_fsblk_t blocknr);

0 commit comments

Comments
 (0)