[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANq1E4SfL=c_ZgGwRkQWoEHEWF4q8-DVB+RsQfo6CqGQc9MoZA@mail.gmail.com>
Date: Fri, 23 May 2014 23:49:28 +0200
From: David Herrmann <dh.herrmann@...il.com>
To: David Rientjes <rientjes@...gle.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Wanpeng Li <liwanp@...ux.vnet.ibm.com>,
Naoya Horiguchi <n-horiguchi@...jp.nec.com>,
Vladimir Cernov <gg.kaspersky@...il.com>,
Johannes Weiner <hannes@...xchg.org>,
Hugh Dickins <hughd@...gle.com>, linux-mm <linux-mm@...ck.org>
Subject: Re: [PATCH] mm/madvise: fix WILLNEED on SHM/ANON to actually do something
Hi
On Fri, May 23, 2014 at 10:55 PM, David Rientjes <rientjes@...gle.com> wrote:
> On Fri, 23 May 2014, David Herrmann wrote:
>
>> diff --git a/mm/madvise.c b/mm/madvise.c
>> index 539eeb9..a402f8f 100644
>> --- a/mm/madvise.c
>> +++ b/mm/madvise.c
>> @@ -195,7 +195,7 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma,
>> for (; start < end; start += PAGE_SIZE) {
>> index = ((start - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
>>
>> - page = find_get_page(mapping, index);
>> + page = find_get_entry(mapping, index);
>> if (!radix_tree_exceptional_entry(page)) {
>> if (page)
>> page_cache_release(page);
>
> This is already in -mm from Johannes, see
> http://marc.info/?l=linux-kernel&m=139998616712729. Check out
> http://www.ozlabs.org/~akpm/mmotm/ for this kernel.
Didn't check -mm, sorry. Thanks for the links!
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists