From: "William A.(Andy) Adamson" <andros@citi.umich.edu>
To: Matthew Wilcox <willy@debian.org>
Cc: "William A.(Andy) Adamson" <andros@citi.umich.edu>,
linux-fsdevel@vger.kernel.org
Subject: Re: PATCH [6/10] lease interfaces for version 4 NFSD
Date: Mon, 20 Sep 2004 16:38:40 -0400 [thread overview]
Message-ID: <20040920203840.66B761BBA3@citi.umich.edu> (raw)
In-Reply-To: Your message of "Mon, 20 Sep 2004 21:33:58 BST." <20040920203358.GT642@parcelfarce.linux.theplanet.co.uk>
> On Mon, Sep 20, 2004 at 04:23:00PM -0400, William A.(Andy) Adamson wrote:
> > + locks_init_lock(&fl);
> > + if ((error = lease_init(filp, arg, &fl)))
> > + return error;
> > + lock_kernel();
> > + if((error = __setlease(filp, arg, &flp)))
> > + goto out;
> > +
>
> Please follow kernel coding style. That means:
ok.
BTW: i just noted that there are two emails with PATCH [9/10] in the title.
they are different patches...
-->Andy
> - Tabs, not spaces for indentation.
> - No assignment within if ()
> - Space between if and (
> ie write this bit as:
>
> locks_init_lock(&fl);
> error = lease_init(filp, arg, &fl);
> if (error)
> return error;
> lock_kernel();
> error = __setlease(filp, arg, &flp);
> if (error)
> goto out;
>
> > return error;
> > }
> >
> > +
> > /**
> > * flock_lock_file_wait - Apply a FLOCK-style lock to a file
> > * @filp: The file to apply the lock to
>
> Don't put this additional line in. I don't like it.
>
> --
> "Next the statesmen will invent cheap lies, putting the blame upon
> the nation that is attacked, and every man will be glad of those
> conscience-soothing falsities, and will diligently study them, and refuse
> to examine any refutations of them; and thus he will by and by convince
> himself that the war is just, and will thank God for the better sleep
> he enjoys after this process of grotesque self-deception." -- Mark Twain
>
prev parent reply other threads:[~2004-09-20 20:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-20 20:23 PATCH [6/10] lease interfaces for version 4 NFSD William A.(Andy) Adamson
2004-09-20 20:33 ` Matthew Wilcox
2004-09-20 20:38 ` William A.(Andy) Adamson [this message]
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=20040920203840.66B761BBA3@citi.umich.edu \
--to=andros@citi.umich.edu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=willy@debian.org \
/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).