lkml.org 
[lkml]   [2018]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V11 15/19] block: enable multipage bvecs
On Wed, Nov 21, 2018 at 11:48:13PM +0800, Ming Lei wrote:
> I guess the correct check should be:
>
> end_addr = vec_addr + bv->bv_offset + bv->bv_len;
> if (same_page &&
> (end_addr & PAGE_MASK) != (page_addr & PAGE_MASK))
> return false;

Indeed.

\
 
 \ /
  Last update: 2018-11-21 17:12    [W:0.105 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site