From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by kanga.kvack.org (Postfix) with ESMTP id 746299003C7 for ; Tue, 21 Jul 2015 19:34:14 -0400 (EDT) Received: by pabkd10 with SMTP id kd10so55779665pab.2 for ; Tue, 21 Jul 2015 16:34:14 -0700 (PDT) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id ol11si12470395pab.5.2015.07.21.16.34.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 16:34:13 -0700 (PDT) Date: Tue, 21 Jul 2015 16:34:12 -0700 From: Andrew Morton Subject: Re: [PATCH -mm v9 2/8] hwpoison: use page_cgroup_ino for filtering by memcg Message-Id: <20150721163412.1b44e77f5ac3b742734d1ce6@linux-foundation.org> In-Reply-To: <94215634d13582d2a1453686d6cc6b1a59b07d2a.1437303956.git.vdavydov@parallels.com> References: <94215634d13582d2a1453686d6cc6b1a59b07d2a.1437303956.git.vdavydov@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Vladimir Davydov Cc: Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Michal Hocko , Greg Thelen , Michel Lespinasse , David Rientjes , Pavel Emelyanov , Cyrill Gorcunov , Jonathan Corbet , linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org On Sun, 19 Jul 2015 15:31:11 +0300 Vladimir Davydov wrote: > Hwpoison allows to filter pages by memory cgroup ino. Currently, it > calls try_get_mem_cgroup_from_page to obtain the cgroup from a page and > then its ino using cgroup_ino, but now we have an apter method for that, > page_cgroup_ino, so use it instead. I assume "an apter" was supposed to be "a helper"? > --- a/mm/hwpoison-inject.c > +++ b/mm/hwpoison-inject.c > @@ -45,12 +45,9 @@ static int hwpoison_inject(void *data, u64 val) > /* > * do a racy check with elevated page count, to make sure PG_hwpoison > * will only be set for the targeted owner (or on a free page). > - * We temporarily take page lock for try_get_mem_cgroup_from_page(). > * memory_failure() will redo the check reliably inside page lock. > */ > - lock_page(hpage); > err = hwpoison_filter(hpage); > - unlock_page(hpage); > if (err) > goto put_out; > > @@ -126,7 +123,7 @@ static int pfn_inject_init(void) > if (!dentry) > goto fail; > > -#ifdef CONFIG_MEMCG_SWAP > +#ifdef CONFIG_MEMCG > dentry = debugfs_create_u64("corrupt-filter-memcg", 0600, > hwpoison_dir, &hwpoison_filter_memcg); > if (!dentry) Confused. We're changing the conditions under which this debugfs file is created. Is this a typo or some unchangelogged thing or what? -- 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