From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764699AbYCUXu5 (ORCPT ); Fri, 21 Mar 2008 19:50:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763450AbYCUXr4 (ORCPT ); Fri, 21 Mar 2008 19:47:56 -0400 Received: from waste.org ([66.93.16.53]:40966 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759113AbYCUXry (ORCPT ); Fri, 21 Mar 2008 19:47:54 -0400 Subject: [PATCH] Change pagemap output format to allow for future reporting of huge pages From: Matt Mackall To: Linus Torvalds Cc: Linux Kernel Mailing List , Andrew Morton Content-Type: text/plain Date: Fri, 21 Mar 2008 18:46:59 -0500 Message-Id: <1206143219.13528.5.camel@calx> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for sitting on this so long, but it would be nice to get this in before the pagemap stuff is too widespread. We couldn't pin down the huge page support itself, but I figured we should get the format bits in place. From: Hans Rosenfeld Change pagemap output format to allow for future reporting of huge pages. (Format comment and minor cleanups: mpm@selenic.com) Signed-off-by: Hans Rosenfeld Signed-off-by: Matt Mackall diff -r 2f714c0f5586 fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c Thu Mar 20 09:50:21 2008 -0700 +++ b/fs/proc/task_mmu.c Fri Mar 21 18:37:36 2008 -0500 @@ -527,13 +527,21 @@ char __user *out, *end; }; -#define PM_ENTRY_BYTES sizeof(u64) -#define PM_RESERVED_BITS 3 -#define PM_RESERVED_OFFSET (64 - PM_RESERVED_BITS) -#define PM_RESERVED_MASK (((1LL<