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