From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Subject: Re: [PATCH -V9 10/15] hugetlb/cgroup: Add the cgroup pointer to page lru Date: Wed, 13 Jun 2012 17:02:47 +0530 Message-ID: <8762avo3a8.fsf@skywalker.in.ibm.com> References: <1339583254-895-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1339583254-895-11-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Mime-Version: 1.0 Return-path: In-Reply-To: <1339583254-895-11-git-send-email-aneesh.kumar-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org, dhillf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, mhocko-AlSwsSmVLrQ@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Need this patch for hugetlb cgroup disabled. I will send an updated patch in reply. diff --git a/include/linux/hugetlb_cgroup.h b/include/linux/hugetlb_cgroup.h index e9e6d74..bc30413 100644 --- a/include/linux/hugetlb_cgroup.h +++ b/include/linux/hugetlb_cgroup.h @@ -18,14 +18,14 @@ #include struct hugetlb_cgroup; - -#ifdef CONFIG_CGROUP_HUGETLB_RES_CTLR /* * Minimum page order trackable by hugetlb cgroup. * At least 3 pages are necessary for all the tracking information. */ #define HUGETLB_CGROUP_MIN_ORDER 2 +#ifdef CONFIG_CGROUP_HUGETLB_RES_CTLR + static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) { VM_BUG_ON(!PageHuge(page)); From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx150.postini.com [74.125.245.150]) by kanga.kvack.org (Postfix) with SMTP id 5F8786B0083 for ; Wed, 13 Jun 2012 07:33:01 -0400 (EDT) Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 13 Jun 2012 11:12:18 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5DBWoS553018830 for ; Wed, 13 Jun 2012 21:32:51 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5DBWnZa002180 for ; Wed, 13 Jun 2012 21:32:50 +1000 From: "Aneesh Kumar K.V" Subject: Re: [PATCH -V9 10/15] hugetlb/cgroup: Add the cgroup pointer to page lru In-Reply-To: <1339583254-895-11-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1339583254-895-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1339583254-895-11-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Wed, 13 Jun 2012 17:02:47 +0530 Message-ID: <8762avo3a8.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org, kamezawa.hiroyu@jp.fujitsu.com, dhillf@gmail.com, rientjes@google.com, mhocko@suse.cz, akpm@linux-foundation.org, hannes@cmpxchg.org Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Need this patch for hugetlb cgroup disabled. I will send an updated patch in reply. diff --git a/include/linux/hugetlb_cgroup.h b/include/linux/hugetlb_cgroup.h index e9e6d74..bc30413 100644 --- a/include/linux/hugetlb_cgroup.h +++ b/include/linux/hugetlb_cgroup.h @@ -18,14 +18,14 @@ #include struct hugetlb_cgroup; - -#ifdef CONFIG_CGROUP_HUGETLB_RES_CTLR /* * Minimum page order trackable by hugetlb cgroup. * At least 3 pages are necessary for all the tracking information. */ #define HUGETLB_CGROUP_MIN_ORDER 2 +#ifdef CONFIG_CGROUP_HUGETLB_RES_CTLR + static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) { VM_BUG_ON(!PageHuge(page)); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753566Ab2FMLc5 (ORCPT ); Wed, 13 Jun 2012 07:32:57 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:49115 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752807Ab2FMLcz (ORCPT ); Wed, 13 Jun 2012 07:32:55 -0400 From: "Aneesh Kumar K.V" To: linux-mm@kvack.org, kamezawa.hiroyu@jp.fujitsu.com, dhillf@gmail.com, rientjes@google.com, mhocko@suse.cz, akpm@linux-foundation.org, hannes@cmpxchg.org Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH -V9 10/15] hugetlb/cgroup: Add the cgroup pointer to page lru In-Reply-To: <1339583254-895-11-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1339583254-895-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1339583254-895-11-git-send-email-aneesh.kumar@linux.vnet.ibm.com> User-Agent: Notmuch/0.13.2+35~g0ff57e7 (http://notmuchmail.org) Emacs/24.1.50.1 (x86_64-unknown-linux-gnu) Date: Wed, 13 Jun 2012 17:02:47 +0530 Message-ID: <8762avo3a8.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain x-cbid: 12061301-1618-0000-0000-000001D26659 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Need this patch for hugetlb cgroup disabled. I will send an updated patch in reply. diff --git a/include/linux/hugetlb_cgroup.h b/include/linux/hugetlb_cgroup.h index e9e6d74..bc30413 100644 --- a/include/linux/hugetlb_cgroup.h +++ b/include/linux/hugetlb_cgroup.h @@ -18,14 +18,14 @@ #include struct hugetlb_cgroup; - -#ifdef CONFIG_CGROUP_HUGETLB_RES_CTLR /* * Minimum page order trackable by hugetlb cgroup. * At least 3 pages are necessary for all the tracking information. */ #define HUGETLB_CGROUP_MIN_ORDER 2 +#ifdef CONFIG_CGROUP_HUGETLB_RES_CTLR + static inline struct hugetlb_cgroup *hugetlb_cgroup_from_page(struct page *page) { VM_BUG_ON(!PageHuge(page));