linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: + locks-new-proc-lockinfo.patch added to -mm tree
       [not found] <20120221210625.89432A014E@akpm.mtv.corp.google.com>
@ 2012-02-23 11:54 ` Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2012-02-23 11:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: dave, bfields, ebiederm, matthew, viro

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 1572 bytes --]

On Wed, Feb 22, 2012 at 12:06 AM,  <akpm@linux-foundation.org> wrote:
> +static void lockinfo_get_status(struct seq_file *f, struct file_lock *fl,

All caps sucks.

> +       if (fl->fl_type & LOCK_MAND) {
> +               seq_printf(f, "Access:\t\t %s\n",
> +                          (fl->fl_type & LOCK_READ)
> +                          ? (fl->fl_type & LOCK_WRITE) ? "RW   " : "READ "
> +                          : (fl->fl_type & LOCK_WRITE) ? "WRITE" : "NONE ");

I think using one of --, r-, -w, rw is nicer.
Trailing whitespace, why?

> +       } else {
> +               seq_printf(f, "Access:\t\t %s\n",
> +                          (lease_breaking(fl))
> +                          ? (fl->fl_type & F_UNLCK) ? "UNLCK" : "READ "
> +                          : (fl->fl_type & F_WRLCK) ? "WRITE" : "READ ");

Trailing whitespace.

> +       if (IS_POSIX(fl)) {
> +               if (fl->fl_end == OFFSET_MAX)
> +                       seq_printf(f, "Start-end:\t %Ld-EOF\n\n", fl->fl_start);
> +               else
> +                       seq_printf(f, "Start-end:\t %Ld-%Ld\n\n", fl->fl_start, fl->fl_end);
> +       } else {
> +               seq_printf(f, "Start-end:\t 0-EOF\n\n");

Separate start/end or range, if you want to keep it on one line.
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-23 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120221210625.89432A014E@akpm.mtv.corp.google.com>
2012-02-23 11:54 ` + locks-new-proc-lockinfo.patch added to -mm tree Alexey Dobriyan

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).