aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAkira Fujita <a-fujita@rs.jp.nec.com>2009-07-05 23:04:36 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-07-05 23:04:36 -0400
commit1c718505171b06dbb60eafcb3fddba877dae5f7b (patch)
treec50213e11adb1a97890428652d4111a7119189aa /fs
parent5a4a798937f92413cb7dbdb6bd554186024092e9 (diff)
ext4: Fix compile warnings with MB_DEBUG
When MB_DEBUG is enabled, we get some compile warnings because ext4_group_t is unsigned int. This patch fixes them. Signed-off-by Akira Fujita <a-fujita@rs.jp.nec.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/mballoc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index ba49e0c596f..68cde598b3b 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -1851,7 +1851,7 @@ int ext4_mb_init_group(struct super_block *sb, ext4_group_t group)
1851 struct inode *inode = sbi->s_buddy_cache; 1851 struct inode *inode = sbi->s_buddy_cache;
1852 struct page *page = NULL, *bitmap_page = NULL; 1852 struct page *page = NULL, *bitmap_page = NULL;
1853 1853
1854 mb_debug("init group %lu\n", group); 1854 mb_debug("init group %u\n", group);
1855 blocks_per_page = PAGE_CACHE_SIZE / sb->s_blocksize; 1855 blocks_per_page = PAGE_CACHE_SIZE / sb->s_blocksize;
1856 this_grp = ext4_get_group_info(sb, group); 1856 this_grp = ext4_get_group_info(sb, group);
1857 /* 1857 /*
@@ -4120,14 +4120,14 @@ static void ext4_mb_show_ac(struct ext4_allocation_context *ac)
4120 ext4_get_group_no_and_offset(sb, pa->pa_pstart, 4120 ext4_get_group_no_and_offset(sb, pa->pa_pstart,
4121 NULL, &start); 4121 NULL, &start);
4122 spin_unlock(&pa->pa_lock); 4122 spin_unlock(&pa->pa_lock);
4123 printk(KERN_ERR "PA:%lu:%d:%u \n", i, 4123 printk(KERN_ERR "PA:%u:%d:%u \n", i,
4124 start, pa->pa_len); 4124 start, pa->pa_len);
4125 } 4125 }
4126 ext4_unlock_group(sb, i); 4126 ext4_unlock_group(sb, i);
4127 4127
4128 if (grp->bb_free == 0) 4128 if (grp->bb_free == 0)
4129 continue; 4129 continue;
4130 printk(KERN_ERR "%lu: %d/%d \n", 4130 printk(KERN_ERR "%u: %d/%d \n",
4131 i, grp->bb_free, grp->bb_fragments); 4131 i, grp->bb_free, grp->bb_fragments);
4132 } 4132 }
4133 printk(KERN_ERR "\n"); 4133 printk(KERN_ERR "\n");