aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r--fs/ext4/ialloc.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index f344834bbf58..45c66a03f182 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -170,17 +170,18 @@ void ext4_free_inode (handle_t *handle, struct inode * inode)
170 ext4_group_t flex_group; 170 ext4_group_t flex_group;
171 171
172 if (atomic_read(&inode->i_count) > 1) { 172 if (atomic_read(&inode->i_count) > 1) {
173 printk ("ext4_free_inode: inode has count=%d\n", 173 printk(KERN_ERR "ext4_free_inode: inode has count=%d\n",
174 atomic_read(&inode->i_count)); 174 atomic_read(&inode->i_count));
175 return; 175 return;
176 } 176 }
177 if (inode->i_nlink) { 177 if (inode->i_nlink) {
178 printk ("ext4_free_inode: inode has nlink=%d\n", 178 printk(KERN_ERR "ext4_free_inode: inode has nlink=%d\n",
179 inode->i_nlink); 179 inode->i_nlink);
180 return; 180 return;
181 } 181 }
182 if (!sb) { 182 if (!sb) {
183 printk("ext4_free_inode: inode on nonexistent device\n"); 183 printk(KERN_ERR "ext4_free_inode: inode on "
184 "nonexistent device\n");
184 return; 185 return;
185 } 186 }
186 sbi = EXT4_SB(sb); 187 sbi = EXT4_SB(sb);
@@ -989,8 +990,9 @@ unsigned long ext4_count_free_inodes (struct super_block * sb)
989 bitmap_count += x; 990 bitmap_count += x;
990 } 991 }
991 brelse(bitmap_bh); 992 brelse(bitmap_bh);
992 printk("ext4_count_free_inodes: stored = %u, computed = %lu, %lu\n", 993 printk(KERN_DEBUG "ext4_count_free_inodes: "
993 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); 994 "stored = %u, computed = %lu, %lu\n",
995 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count);
994 return desc_count; 996 return desc_count;
995#else 997#else
996 desc_count = 0; 998 desc_count = 0;