Re: [PATCH] iov_iter: optimize page_copy_sane()

2018-12-17 Thread Eric Dumazet
On 12/08/2018 05:37 AM, Eric Dumazet wrote: > Avoid cache line miss dereferencing struct page if we can. > > page_copy_sane() mostly deals with order-0 pages. > > Signed-off-by: Eric Dumazet > Cc: Al Viro > --- > lib/iov_iter.c | 14 -- > 1 file changed, 12 insertions(+), 2

[PATCH] iov_iter: optimize page_copy_sane()

2018-12-08 Thread Eric Dumazet
Avoid cache line miss dereferencing struct page if we can. page_copy_sane() mostly deals with order-0 pages. Signed-off-by: Eric Dumazet Cc: Al Viro --- lib/iov_iter.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index

[PATCH] iov_iter: optimize page_copy_sane()

2018-12-08 Thread Eric Dumazet
Avoid cache line miss dereferencing struct page if we can. page_copy_sane() mostly deals with order-0 pages. Signed-off-by: Eric Dumazet Cc: Al Viro --- lib/iov_iter.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index