Re: [PATCH 2/12] mm: let swap use exceptional entries

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

 



On Tue, 14 Jun 2011 03:43:47 -0700 (PDT) Hugh Dickins <hughd@xxxxxxxxxx> wrote:

> --- linux.orig/mm/filemap.c	2011-06-13 13:26:44.430284135 -0700
> +++ linux/mm/filemap.c	2011-06-13 13:27:34.526532556 -0700
> @@ -717,9 +717,12 @@ repeat:
>  		page = radix_tree_deref_slot(pagep);
>  		if (unlikely(!page))
>  			goto out;
> -		if (radix_tree_deref_retry(page))
> +		if (radix_tree_exception(page)) {
> +			if (radix_tree_exceptional_entry(page))
> +				goto out;
> +			/* radix_tree_deref_retry(page) */
>  			goto repeat;
> -
> +		}
>  		if (!page_cache_get_speculative(page))
>  			goto repeat;

All the crap^Wnice changes made to filemap.c really need some comments,
please.  Particularly when they're keyed off the bland-sounding
"radix_tree_exception()".  Apparently they have something to do with
swap, but how is the poor reader to know this?

Also, commenting out a function call might be meaningful information for
Hugh-right-now, but for other people later on, they're just a big WTF.

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
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]