@@ -254,12 +254,12 @@ static inline unsigned dx_node_limit (struct inode *dir)
254254 * Debug
255255 */
256256#ifdef DX_DEBUG
257- static void dx_show_index (char * label , struct dx_entry * entries )
257+ static void dx_show_index (char * label , struct dx_entry * entries )
258258{
259259 int i , n = dx_get_count (entries );
260- printk ("%s index " , label );
260+ printk (KERN_DEBUG "%s index " , label );
261261 for (i = 0 ; i < n ; i ++ ) {
262- printk ("%x->%lu " , i ? dx_get_hash (entries + i ) :
262+ printk ("%x->%lu " , i ? dx_get_hash (entries + i ) :
263263 0 , (unsigned long )dx_get_block (entries + i ));
264264 }
265265 printk ("\n" );
@@ -328,8 +328,9 @@ struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir,
328328 brelse (bh );
329329 }
330330 if (bcount )
331- printk ("%snames %u, fullness %u (%u%%)\n" , levels ?"" :" " ,
332- names , space /bcount ,(space /bcount )* 100 /blocksize );
331+ printk (KERN_DEBUG "%snames %u, fullness %u (%u%%)\n" ,
332+ levels ? "" : " " , names , space /bcount ,
333+ (space /bcount )* 100 /blocksize );
333334 return (struct stats ) { names , space , bcount };
334335}
335336#endif /* DX_DEBUG */
@@ -635,8 +636,8 @@ int ext4_htree_fill_tree(struct file *dir_file, __u32 start_hash,
635636 int ret , err ;
636637 __u32 hashval ;
637638
638- dxtrace (printk ("In htree_fill_tree, start hash: %x:%x\n" , start_hash ,
639- start_minor_hash ));
639+ dxtrace (printk (KERN_DEBUG "In htree_fill_tree, start hash: %x:%x\n" ,
640+ start_hash , start_minor_hash ));
640641 dir = dir_file -> f_path .dentry -> d_inode ;
641642 if (!(EXT4_I (dir )-> i_flags & EXT4_INDEX_FL )) {
642643 hinfo .hash_version = EXT4_SB (dir -> i_sb )-> s_def_hash_version ;
@@ -694,8 +695,8 @@ int ext4_htree_fill_tree(struct file *dir_file, __u32 start_hash,
694695 break ;
695696 }
696697 dx_release (frames );
697- dxtrace (printk ("Fill tree: returned %d entries, next hash: %x\n" ,
698- count , * next_hash ));
698+ dxtrace (printk (KERN_DEBUG "Fill tree: returned %d entries, "
699+ "next hash: %x\n" , count , * next_hash ));
699700 return count ;
700701errout :
701702 dx_release (frames );
@@ -882,7 +883,8 @@ static struct buffer_head * ext4_find_entry (struct dentry *dentry,
882883 */
883884 if (bh || (err != ERR_BAD_DX_DIR ))
884885 return bh ;
885- dxtrace (printk ("ext4_find_entry: dx failed, falling back\n" ));
886+ dxtrace (printk (KERN_DEBUG "ext4_find_entry: dx failed, "
887+ "falling back\n" ));
886888 }
887889 nblocks = dir -> i_size >> EXT4_BLOCK_SIZE_BITS (sb );
888890 start = EXT4_I (dir )-> i_dir_start_lookup ;
@@ -1025,7 +1027,7 @@ static struct buffer_head * ext4_dx_find_entry(struct dentry *dentry,
10251027
10261028 * err = - ENOENT ;
10271029errout :
1028- dxtrace (printk ("%s not found\n" , name ));
1030+ dxtrace (printk (KERN_DEBUG "%s not found\n" , name ));
10291031 dx_release (frames );
10301032 return NULL ;
10311033}
@@ -1377,7 +1379,7 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry,
13771379 struct fake_dirent * fde ;
13781380
13791381 blocksize = dir -> i_sb -> s_blocksize ;
1380- dxtrace (printk ("Creating index\n" ));
1382+ dxtrace (printk (KERN_DEBUG "Creating index\n" ));
13811383 retval = ext4_journal_get_write_access (handle , bh );
13821384 if (retval ) {
13831385 ext4_std_error (dir -> i_sb , retval );
@@ -1527,7 +1529,7 @@ static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
15271529 }
15281530
15291531 /* Block full, should compress but for now just split */
1530- dxtrace (printk ("using %u of %u node entries\n" ,
1532+ dxtrace (printk (KERN_DEBUG "using %u of %u node entries\n" ,
15311533 dx_get_count (entries ), dx_get_limit (entries )));
15321534 /* Need to split index? */
15331535 if (dx_get_count (entries ) == dx_get_limit (entries )) {
@@ -1559,7 +1561,8 @@ static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
15591561 if (levels ) {
15601562 unsigned icount1 = icount /2 , icount2 = icount - icount1 ;
15611563 unsigned hash2 = dx_get_hash (entries + icount1 );
1562- dxtrace (printk ("Split index %i/%i\n" , icount1 , icount2 ));
1564+ dxtrace (printk (KERN_DEBUG "Split index %i/%i\n" ,
1565+ icount1 , icount2 ));
15631566
15641567 BUFFER_TRACE (frame -> bh , "get_write_access" ); /* index root */
15651568 err = ext4_journal_get_write_access (handle ,
@@ -1588,7 +1591,8 @@ static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
15881591 goto journal_error ;
15891592 brelse (bh2 );
15901593 } else {
1591- dxtrace (printk ("Creating second level index...\n" ));
1594+ dxtrace (printk (KERN_DEBUG
1595+ "Creating second level index...\n" ));
15921596 memcpy ((char * ) entries2 , (char * ) entries ,
15931597 icount * sizeof (struct dx_entry ));
15941598 dx_set_limit (entries2 , dx_node_limit (dir ));
0 commit comments