linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Joe Perches <joe@perches.com>
Cc: linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH] f2fs: introduce f2fs_<level> macros to wrap f2fs_printk()
Date: Wed, 19 Jun 2019 13:52:32 -0700	[thread overview]
Message-ID: <20190619205232.GD57884@jaegeuk-macbookpro.roam.corp.google.com> (raw)
In-Reply-To: <bf8ad99f0f5d1cb5adde3eb6046a226c78930730.camel@perches.com>

On 06/19, Joe Perches wrote:
> On Wed, 2019-06-19 at 11:01 -0700, Jaegeuk Kim wrote:
> > On 06/18, Chao Yu wrote:
> > > From: Joe Perches <joe@perches.com>
> > > 
> > > - Add and use f2fs_<level> macros
> > > - Convert f2fs_msg to f2fs_printk
> > > - Remove level from f2fs_printk and embed the level in the format
> > > - Coalesce formats and align multi-line arguments
> > > - Remove unnecessary duplicate extern f2fs_msg f2fs.h
> > 
> > Can we just use sbi for f2fs_<level>?
> 
> Not really.  see below:

Since sbi = F2FS_SB(sb), I don't see any problem.

> 
> > And, could you please change missing
> > f2fs_msg() in the latest dev?
> 
> Anyone is welcome to refresh the patch as necessary
> or appropriate.

Could you please take a look at this?

https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev&id=697743b1c1025483c97c740cd8834711be4294eb

Thanks,

> 
> > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
> []
> > > @@ -261,35 +264,29 @@ static int f2fs_set_qf_name(struct super_block *sb, int qtype,
> > >  	int ret = -EINVAL;
> > >  
> > >  	if (sb_any_quota_loaded(sb) && !F2FS_OPTION(sbi).s_qf_names[qtype]) {
> > > -		f2fs_msg(sb, KERN_ERR,
> > > -			"Cannot change journaled "
> > > -			"quota options when quota turned on");
> > > +		f2fs_err(sb, "Cannot change journaled quota options when quota turned on");
> > >  		return -EINVAL;
> > >  	}
> > >  	if (f2fs_sb_has_quota_ino(sbi)) {
> > > -		f2fs_msg(sb, KERN_INFO,
> > > -			"QUOTA feature is enabled, so ignore qf_name");
> > > +		f2fs_info(sb, "QUOTA feature is enabled, so ignore qf_name");
> > >  		return 0;
> > >  	}
> 
> etc...
> 


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

  reply	other threads:[~2019-06-19 20:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18  9:48 [f2fs-dev] [PATCH] f2fs: introduce f2fs_<level> macros to wrap f2fs_printk() Chao Yu
2019-06-19 18:01 ` Jaegeuk Kim
2019-06-19 18:19   ` Joe Perches
2019-06-19 20:52     ` Jaegeuk Kim [this message]
2019-06-20  2:08       ` Chao Yu
2019-06-20  4:58         ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190619205232.GD57884@jaegeuk-macbookpro.roam.corp.google.com \
    --to=jaegeuk@kernel.org \
    --cc=joe@perches.com \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).