Re: [PATCH 2/2] mm: optimize copy_page_to/from_iter_iovec

From: Andi Kleen
Date: Sat Jul 23 2016 - 16:59:31 EST


Mikulas Patocka <mpatocka@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx -- Speaking for myself only