[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87bn1onk9q.fsf@tassilo.jf.intel.com>
Date: Sat, 23 Jul 2016 13:59:13 -0700
From: Andi Kleen <andi@...stfloor.org>
To: Mikulas Patocka <mpatocka@...hat.com>
Cc: Michal Hocko <mhocko@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Alexander Viro <viro@...iv.linux.org.uk>,
Mel Gorman <mgorman@...e.de>,
Johannes Weiner <hannes@...xchg.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] mm: optimize copy_page_to/from_iter_iovec
Mikulas Patocka <mpatocka@...hat.com> writes:
> copy = min(bytes, iov->iov_len - skip);
>
> +#ifdef CONFIG_HIGHMEM
> if (!fault_in_pages_writeable(buf, copy)) {
If you use IS_ENABLED in the if here ...
> kunmap(page);
> +
> +#ifdef CONFIG_HIGHMEM
> done:
> +#endif
... you don't need this ifdef.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only
Powered by blists - more mailing lists