From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754814Ab2FFIP0 (ORCPT ); Wed, 6 Jun 2012 04:15:26 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:13080 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751733Ab2FFIPV (ORCPT ); Wed, 6 Jun 2012 04:15:21 -0400 X-IronPort-AV: E=Sophos;i="4.75,722,1330876800"; d="scan'208";a="5122726" From: Lai Jiangshan Cc: Ingo Molnar , Peter Zijlstra , Tejun Heo , Al Viro , "H. Peter Anvin" , Ian Campbell , Paul Gortmaker , Mel Gorman , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Lai Jiangshan Subject: [PATCH 2/7] highmem: rearrange the comments of pkmap_count Date: Wed, 6 Jun 2012 16:14:56 +0800 Message-Id: <1338970501-5098-2-git-send-email-laijs@cn.fujitsu.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1338970501-5098-1-git-send-email-laijs@cn.fujitsu.com> References: <1338970501-5098-1-git-send-email-laijs@cn.fujitsu.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/06/06 16:15:57, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/06/06 16:16:03, Serialize complete at 2012/06/06 16:16:03 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org make it near to its defintion. also change Virtual_count to pkmap_count in the comments. Signed-off-by: Lai Jiangshan --- mm/highmem.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mm/highmem.c b/mm/highmem.c index 0036dd5..54c0521 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -35,14 +35,6 @@ DEFINE_PER_CPU(int, __kmap_atomic_idx); EXPORT_PER_CPU_SYMBOL(__kmap_atomic_idx); #endif -/* - * Virtual_count is not a pure "count". - * 0 means that it is not mapped, and has not been mapped - * since a TLB flush - it is usable. - * 1 means that there are no users, but it has been mapped - * since the last TLB flush - so we can't use it. - * n means that there are (n-1) current users of it. - */ #ifdef CONFIG_HIGHMEM unsigned long totalhigh_pages __read_mostly; @@ -65,6 +57,14 @@ unsigned int nr_free_highpages (void) return pages; } +/* + * pkmap_count is not a pure "count". + * 0 means that it is not mapped, and has not been mapped + * since a TLB flush - it is usable. + * 1 means that there are no users, but it has been mapped + * since the last TLB flush - so we can't use it. + * n means that there are (n-1) current users of it. + */ static int pkmap_count[LAST_PKMAP]; static unsigned int last_pkmap_nr; static __cacheline_aligned_in_smp DEFINE_SPINLOCK(kmap_lock); -- 1.7.7