Re: [PATCH 7/8] vrange: Add method to purge volatile ranges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On śro, 2013-06-19 at 13:34 +0900, Minchan Kim wrote:
> +int try_to_discard_one(struct vrange_root *vroot, struct page *page,
> +			struct vm_area_struct *vma, unsigned long addr)
> +{
> +	struct mm_struct *mm = vma->vm_mm;
> +	pte_t *pte;
> +	pte_t pteval;
> +	spinlock_t *ptl;
> +	int ret = 0;
> +	bool present;
> +
> +	VM_BUG_ON(!PageLocked(page));
> +
> +	vrange_lock(vroot);
> +	pte = vpage_check_address(page, mm, addr, &ptl);
> +	if (!pte)
> +		goto out;
> +
> +	if (vma->vm_flags & VM_LOCKED) {
> +		pte_unmap_unlock(pte, ptl);
> +		goto out;
> +	}
> +
> +	present = pte_present(*pte);
> +	flush_cache_page(vma, address, page_to_pfn(page));

Compilation error during porting to ARM:
s/address/addr


Best regards,
Krzysztof


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]