All of lore.kernel.org
 help / color / mirror / Atom feed
From: Minchan Kim <minchan@kernel.org>
To: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Nitin Gupta <ngupta@vflare.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCHv2 7/7] zram: deprecate zram attrs sysfs nodes
Date: Fri, 13 Mar 2015 16:39:08 +0900	[thread overview]
Message-ID: <20150313073908.GA9753@blaptop> (raw)
In-Reply-To: <20150313011035.GA1901@swordfish>

On Fri, Mar 13, 2015 at 10:10:35AM +0900, Sergey Senozhatsky wrote:
> Hi Minchan,
> 
> On (03/13/15 08:55), Minchan Kim wrote:
> > How about adding pid, comm? Admin can know which process touches.
> > 
> 
> ok.
> 
> > >  	struct zram *zram = dev_to_zram(d);				\
> > > +									\
> > > +	deprecated_attr_warn(__stringify(name));			\
> > 
> > It just reports once for first-touched stat and miss other stats by ZRAM_ATTR_RO.
> > Of course, you warned "See zram documentation" so he might know about other stats
> > plan, too. If it's your intention, let's make warn more clear.
> > 
> 
> yes, we have a "go and read docs" warning. documentation explains it in details.
> so I think one warning is enough.
> 
> > "Atrribute $s will be removed. Also, there are other stats we will remove
> > in future. See Documentation/blockdev/zram.txt"
> > 
> 
> I didn't want it to be tooooooooooooooo long (and still don't want).
> "Documentation/blockdev/zram.txt" is not a path which a regular user
> can just copy-paste and use to access the documentation. so I'd prefer
> to keep it as "See zram documentation".

Fair enough. When I google zram documentation, first hit is
https://www.kernel.org/doc/Documentation/blockdev/zram.txt
So, it's enough if google search doesn't change his mind.
Otherwise, we could point out above URL.

> 
> How about this? (well, a multi-line string.)

AFAIK, kernel rule doesn't prefer multi-line for printk string
because it makes hard to work with grep. Anyway, it's trivial.
For example, checkpatch will emit

WARNING: quoted string split across lines

Anyway, I agree with your way.

Thanks.
-- 
Kind regards,
Minchan Kim

  reply	other threads:[~2015-03-13  7:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 14:47 [PATCHv2 0/7] new zram statistics reporting scheme Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 1/7] zram: remove `num_migrated' device attr Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 2/7] zram: move compact_store() to sysfs functions area Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 3/7] zram: use generic start/end io accounting Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 4/7] zram: describe device attrs in documentation Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 5/7] zram: export new 'io_stat' sysfs attrs Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 6/7] zram: export new 'mm_stat' " Sergey Senozhatsky
2015-03-12 14:47 ` [PATCHv2 7/7] zram: deprecate zram attrs sysfs nodes Sergey Senozhatsky
2015-03-12 23:55   ` Minchan Kim
2015-03-13  1:10     ` Sergey Senozhatsky
2015-03-13  7:39       ` Minchan Kim [this message]
2015-03-13  8:16         ` Sergey Senozhatsky

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=20150313073908.GA9753@blaptop \
    --to=minchan@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ngupta@vflare.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    --cc=sergey.senozhatsky@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.