Эх сурвалжийг харах

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>
Akira Fujita 16 жил өмнө
parent
commit
1c71850517

+ 4 - 4
fs/ext4/mballoc.c

@@ -1851,7 +1851,7 @@ int ext4_mb_init_group(struct super_block *sb, ext4_group_t group)
 	struct inode *inode = sbi->s_buddy_cache;
 	struct inode *inode = sbi->s_buddy_cache;
 	struct page *page = NULL, *bitmap_page = NULL;
 	struct page *page = NULL, *bitmap_page = NULL;
 
 
-	mb_debug("init group %lu\n", group);
+	mb_debug("init group %u\n", group);
 	blocks_per_page = PAGE_CACHE_SIZE / sb->s_blocksize;
 	blocks_per_page = PAGE_CACHE_SIZE / sb->s_blocksize;
 	this_grp = ext4_get_group_info(sb, group);
 	this_grp = ext4_get_group_info(sb, group);
 	/*
 	/*
@@ -4120,14 +4120,14 @@ static void ext4_mb_show_ac(struct ext4_allocation_context *ac)
 			ext4_get_group_no_and_offset(sb, pa->pa_pstart,
 			ext4_get_group_no_and_offset(sb, pa->pa_pstart,
 						     NULL, &start);
 						     NULL, &start);
 			spin_unlock(&pa->pa_lock);
 			spin_unlock(&pa->pa_lock);
-			printk(KERN_ERR "PA:%lu:%d:%u \n", i,
-							start, pa->pa_len);
+			printk(KERN_ERR "PA:%u:%d:%u \n", i,
+			       start, pa->pa_len);
 		}
 		}
 		ext4_unlock_group(sb, i);
 		ext4_unlock_group(sb, i);
 
 
 		if (grp->bb_free == 0)
 		if (grp->bb_free == 0)
 			continue;
 			continue;
-		printk(KERN_ERR "%lu: %d/%d \n",
+		printk(KERN_ERR "%u: %d/%d \n",
 		       i, grp->bb_free, grp->bb_fragments);
 		       i, grp->bb_free, grp->bb_fragments);
 	}
 	}
 	printk(KERN_ERR "\n");
 	printk(KERN_ERR "\n");