diff options
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r-- | fs/ext4/mballoc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d2f0b9661fb9..d4ae948606e8 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -896,10 +896,10 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file, | |||
896 | list_for_each(cur, &grp->bb_prealloc_list) { | 896 | list_for_each(cur, &grp->bb_prealloc_list) { |
897 | ext4_group_t groupnr; | 897 | ext4_group_t groupnr; |
898 | struct ext4_prealloc_space *pa; | 898 | struct ext4_prealloc_space *pa; |
899 | pa = list_entry(cur, struct ext4_prealloc_space, group_list); | 899 | pa = list_entry(cur, struct ext4_prealloc_space, pa_group_list); |
900 | ext4_get_group_no_and_offset(sb, pa->pstart, &groupnr, &k); | 900 | ext4_get_group_no_and_offset(sb, pa->pa_pstart, &groupnr, &k); |
901 | MB_CHECK_ASSERT(groupnr == e4b->bd_group); | 901 | MB_CHECK_ASSERT(groupnr == e4b->bd_group); |
902 | for (i = 0; i < pa->len; i++) | 902 | for (i = 0; i < pa->pa_len; i++) |
903 | MB_CHECK_ASSERT(mb_test_bit(k + i, buddy)); | 903 | MB_CHECK_ASSERT(mb_test_bit(k + i, buddy)); |
904 | } | 904 | } |
905 | return 0; | 905 | return 0; |
@@ -3131,7 +3131,7 @@ static void ext4_mb_normalize_group_request(struct ext4_allocation_context *ac) | |||
3131 | ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_stripe; | 3131 | ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_stripe; |
3132 | else | 3132 | else |
3133 | ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_mb_group_prealloc; | 3133 | ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_mb_group_prealloc; |
3134 | mb_debug("#%u: goal %lu blocks for locality group\n", | 3134 | mb_debug("#%u: goal %u blocks for locality group\n", |
3135 | current->pid, ac->ac_g_ex.fe_len); | 3135 | current->pid, ac->ac_g_ex.fe_len); |
3136 | } | 3136 | } |
3137 | 3137 | ||
@@ -3371,7 +3371,7 @@ static void ext4_mb_use_inode_pa(struct ext4_allocation_context *ac, | |||
3371 | BUG_ON(pa->pa_free < len); | 3371 | BUG_ON(pa->pa_free < len); |
3372 | pa->pa_free -= len; | 3372 | pa->pa_free -= len; |
3373 | 3373 | ||
3374 | mb_debug("use %llu/%lu from inode pa %p\n", start, len, pa); | 3374 | mb_debug("use %llu/%u from inode pa %p\n", start, len, pa); |
3375 | } | 3375 | } |
3376 | 3376 | ||
3377 | /* | 3377 | /* |
@@ -4108,7 +4108,7 @@ static void ext4_mb_show_ac(struct ext4_allocation_context *ac) | |||
4108 | printk(KERN_ERR "PA:%lu:%d:%u \n", i, | 4108 | printk(KERN_ERR "PA:%lu:%d:%u \n", i, |
4109 | start, pa->pa_len); | 4109 | start, pa->pa_len); |
4110 | } | 4110 | } |
4111 | ext4_lock_group(sb, i); | 4111 | ext4_unlock_group(sb, i); |
4112 | 4112 | ||
4113 | if (grp->bb_free == 0) | 4113 | if (grp->bb_free == 0) |
4114 | continue; | 4114 | continue; |