* [PATCH] change comment in read_swap_cache_async
@ 2008-01-28 4:41 Tomohiro Kusumi
2008-01-28 5:31 ` Hugh Dickins
0 siblings, 1 reply; 2+ messages in thread
From: Tomohiro Kusumi @ 2008-01-28 4:41 UTC (permalink / raw)
To: linux-mm
Hi
The function try_to_swap_out seems to have been removed in 2.5 era.
So shouldn't the following comment get changed ?
Tomohiro Kusumi
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
diff -Nurp linux-2.6.24.org/mm/swap_state.c linux-2.6.24/mm/swap_state.c
--- linux-2.6.24.org/mm/swap_state.c 2008-01-28 13:22:41.000000000 +0900
+++ linux-2.6.24/mm/swap_state.c 2008-01-28 13:26:07.000000000 +0900
@@ -349,8 +349,8 @@ struct page *read_swap_cache_async(swp_e
* our caller observed it. May fail (-EEXIST) if there
* is already a page associated with this entry in the
* swap cache: added by a racing read_swap_cache_async,
- * or by try_to_swap_out (or shmem_writepage) re-using
- * the just freed swap entry for an existing page.
+ * or by shmem_writepage re-using the just freed swap
+ * entry for an existing page.
* May fail (-ENOMEM) if radix-tree node allocation failed.
*/
err = add_to_swap_cache(new_page, entry);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] change comment in read_swap_cache_async
2008-01-28 4:41 [PATCH] change comment in read_swap_cache_async Tomohiro Kusumi
@ 2008-01-28 5:31 ` Hugh Dickins
0 siblings, 0 replies; 2+ messages in thread
From: Hugh Dickins @ 2008-01-28 5:31 UTC (permalink / raw)
To: Tomohiro Kusumi; +Cc: linux-mm
On Mon, 28 Jan 2008, Tomohiro Kusumi wrote:
>
> The function try_to_swap_out seems to have been removed in 2.5 era.
> So shouldn't the following comment get changed ?
You're right, that's wrong, it should be referring to add_to_swap
instead - thank you. But by coincidence there's already a patch
in Andrew's -mm tree which corrects that comment: should get into
2.6.25-rc in a couple of weeks.
Hugh
>
> Tomohiro Kusumi
> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
>
> diff -Nurp linux-2.6.24.org/mm/swap_state.c linux-2.6.24/mm/swap_state.c
> --- linux-2.6.24.org/mm/swap_state.c 2008-01-28 13:22:41.000000000 +0900
> +++ linux-2.6.24/mm/swap_state.c 2008-01-28 13:26:07.000000000 +0900
> @@ -349,8 +349,8 @@ struct page *read_swap_cache_async(swp_e
> * our caller observed it. May fail (-EEXIST) if there
> * is already a page associated with this entry in the
> * swap cache: added by a racing read_swap_cache_async,
> - * or by try_to_swap_out (or shmem_writepage) re-using
> - * the just freed swap entry for an existing page.
> + * or by shmem_writepage re-using the just freed swap
> + * entry for an existing page.
> * May fail (-ENOMEM) if radix-tree node allocation failed.
> */
> err = add_to_swap_cache(new_page, entry);
>
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-28 5:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 4:41 [PATCH] change comment in read_swap_cache_async Tomohiro Kusumi
2008-01-28 5:31 ` Hugh Dickins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).