Skip to content

Commit

Permalink
ext4: Reduce "mounted" log from INFO to DEBUG
Browse files Browse the repository at this point in the history
This is a MPI specific adjustment.

We currently do a lot of ext4 mounts, because we mount inidivdual ext4
filesystems as a tmpdir for each job in the cluster. So we have a lot of
these messages in the logs:

    [2748664.200013] EXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
    [2748709.929436] EXT4-fs (loop1): mounted filesystem without journal. Opts: (null)
    [2748732.185899] EXT4-fs (loop0): mounted filesystem without journal. Opts: (null)

Avoid log spam by reducing the log level of the message from INFO to
DEBUG.
  • Loading branch information
donald committed Feb 25, 2022
1 parent bc1ba27 commit 186527f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -5108,7 +5108,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
}

if (___ratelimit(&ext4_mount_msg_ratelimit, "EXT4-fs mount"))
ext4_msg(sb, KERN_INFO, "mounted filesystem with%s. "
ext4_msg(sb, KERN_DEBUG, "mounted filesystem with%s. "
"Opts: %.*s%s%s", descr,
(int) sizeof(sbi->s_es->s_mount_opts),
sbi->s_es->s_mount_opts,
Expand Down

0 comments on commit 186527f

Please sign in to comment.