# Re: \[PATCH 3/9\] fs: explicitly check for CHECK\_IOVEC\_ONLY in rw\_copy\_check\_uvector

- From: Matthew Wilcox \<willy@infradead.org\>
- Date: 2020-09-18 12:56:26 
- List: linux-mips
- Page: https://ratatoskr.run/linux-mips/2020/09/189072
- Thread: https://ratatoskr.run/linux-arm-kernel/2020/09/189069/t.md

```text
On Fri, Sep 18, 2020 at 02:45:27PM +0200, Christoph Hellwig wrote:
>  		}
> -		if (type >= 0
> -		    && unlikely(!access_ok(buf, len))) {
> +		if (type != CHECK_IOVEC_ONLY && unlikely(!access_ok(buf, len))) {

drop the unlikely() at the same time?  if it's really advantageous,
that should be embedded in the access_ok macro.

```
