diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/balloc.c | 12 | ||||
-rw-r--r-- | fs/ext4/group.h | 2 | ||||
-rw-r--r-- | fs/ext4/ialloc.c | 2 | ||||
-rw-r--r-- | fs/ext4/mballoc.c | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index c29d774abe55..ba411233cc25 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -295,7 +295,7 @@ err_out: | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | /** | 297 | /** |
298 | * read_block_bitmap() | 298 | * ext4_read_block_bitmap() |
299 | * @sb: super block | 299 | * @sb: super block |
300 | * @block_group: given block group | 300 | * @block_group: given block group |
301 | * | 301 | * |
@@ -305,7 +305,7 @@ err_out: | |||
305 | * Return buffer_head on success or NULL in case of failure. | 305 | * Return buffer_head on success or NULL in case of failure. |
306 | */ | 306 | */ |
307 | struct buffer_head * | 307 | struct buffer_head * |
308 | read_block_bitmap(struct super_block *sb, ext4_group_t block_group) | 308 | ext4_read_block_bitmap(struct super_block *sb, ext4_group_t block_group) |
309 | { | 309 | { |
310 | struct ext4_group_desc * desc; | 310 | struct ext4_group_desc * desc; |
311 | struct buffer_head * bh = NULL; | 311 | struct buffer_head * bh = NULL; |
@@ -693,7 +693,7 @@ do_more: | |||
693 | count -= overflow; | 693 | count -= overflow; |
694 | } | 694 | } |
695 | brelse(bitmap_bh); | 695 | brelse(bitmap_bh); |
696 | bitmap_bh = read_block_bitmap(sb, block_group); | 696 | bitmap_bh = ext4_read_block_bitmap(sb, block_group); |
697 | if (!bitmap_bh) | 697 | if (!bitmap_bh) |
698 | goto error_return; | 698 | goto error_return; |
699 | desc = ext4_get_group_desc (sb, block_group, &gd_bh); | 699 | desc = ext4_get_group_desc (sb, block_group, &gd_bh); |
@@ -1733,7 +1733,7 @@ retry_alloc: | |||
1733 | my_rsv = NULL; | 1733 | my_rsv = NULL; |
1734 | 1734 | ||
1735 | if (free_blocks > 0) { | 1735 | if (free_blocks > 0) { |
1736 | bitmap_bh = read_block_bitmap(sb, group_no); | 1736 | bitmap_bh = ext4_read_block_bitmap(sb, group_no); |
1737 | if (!bitmap_bh) | 1737 | if (!bitmap_bh) |
1738 | goto io_error; | 1738 | goto io_error; |
1739 | grp_alloc_blk = ext4_try_to_allocate_with_rsv(sb, handle, | 1739 | grp_alloc_blk = ext4_try_to_allocate_with_rsv(sb, handle, |
@@ -1769,7 +1769,7 @@ retry_alloc: | |||
1769 | continue; | 1769 | continue; |
1770 | 1770 | ||
1771 | brelse(bitmap_bh); | 1771 | brelse(bitmap_bh); |
1772 | bitmap_bh = read_block_bitmap(sb, group_no); | 1772 | bitmap_bh = ext4_read_block_bitmap(sb, group_no); |
1773 | if (!bitmap_bh) | 1773 | if (!bitmap_bh) |
1774 | goto io_error; | 1774 | goto io_error; |
1775 | /* | 1775 | /* |
@@ -1985,7 +1985,7 @@ ext4_fsblk_t ext4_count_free_blocks(struct super_block *sb) | |||
1985 | continue; | 1985 | continue; |
1986 | desc_count += le16_to_cpu(gdp->bg_free_blocks_count); | 1986 | desc_count += le16_to_cpu(gdp->bg_free_blocks_count); |
1987 | brelse(bitmap_bh); | 1987 | brelse(bitmap_bh); |
1988 | bitmap_bh = read_block_bitmap(sb, i); | 1988 | bitmap_bh = ext4_read_block_bitmap(sb, i); |
1989 | if (bitmap_bh == NULL) | 1989 | if (bitmap_bh == NULL) |
1990 | continue; | 1990 | continue; |
1991 | 1991 | ||
diff --git a/fs/ext4/group.h b/fs/ext4/group.h index 7eb0604e7eea..c2c0a8d06d0e 100644 --- a/fs/ext4/group.h +++ b/fs/ext4/group.h | |||
@@ -13,7 +13,7 @@ extern __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 group, | |||
13 | struct ext4_group_desc *gdp); | 13 | struct ext4_group_desc *gdp); |
14 | extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group, | 14 | extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group, |
15 | struct ext4_group_desc *gdp); | 15 | struct ext4_group_desc *gdp); |
16 | struct buffer_head *read_block_bitmap(struct super_block *sb, | 16 | struct buffer_head *ext4_read_block_bitmap(struct super_block *sb, |
17 | ext4_group_t block_group); | 17 | ext4_group_t block_group); |
18 | extern unsigned ext4_init_block_bitmap(struct super_block *sb, | 18 | extern unsigned ext4_init_block_bitmap(struct super_block *sb, |
19 | struct buffer_head *bh, | 19 | struct buffer_head *bh, |
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 11cafe14aa27..b30cc79b9fcb 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -600,7 +600,7 @@ got: | |||
600 | /* We may have to initialize the block bitmap if it isn't already */ | 600 | /* We may have to initialize the block bitmap if it isn't already */ |
601 | if (EXT4_HAS_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_GDT_CSUM) && | 601 | if (EXT4_HAS_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_GDT_CSUM) && |
602 | gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { | 602 | gdp->bg_flags & cpu_to_le16(EXT4_BG_BLOCK_UNINIT)) { |
603 | struct buffer_head *block_bh = read_block_bitmap(sb, group); | 603 | struct buffer_head *block_bh = ext4_read_block_bitmap(sb, group); |
604 | 604 | ||
605 | BUFFER_TRACE(block_bh, "get block bitmap access"); | 605 | BUFFER_TRACE(block_bh, "get block bitmap access"); |
606 | err = ext4_journal_get_write_access(handle, block_bh); | 606 | err = ext4_journal_get_write_access(handle, block_bh); |
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 6d69dd92aadb..21ee6d42ee7b 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -2326,7 +2326,7 @@ static int ext4_mb_init_backend(struct super_block *sb) | |||
2326 | meta_group_info[j]->bb_bitmap = | 2326 | meta_group_info[j]->bb_bitmap = |
2327 | kmalloc(sb->s_blocksize, GFP_KERNEL); | 2327 | kmalloc(sb->s_blocksize, GFP_KERNEL); |
2328 | BUG_ON(meta_group_info[j]->bb_bitmap == NULL); | 2328 | BUG_ON(meta_group_info[j]->bb_bitmap == NULL); |
2329 | bh = read_block_bitmap(sb, i); | 2329 | bh = ext4_read_block_bitmap(sb, i); |
2330 | BUG_ON(bh == NULL); | 2330 | BUG_ON(bh == NULL); |
2331 | memcpy(meta_group_info[j]->bb_bitmap, bh->b_data, | 2331 | memcpy(meta_group_info[j]->bb_bitmap, bh->b_data, |
2332 | sb->s_blocksize); | 2332 | sb->s_blocksize); |
@@ -2769,7 +2769,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac, | |||
2769 | 2769 | ||
2770 | 2770 | ||
2771 | err = -EIO; | 2771 | err = -EIO; |
2772 | bitmap_bh = read_block_bitmap(sb, ac->ac_b_ex.fe_group); | 2772 | bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group); |
2773 | if (!bitmap_bh) | 2773 | if (!bitmap_bh) |
2774 | goto out_err; | 2774 | goto out_err; |
2775 | 2775 | ||
@@ -3589,7 +3589,7 @@ ext4_mb_discard_group_preallocations(struct super_block *sb, | |||
3589 | if (list_empty(&grp->bb_prealloc_list)) | 3589 | if (list_empty(&grp->bb_prealloc_list)) |
3590 | return 0; | 3590 | return 0; |
3591 | 3591 | ||
3592 | bitmap_bh = read_block_bitmap(sb, group); | 3592 | bitmap_bh = ext4_read_block_bitmap(sb, group); |
3593 | if (bitmap_bh == NULL) { | 3593 | if (bitmap_bh == NULL) { |
3594 | /* error handling here */ | 3594 | /* error handling here */ |
3595 | ext4_mb_release_desc(&e4b); | 3595 | ext4_mb_release_desc(&e4b); |
@@ -3763,7 +3763,7 @@ repeat: | |||
3763 | err = ext4_mb_load_buddy(sb, group, &e4b); | 3763 | err = ext4_mb_load_buddy(sb, group, &e4b); |
3764 | BUG_ON(err != 0); /* error handling here */ | 3764 | BUG_ON(err != 0); /* error handling here */ |
3765 | 3765 | ||
3766 | bitmap_bh = read_block_bitmap(sb, group); | 3766 | bitmap_bh = ext4_read_block_bitmap(sb, group); |
3767 | if (bitmap_bh == NULL) { | 3767 | if (bitmap_bh == NULL) { |
3768 | /* error handling here */ | 3768 | /* error handling here */ |
3769 | ext4_mb_release_desc(&e4b); | 3769 | ext4_mb_release_desc(&e4b); |
@@ -4262,7 +4262,7 @@ do_more: | |||
4262 | overflow = bit + count - EXT4_BLOCKS_PER_GROUP(sb); | 4262 | overflow = bit + count - EXT4_BLOCKS_PER_GROUP(sb); |
4263 | count -= overflow; | 4263 | count -= overflow; |
4264 | } | 4264 | } |
4265 | bitmap_bh = read_block_bitmap(sb, block_group); | 4265 | bitmap_bh = ext4_read_block_bitmap(sb, block_group); |
4266 | if (!bitmap_bh) | 4266 | if (!bitmap_bh) |
4267 | goto error_return; | 4267 | goto error_return; |
4268 | gdp = ext4_get_group_desc(sb, block_group, &gd_bh); | 4268 | gdp = ext4_get_group_desc(sb, block_group, &gd_bh); |