From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 1 Mar 2004 15:33:26 -0500 (EST) From: "Raghu R. Arur" Subject: Re: writepage In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Anand Eswaran Cc: linux-mm@kvack.org List-ID: The page is added to the swap cache by add_to_swap_cache and not by writepage. writepage() (swap_writepage() in this case) prepares the page to write to the swap disk by creating buffers and submits the page to the disk. So page->buffers will be NON_NULL. Raghu. On Mon, 1 Mar 2004, Anand Eswaran wrote: > Hi : > > I have quick question reg Linux 2.4.18, Ive tried to understand the code > but am pretty confused: > > In the typical malloc execution-path, the page is added to swap and it's > pte_chain is unmapped after which the writepage() is executed. However I > notice that *after* the writepage(), the page->buffers is NON_NULL. > > Is this supposed to happen? I thought the writepage function flushed the > page to swap, so why are there residual buffers? > > Thanks, > ---- > Anand. > > -- > 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: aart@kvack.org > -- 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: aart@kvack.org