Skip to content

Commit 4d1b9f7

Browse files
hsiangkaojosephhz
authored andcommitted
anolis: erofs: convert some messages to erofs_dbg(..)
ANBZ: torvalds#184 It seems no need to print bootstrap and blob_dir path since they takes about ~2ms, which impacts boot speed of light-weight containers: {"msg":"[ 1.092236] erofs: (device erofs): RAFS bootstrap_path /run/kata-containers/shared/containers/rafs/[..]/bootstrap/image.boot","level":"INFO","ts":"2021-12-21T08:53:12.178819781+08:00","subsystem":"dmesg"} {"msg":"[ 1.094299] erofs: (device erofs): RAFS blob_dir_path /run/kata-containers/shared/containers/rafs/[..]/blob_cache_dir","level":"INFO","ts":"2021-12-21T08:53:12.180775832+08:00","subsystem":"dmesg"} Reviewed-by: Liu Bo <[email protected]> Reviewed-by: Jeffle Xu <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
1 parent e6b83b5 commit 4d1b9f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/erofs/super.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,15 +498,14 @@ static int erofs_parse_options(struct super_block *sb, char *options)
498498
sbi->blob_dir_path = match_strdup(&args[0]);
499499
if (!sbi->blob_dir_path)
500500
return -ENOMEM;
501-
erofs_info(sb, "RAFS blob_dir_path %s", sbi->blob_dir_path);
501+
erofs_dbg("RAFS blob_dir_path %s", sbi->blob_dir_path);
502502
break;
503503
case Opt_bootstrap_path:
504504
kfree(sbi->bootstrap_path);
505505
sbi->bootstrap_path = match_strdup(&args[0]);
506506
if (!sbi->bootstrap_path)
507507
return -ENOMEM;
508-
erofs_info(sb, "RAFS bootstrap_path %s",
509-
sbi->bootstrap_path);
508+
erofs_dbg("RAFS bootstrap_path %s", sbi->bootstrap_path);
510509
break;
511510
default:
512511
erofs_err(sb, "Unrecognized mount option \"%s\" or missing value", p);

0 commit comments

Comments
 (0)