Re: [PATCH 06/14] vrange: Add basic functions to purge volatile pages

2013-10-03 Thread Krzysztof Kozlowski
On śro, 2013-10-02 at 17:51 -0700, John Stultz wrote: > +static void 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 pte

[PATCH 06/14] vrange: Add basic functions to purge volatile pages

2013-10-02 Thread John Stultz
From: Minchan Kim This patch adds discard_vpage and related functions to purge anonymous and file volatile pages. It is in preparation for purging volatile pages when memory is tight. The logic to trigger purge volatile pages will be introduced in the next patch. Cc: Andrew Morton Cc: Android