[PATCH v2 1/1] block: blk-merge: don't merge the pages with non-contiguous descriptors
Tejun Heo
tj at kernel.org
Wed Jan 16 18:18:57 EST 2013
On Wed, Jan 16, 2013 at 10:32:35AM +0000, James Bottomley wrote:
> diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
> index 6b2fb87..ab88c5b 100644
> --- a/arch/arm/mm/dma-mapping.c
> +++ b/arch/arm/mm/dma-mapping.c
> @@ -809,7 +809,7 @@ static void dma_cache_maint_page(struct page *page, unsigned long offset,
> op(vaddr, len, dir);
> }
> offset = 0;
> - page++;
> + page = pfn_to_page(page_to_pfn(page) + 1);
Probably page = nth_page(page, 1) is the better form.
Thanks.
--
tejun
More information about the linux-arm-kernel
mailing list