Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755030Ab2JGXkB (ORCPT ); Sun, 7 Oct 2012 19:40:01 -0400 Received: from p3plsmtps2ded04.prod.phx3.secureserver.net ([208.109.80.198]:58627 "EHLO p3plsmtps2ded04.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755009Ab2JGXj4 (ORCPT ); Sun, 7 Oct 2012 19:39:56 -0400 x-originating-ip: 72.167.245.219 From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, akpm@linux-foundation.org, andi@firstfloor.org Cc: "K. Y. Srinivasan" Subject: [PATCH 1/2] mm: Export vm_committed_as Date: Sun, 7 Oct 2012 16:59:45 -0700 Message-Id: <1349654386-18378-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1349654347-18337-1-git-send-email-kys@microsoft.com> References: <1349654347-18337-1-git-send-email-kys@microsoft.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 42 The policy engine on the host expects the guest to report the committed_as. Since this variable is not exported, export this symbol. Signed-off-by: K. Y. Srinivasan --- mm/mmap.c | 1 + mm/nommu.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 2d94235..01439d4 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -87,6 +87,7 @@ int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT; * other variables. It can be updated by several CPUs frequently. */ struct percpu_counter vm_committed_as ____cacheline_aligned_in_smp; +EXPORT_SYMBOL(vm_committed_as); /* * Check that a process has enough memory to allocate a new virtual diff --git a/mm/nommu.c b/mm/nommu.c index 45131b4..3914b7e 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -68,6 +68,7 @@ atomic_long_t mmap_pages_allocated; EXPORT_SYMBOL(mem_map); EXPORT_SYMBOL(num_physpages); +EXPORT_SYMBOL(vm_committed_as); /* list of mapped, potentially shareable regions */ static struct kmem_cache *vm_region_jar; -- 1.7.4.1 -- 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/