lkml.org 
[lkml]   [2016]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] mm: optimize copy_page_to/from_iter_iovec
Date
Mikulas Patocka <mpatocka@redhat.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@linux.intel.com -- Speaking for myself only

\
 
 \ /
  Last update: 2016-07-23 23:41    [W:0.052 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site