[Patch 2/10]: ext3 online resize: printk debug level

From: Stephen Tweedie (sct_at_redhat.com)
Date: 09/30/04

  • Next message: Stephen Tweedie: "[Patch 7/10]: ext3 online resize: SMP locking for group metadata"
    Date:	Thu, 30 Sep 2004 14:23:24 +0100
    To: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>, Andreas Dilger <adilger@clusterfs.com>, "Theodore Ts'o" <tytso@mit.edu>, ext2-devel@lists.sourceforge.net
    
    

    Emit debugging printks at KERN_DEBUG loglevel.

    Signed-off-by: Stephen Tweedie <sct@redhat.com>

    --- linux-2.6.9-rc2-mm4/fs/ext3/resize.c.=K0001=.orig
    +++ linux-2.6.9-rc2-mm4/fs/ext3/resize.c
    @@ -44,7 +44,7 @@ static int verify_group_input(struct sup
                     input->blocks_count - 2 - overhead - sbi->s_itb_per_group;
     
             if (test_opt(sb, DEBUG))
    - printk("EXT3-fs: adding %s group %u: %u blocks "
    + printk(KERN_DEBUG "EXT3-fs: adding %s group %u: %u blocks "
                            "(%d free, %u reserved)\n",
                            ext3_bg_has_super(sb, input->group) ? "normal" :
                            "no-super", input->group, input->blocks_count,
    @@ -373,7 +373,8 @@ static int add_new_gdb(handle_t *handle,
             int err;
     
             if (test_opt(sb, DEBUG))
    - printk("EXT3-fs: ext3_add_new_gdb: adding group block %lu\n",
    + printk(KERN_DEBUG
    + "EXT3-fs: ext3_add_new_gdb: adding group block %lu\n",
                            gdb_num);
     
             /*
    @@ -851,7 +852,7 @@ int ext3_group_extend(struct super_block
             o_groups_count = EXT3_SB(sb)->s_groups_count;
     
             if (test_opt(sb, DEBUG))
    - printk("EXT3-fs: extending last group from %lu to %lu blocks\n",
    + printk(KERN_DEBUG "EXT3-fs: extending last group from %lu to %lu blocks\n",
                            o_blocks_count, n_blocks_count);
     
             if (n_blocks_count == 0 || n_blocks_count == o_blocks_count)
    @@ -940,7 +941,7 @@ int ext3_group_extend(struct super_block
             if ((err = ext3_journal_stop(handle)))
                     goto exit_put;
             if (test_opt(sb, DEBUG))
    - printk("EXT3-fs: extended group to %u blocks\n",
    + printk(KERN_DEBUG "EXT3-fs: extended group to %u blocks\n",
                            le32_to_cpu(es->s_blocks_count));
             update_backups(sb, inode, EXT3_SB(sb)->s_sbh->b_blocknr, (char *)es,
                            sizeof(struct ext3_super_block));
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Stephen Tweedie: "[Patch 7/10]: ext3 online resize: SMP locking for group metadata"

    Relevant Pages