Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933781AbZLGLTr (ORCPT ); Mon, 7 Dec 2009 06:19:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933740AbZLGLTq (ORCPT ); Mon, 7 Dec 2009 06:19:46 -0500 Received: from mk-filter-2-a-1.mail.uk.tiscali.com ([212.74.100.53]:62078 "EHLO mk-filter-2-a-1.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933559AbZLGLTp (ORCPT ); Mon, 7 Dec 2009 06:19:45 -0500 X-Trace: 302293468/mk-filter-2.mail.uk.tiscali.com/B2C/$b2c-THROTTLED-DYNAMIC/b2c-CUSTOMER-DYNAMIC-IP/80.41.111.197/None/hugh.dickins@tiscali.co.uk X-SBRS: None X-RemoteIP: 80.41.111.197 X-IP-MAIL-FROM: hugh.dickins@tiscali.co.uk X-SMTP-AUTH: X-MUA: X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhABALBzHEtQKW/F/2dsb2JhbAAI1zeEMwQ X-IronPort-AV: E=Sophos;i="4.47,354,1257120000"; d="scan'208";a="302293468" Date: Mon, 7 Dec 2009 11:19:44 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@sister.anvils To: Amerigo Wang cc: linux-kernel@vger.kernel.org, Mel Gorman , Alexey Dobriyan , "Eric W. Biederman" , stable@kernel.org, akpm@linux-foundation.org, Al Viro Subject: Re: [Patch] proc: fill 'lib' field in /proc//statm In-Reply-To: <20091207102808.4312.38760.sendpatchset@localhost.localdomain> Message-ID: References: <20091207102808.4312.38760.sendpatchset@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 30 On Mon, 7 Dec 2009, Amerigo Wang wrote: > Currently, the 'lib' field of /proc//statm is > always 0, we should fill it with the right value, > the same with 'VmLib'. The right value (if you're looking for consistency with Linux 2.4) is the number of currently resident "library" pages: and we don't know that number - we can't even define what a library is. We could add some code to make it show the same bogus number as we show somewhere else, but it has said 0 ever since 2.5.37: so I don't think it's worth a line of code myself, but bow to others. > > Signed-off-by: WANG Cong > Cc: Eric W. Biederman > Cc: Alexey Dobriyan > Cc: Al Viro > Cc: Mel Gorman > Cc: stable@kernel.org What does alarm me is that you think this is fit for -stable! Hugh -- 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/