Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932352AbWBFUBw (ORCPT ); Mon, 6 Feb 2006 15:01:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932351AbWBFUBw (ORCPT ); Mon, 6 Feb 2006 15:01:52 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:19840 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S932350AbWBFUBt (ORCPT ); Mon, 6 Feb 2006 15:01:49 -0500 To: Cc: , Herbert Poetzl , "Serge E. Hallyn" , Alan Cox , Dave Hansen , Arjan van de Ven , Suleiman Souhlal , Hubertus Franke , Cedric Le Goater , Kyle Moffett , Kirill Korotaev , Greg , Linus Torvalds , Andrew Morton , Greg KH , Rik van Riel , Alexey Kuznetsov , Andrey Savochkin , Kirill Korotaev , Andi Kleen , Benjamin Herrenschmidt , Jeff Garzik , Trond Myklebust , Jes Sorensen Subject: [RFC][PATCH 14/20] mm: Update vmscan to work with pspaces. References: From: ebiederm@xmission.com (Eric W. Biederman) Date: Mon, 06 Feb 2006 12:59:15 -0700 In-Reply-To: (Eric W. Biederman's message of "Mon, 06 Feb 2006 12:57:38 -0700") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 909 Lines: 32 Signed-off-by: Eric W. Biederman --- mm/vmscan.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) c38033f8c948f7fccb92c290f66d3a757c5cec04 diff --git a/mm/vmscan.c b/mm/vmscan.c index 5a61080..ca5fceb 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1802,7 +1802,8 @@ static int __init kswapd_init(void) swap_setup(); for_each_pgdat(pgdat) pgdat->kswapd - = find_task_by_pid(kernel_thread(kswapd, pgdat, CLONE_KERNEL)); + = find_task_by_pid(current->pspace, + kernel_thread(kswapd, pgdat, CLONE_KERNEL)); total_memory = nr_free_pagecache_pages(); hotcpu_notifier(cpu_callback, 0); return 0; -- 1.1.5.g3480 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/