[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171219171254.GD30842@bombadil.infradead.org>
Date: Tue, 19 Dec 2017 09:12:54 -0800
From: Matthew Wilcox <willy@...radead.org>
To: Joe Perches <joe@...ches.com>
Cc: linux-kernel@...r.kernel.org,
Ross Zwisler <ross.zwisler@...ux.intel.com>,
Dave Hansen <dave.hansen@...el.com>, linux-mm@...ck.org,
Josh Triplett <josh@...htriplett.org>,
Matthew Wilcox <mawilcox@...rosoft.com>
Subject: Re: [PATCH 1/2] mm: Make follow_pte_pmd an inline
On Tue, Dec 19, 2017 at 09:05:42AM -0800, Joe Perches wrote:
> On Tue, 2017-12-19 at 08:58 -0800, Matthew Wilcox wrote:
> > + /* (void) is needed to make gcc happy */
> > + (void) __cond_lock(*ptlp,
> > + !(res = __follow_pte_pmd(mm, address, start, end,
> > + ptepp, pmdpp, ptlp)));
>
> This seems obscure and difficult to read. Perhaps:
>
> res = __follow_pte_pmd(mm, address, start, end, ptepp, pmdpp, ptlp);
> (void)__cond_lock(*ptlp, !res);
Patch 1 moves the code. Patch 2 cleans it up ;-)
Powered by blists - more mailing lists