From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (localhost.localdomain [127.0.0.1]) by einstein.tteng.com.br (Postfix) with ESMTP id 44D3E1205CA for ; Thu, 11 Nov 2004 12:33:10 -0200 (BRDT) Received: from [192.168.0.141] (luciano.tteng.com.br [192.168.0.141]) by einstein.tteng.com.br (Postfix) with ESMTP id 356F01205C4 for ; Thu, 11 Nov 2004 12:33:09 -0200 (BRDT) Message-ID: <41937940.9070001@tteng.com.br> Date: Thu, 11 Nov 2004 12:37:52 -0200 From: "Luciano A. Stertz" MIME-Version: 1.0 Subject: [Fwd: Page allocator doubt] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org List-ID: May someone help me? I tried kernelnewbies, but got no answers. TIA, Luciano Stertz -------- Original Message -------- Subject: Page allocator doubt Date: Wed, 10 Nov 2004 15:31:41 -0200 From: Luciano A. Stertz To: KERNEL I have a doubt about the page allocation. I need to allocate a number of contiguous pages to later initialize and add them to the page cache. I'm doing something like that: struct address_space *x = &area->vm_file->f_dentry->d_inode->i_data; struct page *page = alloc_pages(mapping_gfp_mask(x)|__GFP_COLD, order); for (i = 0; i< 1< aart@kvack.org