Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp445270lqh; Tue, 7 May 2024 04:17:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzFzb/twBkbOfosJAbwN90cmXi5nIXRhz0X1lNDzVL4tUxqzkV9XpRp66z6SujX30cej40tNF+4jFAJmcdezliN5mRd1OqE7w/q4nffQ== X-Google-Smtp-Source: AGHT+IGYM+Ys/bqEQgHykcKxgY68mG80cP/y12OhJZ62n2gN2KSHJhWjt6Zgx63wkIFp5lKLWIGx X-Received: by 2002:a05:6512:548:b0:51d:3256:5327 with SMTP id h8-20020a056512054800b0051d32565327mr10049553lfl.35.1715080675043; Tue, 07 May 2024 04:17:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715080675; cv=pass; d=google.com; s=arc-20160816; b=GzYSkbNHbPBAQ2IRau5bZVKVYGIw+KgNvrEVRAtwehHhIBob4R+E+O4LYng1OcltFq rKflQ+RKxUVbyRbwko60NdlzMGARixh9EPBgHX6DIvoNR73AT4x1SH8Zq/xXfqYLnP6u y7DEoW67Kc5wPXUZeNBW3WqQ71AtVh0Y5k4IRQ1LotwD1Xm8Tp/2QHNLCPuVKjc4vK6I 77bpoj4eFZCkf1ZYNQEYlLK/jwSaVvb8FV7tFnCI5KJVJhJbt1i3XvjhHyo9KpQSVuGO Xqjv81112yyeMzdNInjrUAArlZ11HzkKH79F0yKRasw1Tn59y3et7KeCGUJDMoUlof+a XDaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=yHmGTrqD6ivYDAkle4eOw/ARu3UjWr7V79hW6hJV5O0=; fh=L3//je7g03wdfARQ6wX1SeX7W4koimTJRjHYFThRpK4=; b=z2fU1LnJ5uh+WwCi/jTA+NqtO0Aa0JRq/457hHeXw8hmCHV/CDd/B3QN6VhbsR3tcm QCQbMRWx8BaksCYSc3rC7cqLLNkwmjwEI58xdnqeXxkgArQ3q0avmlnjaHISDJAlN3tX 12txs17obGMJ+jrWkFlrsYdfK0hLVH1DYM3bFRdD/weIUSjEmKjTZw8sxTcoTpZ7r1tD rkvnQATyqCTUUNeL2WXDW2SXcVx7ylktrVbN5r61tl03jo3Cuu2RyXqozaVZfNVDxwlQ gLjCO2NWtagkuiEG8esN/pjdTQMx7DgOvt1sx9cq8RV9kj8v6QrmxcNF1sw+Bj0wPi8U TfnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-171185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id wg2-20020a17090705c200b00a599b19acdbsi4458726ejb.810.2024.05.07.04.17.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 04:17:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-171185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BB5B91F25646 for ; Tue, 7 May 2024 11:17:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B9FE152196; Tue, 7 May 2024 11:17:47 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3D341509A6; Tue, 7 May 2024 11:17:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080667; cv=none; b=MSgOwyGL42azLar7kZmWlt9xgsj6HocGuanqu9/0QVCZyM52S8RS2CjiPWwbUao1pJ2eVzmNFF0ZFYlBngYJUctCBRab2RwYtl2ntuNcYnS85eqRa/76hVdg0EiHHinbSzNGmHl24xMRHpxFB1dTa4+Ry1SI6vRARRkESNYBJfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715080667; c=relaxed/simple; bh=0lxFd2GCE2ODuH3qgno60tjiH9OHy42/GKT7AMGXobw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=F628KAY+qULV8rxp5/wahkMVkqdyMlv38Kxdpo+OccixweSgMIbhxq25AGIzbUm+mJfKn8uKuAXvUvRyj0Y1uSb/tWGd58ddbJltSYCJzUnzW/eOy9GHBBW73tgC5rZbYTcjyZGkyxrMh4YyoqcaiyOrm5lYRJgKHlENObKe5Sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4VYbK66NBsz1yn0M; Tue, 7 May 2024 19:14:50 +0800 (CST) Received: from dggpeml500023.china.huawei.com (unknown [7.185.36.114]) by mail.maildlp.com (Postfix) with ESMTPS id 2234B1401DC; Tue, 7 May 2024 19:17:36 +0800 (CST) Received: from [10.67.110.112] (10.67.110.112) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 7 May 2024 19:17:35 +0800 Message-ID: Date: Tue, 7 May 2024 19:17:35 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH -next] mm: memcg: use meaningful error code for return value Content-Language: en-US To: Matthew Wilcox CC: , , , , , , , , References: <20240506133643.1124102-1-xiujianfeng@huawei.com> From: xiujianfeng In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500023.china.huawei.com (7.185.36.114) On 2024/5/6 21:53, Matthew Wilcox wrote: > On Mon, May 06, 2024 at 01:36:43PM +0000, Xiu Jianfeng wrote: >> alloc_mem_cgroup_per_node_info() returns 1 if failed, use -ENOMEM >> instead, which is more meaningful. > > This should probably be changed to return true/false instead of > an int. > OK, already sent v2.