From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 7 Feb 2007 14:32:33 +0000 (GMT) From: Hugh Dickins Subject: Re: Drop PageReclaim() In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: akpm@linux-foundation.org, linux-mm@kvack.org List-ID: On Wed, 7 Feb 2007, Christoph Lameter wrote: > Am I missing something here? I cannot see PageReclaim have any effect? I think you are missing something. > > PageReclaim is only used for dead code. The only current user is > end_page_writeback() which has the following lines: > > if (!TestClearPageReclaim(page) || rotate_reclaimable_page(page)) { > if (!test_clear_page_writeback(page)) > BUG(); > } > > So the if statement is performed if !PageReclaim(page). > If PageReclaim is set then we call rorate_reclaimable(page) which > does: > > if (!PageLRU(page)) > return 1; > > The only user of PageReclaim is shrink_list(). The pages processed > by shrink_list have earlier been taken off the LRU. So !PageLRU is always > true. On return from shrink_page_list(), doesn't shrink_inactive_list() put those pages back on the LRU? Hugh -- 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: email@kvack.org