Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5539442ybv; Tue, 11 Feb 2020 18:09:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyaNvrhNMjt0Qvz6k293QVaOgpEBZ9yxDpmO8EMhPU6U4pflgY52VXGvWty5s68lQung+qK X-Received: by 2002:a9d:7305:: with SMTP id e5mr7196371otk.64.1581473344994; Tue, 11 Feb 2020 18:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581473344; cv=none; d=google.com; s=arc-20160816; b=wn7Zx6W+PWOjrb3kTeYcWKOme4QkKc2R73wqTR7L1/10j5uK+A4riyOeoDs0FWme93 ATx11J2W6p5J8xilrmgqmP62thp2VctLXVMNqkap6wkn4PclRdKJHV+2OiRn/GpHXZeW lOwAxtFbVx7mzE/eDJ9etAj6ADpQFMjehFBJYA4bMsp7sz/7S/L1egvA/5untvalv41Z 7WLQBCPJuDy9w1JbCC7iK9bNCOIY8ApHv7DxFCv6JrA9zdUpINY1znUoh5rpCdMsGA6H 5bsb9hqxM3q6ONNcA8KL7uQeNbVaFfLIzFewPBTeBV5MBfvTiLRgvxwpnpU7X47TvAq9 AXUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=O2ZsuKPEP5oLCWMhrZcn4KHLKYwr5L+g0EDvWX5oHfY=; b=A4fXCtIdLG38b8mvkdxqYxz8xUG6J7Grx4Y03LGYb5lERYTfyqvv1Qb+msLRDplHzh rp5B01mwY4/fqJmNc7t5bYncdKLWHXC3K8BxrPm6duDql+wIfUw5TZeRJE09CHTEwnnT /Pb7XraXABjlwYEgix6VmH60L0DFogpUKRqdkfDXiiWkJn7bt1DmDyE9eqQRl95vbKFv +cYu3UrQ2fhJViHtzA+XjdfpjBAKY10Mv7GK1Q04ZS6WsoiISPlYyDzFqearrod2Z2bW SRxi45PS5O3lXkd5aCwWNPt2xdl0zQiQZ32dXX4xLz5XVeTBws1WtYrKZiX5rOZi0c/Y hgCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GRZ7aFoo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t26si2436647oic.169.2020.02.11.18.08.52; Tue, 11 Feb 2020 18:09:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GRZ7aFoo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727756AbgBLCIl (ORCPT + 99 others); Tue, 11 Feb 2020 21:08:41 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44301 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbgBLCIl (ORCPT ); Tue, 11 Feb 2020 21:08:41 -0500 Received: by mail-pl1-f196.google.com with SMTP id d9so308527plo.11 for ; Tue, 11 Feb 2020 18:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=O2ZsuKPEP5oLCWMhrZcn4KHLKYwr5L+g0EDvWX5oHfY=; b=GRZ7aFoo3yb1JhjX4RKiJaWrQjkfYB8yJfXsYRBpLTGeQa50GZzVKxSJl5a3+7aT5X F+Jh3OEWE/gDMAf8Z4nG6nW5NAT0vtl516eU9STByC1A9cltp71M+/F6lcK8qX09MfQl F7Oaa9xk7waAp+4c2XlqwRaSPuUin0D4JGe3gTriXZVpFpXHWAgpSzAn/MX9EEgcPrMB DLxjfc/xk8wn7YeEDh0uA4KeCz8wSJPU595IOAJ0AGVceyqypBz/4Tzhky7PJybMbHOk ESgwAxqKoELPKcc+Xfihw8Q4h/A8MiK0YeRrP/ewOtMflUlq6Ni6DM/daI26CVOE/HJd c+xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=O2ZsuKPEP5oLCWMhrZcn4KHLKYwr5L+g0EDvWX5oHfY=; b=Gh24g3YY90OzmBIYGY2E5hrqBcxWCHPYQpHZZFyz+94cJIT0g4uqrdizs8boCj4QpJ hBnUjten97zSf8Vmn82xyHQD9vllLBFbVPszszm+XdUHVnRl4IaXip3QH/lxW6jXRmPX BeuMu90S0aWT1EW4NPLyMIml/vuPius2SGGJSBtih9bmsCmQu52bwYU3ZljPIPiJv1B8 5Gj42fgljJnaZWOREDZlPQZLokKRxbh5J9SYueqhnsT3BtTVIeMm7yuCBTLRpnvAq5X8 GD0uFMP4TiJobhMIugwcjTX1hju0aUtM7AVwFDKzW3xFk+kTs+C+rBQovoCTY0gNjOVP w0Rw== X-Gm-Message-State: APjAAAXtj3M2TLQI3dldbbBNC0KQ6ESupQTlF03p7Fcl5ksWGHpR+Tjm S9f8f5AEnOnZ11UyC0BxpX5xLA== X-Received: by 2002:a17:902:547:: with SMTP id 65mr19872097plf.50.1581473320284; Tue, 11 Feb 2020 18:08:40 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id d26sm5062927pgv.66.2020.02.11.18.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 18:08:39 -0800 (PST) Date: Tue, 11 Feb 2020 18:08:39 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Yang Shi cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mm: vmpressure: use mem_cgroup_is_root API In-Reply-To: <1581398649-125989-2-git-send-email-yang.shi@linux.alibaba.com> Message-ID: References: <1581398649-125989-1-git-send-email-yang.shi@linux.alibaba.com> <1581398649-125989-2-git-send-email-yang.shi@linux.alibaba.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Feb 2020, Yang Shi wrote: > Use mem_cgroup_is_root() API to check if memcg is root memcg instead of > open coding. > > Signed-off-by: Yang Shi Acked-by: David Rientjes