[dm-devel] [PATCH V11 15/19] block: enable multipage bvecs

Christoph Hellwig hch at lst.de
Wed Nov 21 16:12:06 UTC 2018


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.




More information about the dm-devel mailing list