Re: [PATCH] mm/madvise: fix WILLNEED on SHM/ANON to actually do something

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

 



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.

--
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=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[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]