From patchwork Tue Aug 23 14:59:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Christoph Lameter (Ampere)" X-Patchwork-Id: 1088762 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7NExMLd024770 for ; Tue, 23 Aug 2011 14:59:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755022Ab1HWO7V (ORCPT ); Tue, 23 Aug 2011 10:59:21 -0400 Received: from smtp110.prem.mail.ac4.yahoo.com ([76.13.13.93]:43014 "HELO smtp110.prem.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754853Ab1HWO7U (ORCPT ); Tue, 23 Aug 2011 10:59:20 -0400 Received: (qmail 91924 invoked from network); 23 Aug 2011 14:59:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1314111559; bh=iQv5Lmca9lowl3WAcTeFwZmNTBMNJiippik6IaF5ork=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:Date:From:X-X-Sender:To:cc:Subject:In-Reply-To:Message-ID:References:User-Agent:MIME-Version:Content-Type; b=lR4SixCSmQHP93V+mhZYdpmURFHPRkVt2R/sjOC/8AvmhA0T4+F7hBhXETewdq5qyEb8kQ4UkMnoywehhVq4FchTKiACY4okRNn0e/oRw1RUl3yxbqMWnCVzxAymCYpbEYPxh3qKCM6TUzmLmH1/gjsg6AXAHLLB1NfByhnqUXc= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: NFpthBgVM1l4nqvNGfxIwikvxYomtcAsaVwBkN4vG1yqxoK OfgiBi7rq9rsssED7H.aYm0yLM0SfAAYeJdh7T0mBJQqYy7sLL5PbbJ7zzz7 RzNtkh04CW0PZbOuCDciyT5FvFQldqvGRtH5BWtX6KYl5G81Q.jqzRycYjvh pWed7sOFL7dpi.l1EG.8KUc0vW3UGJbzdwkw5IA._XM_LmtmQW26r.BwkEF1 qr2b7wFHVpbKQPO.8bqdP3Jh_s9bPsFrGqM2o_5j5SKc2IXjOvyYfJzZ55j5 iGa4Pf6UHH.fFUqoHdwrK1G4OKDNdw1p92trFiB1w_xl7EFWGWe6I4D4HaMB 2TylkLm.GY_rbvmnO59zeaPmSU5kRiW2IktUiWVlUgiRqXQ-- X-Yahoo-SMTP: _Dag8S.swBC1p4FJKLCXbs8NQzyse1SYSgnAbY0- Received: from router.home (cl@99.30.10.212 with plain) by smtp110.prem.mail.ac4.yahoo.com with SMTP; 23 Aug 2011 07:59:19 -0700 PDT Received: from cl (helo=localhost) by router.home with local-esmtp (Exim 4.71) (envelope-from ) id 1QvsRj-0005ha-1K; Tue, 23 Aug 2011 09:59:19 -0500 Date: Tue, 23 Aug 2011 09:59:18 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@router.home To: Andrew Morton cc: linux-mm@kvack.org, linux-rdma@vger.kernel.org, Hugh Dickins Subject: Re: [RFC] mm: Distinguish between mlocked and pinned pages In-Reply-To: <20110817155412.cc302033.akpm@linux-foundation.org> Message-ID: References: <20110817155412.cc302033.akpm@linux-foundation.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 23 Aug 2011 14:59:39 +0000 (UTC) On Wed, 17 Aug 2011, Andrew Morton wrote: > This is an obvious place. Could I ask that you split all these up into > one-definition-per-line and we can start in on properly documenting > each field? Subject: mm: Add comments to explain mm_struct fields Explain comments to explain the page statistics field in the mm_struct. Signed-off-by: Christoph Lameter --- include/linux/mm_types.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/include/linux/mm_types.h =================================================================== --- linux-2.6.orig/include/linux/mm_types.h 2011-08-23 09:43:32.000000000 -0500 +++ linux-2.6/include/linux/mm_types.h 2011-08-23 09:52:09.000000000 -0500 @@ -281,8 +281,15 @@ struct mm_struct { unsigned long hiwater_rss; /* High-watermark of RSS usage */ unsigned long hiwater_vm; /* High-water virtual memory usage */ - unsigned long total_vm, locked_vm, pinned_vm, shared_vm, exec_vm; - unsigned long stack_vm, reserved_vm, def_flags, nr_ptes; + unsigned long total_vm; /* Total pages mapped */ + unsigned long locked_vm /* Pages that have PG_mlocked set */ + unsigned long pinned_vm; /* Refcount permanently increased */ + unsigned long shared_vm; /* Shared pages (files) */ + unsigned long exec_vm; /* VM_EXEC & ~VM_WRITE */ + unsigned long stack_vm; /* VM_GROWSUP/DOWN */ + unsigned long reserved_vm; /* VM_RESERVED|VM_IO pages */ + unsigned long def_flags; + unsigned long nr_ptes; /* Page table pages */ unsigned long start_code, end_code, start_data, end_data; unsigned long start_brk, brk, start_stack; unsigned long arg_start, arg_end, env_start, env_end;