Skip to content

Commit 0529155

Browse files
xiaoqiangnktytso
authored andcommitted
ext4: rename ext4_add_groupblocks() to ext4_group_add_blocks()
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent ce723c3 commit 0529155

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/ext4/ext4.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ extern void ext4_free_blocks(handle_t *handle, struct inode *inode,
17991799
unsigned long count, int flags);
18001800
extern int ext4_mb_add_groupinfo(struct super_block *sb,
18011801
ext4_group_t i, struct ext4_group_desc *desc);
1802-
extern void ext4_add_groupblocks(handle_t *handle, struct super_block *sb,
1802+
extern void ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
18031803
ext4_fsblk_t block, unsigned long count);
18041804
extern int ext4_trim_fs(struct super_block *, struct fstrim_range *);
18051805

‎fs/ext4/mballoc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4667,15 +4667,15 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
46674667
}
46684668

46694669
/**
4670-
* ext4_add_groupblocks() -- Add given blocks to an existing group
4670+
* ext4_group_add_blocks() -- Add given blocks to an existing group
46714671
* @handle: handle to this transaction
46724672
* @sb: super block
46734673
* @block: start physcial block to add to the block group
46744674
* @count: number of blocks to free
46754675
*
46764676
* This marks the blocks as free in the bitmap and buddy.
46774677
*/
4678-
void ext4_add_groupblocks(handle_t *handle, struct super_block *sb,
4678+
void ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
46794679
ext4_fsblk_t block, unsigned long count)
46804680
{
46814681
struct buffer_head *bitmap_bh = NULL;

‎fs/ext4/resize.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es,
10561056
ext4_debug("freeing blocks %llu through %llu\n", o_blocks_count,
10571057
o_blocks_count + add);
10581058
/* We add the blocks to the bitmap and set the group need init bit */
1059-
ext4_add_groupblocks(handle, sb, o_blocks_count, add);
1059+
ext4_group_add_blocks(handle, sb, o_blocks_count, add);
10601060
ext4_handle_dirty_super(handle, sb);
10611061
ext4_debug("freed blocks %llu through %llu\n", o_blocks_count,
10621062
o_blocks_count + add);

0 commit comments

Comments
 (0)