Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp217961pxx; Wed, 28 Oct 2020 03:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygVwYM8YmAE2W5NjlmxG+yoE7JEobkXTRc2mfFbVIMUzi+rT6tAN3MYesn43e4uIyGSieq X-Received: by 2002:a05:6402:4c6:: with SMTP id n6mr6976361edw.204.1603879727034; Wed, 28 Oct 2020 03:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879727; cv=none; d=google.com; s=arc-20160816; b=gA2h/qv71w2yRsBnT3FPFjz+d3i1SE6A8B0ZX23acskOlTnMcs2s60WNTq4CaALx2M 3CvygTIgXZbFwnheNZ1p/sGez5xFrmsXycnOwwvnIumKP4rpQ2+BL9+a55Q1tVTnc5V9 yF2ZDC/SB/ObfX5XwY/sBqXNhoi5co8/JXCsAEkg3zvmKu7oDWr+C9TkT+FHcOFjNzNH lT81WrWsV6ZpHRyVFFQmEvt3ubEutlkemgj1PZjmhsAs0441DT1DB1V4iu0i4i9JNWY1 KhYbSQpXBOMjQnpb/cAf2VM+tBOk8jmEFrzWfxsYTnNN6xaQvVZlMZ7OrgxNeFPw6ly+ Fq7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=ctGoCuYGiGfmGEAlz+BN596hi54m6Xj0GmX91XNTnVA=; b=wR83T2yLrHaZmBqedOPs3OuUv2AnUU+GygzKJQAEVnK3QsDG1MJfNKlj+9aGIb7JJE 9ydVuRFsh3MwyYdhztAlubHD6futPrAWZUpeNRE0JQLLA3LIu3COx5dtxzA7MFYf64zZ vmrVJlFteu36In1a6JJTYYE7s6NgJMqgVGHy4bXh4tCjaYbbJlzUENA2qJcescNZbBI+ x5I9VOVcwlh4e2vKoDSMaEMFeLyS9eakdRMH9hJxx5z4hpFaR3W7hk5FC8R0ofjis6vz 9m9aLB6DUrxXemmCjhGQjOYHHT/NbC7GQHjU5vHR7XNEsFMqaijbpvBqnow3O3AoQvw7 0tbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=n1GzKZJR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt10si1135660edb.503.2020.10.28.03.08.24; Wed, 28 Oct 2020 03:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=n1GzKZJR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760323AbgJ0Oef (ORCPT + 99 others); Tue, 27 Oct 2020 10:34:35 -0400 Received: from m12-16.163.com ([220.181.12.16]:34075 "EHLO m12-16.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2902442AbgJ0Od0 (ORCPT ); Tue, 27 Oct 2020 10:33:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=ctGoC uYGiGfmGEAlz+BN596hi54m6Xj0GmX91XNTnVA=; b=n1GzKZJRRMWNQfFiWShuF mgdcXBpnTfmWYdJjzvS1zv7/VUqd5SARAaMJmjNDJZ6zqWtEfdLvlACWkDuGMx43 HjJJxmAOVMk4CK25hjtOwYNqNcFoF158JWobPHyBWOKF0bQnkuks2XzLtZwMnRfR pq0cGj+hdLrT77/CE0xqy0= Received: from localhost (unknown [101.86.209.121]) by smtp12 (Coremail) with SMTP id EMCowADnLi+FL5hfIiZqIQ--.63101S2; Tue, 27 Oct 2020 22:32:37 +0800 (CST) Date: Tue, 27 Oct 2020 22:32:37 +0800 From: Hui Su To: Michal Hocko , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm,oom_kill: fix the comment of is_dump_unreclaim_slabs() Message-ID: <20201027143237.GA2910@rlk> References: <20200926041526.GA179745@rlk> <20201027071118.GM20500@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201027071118.GM20500@dhcp22.suse.cz> X-CM-TRANSID: EMCowADnLi+FL5hfIiZqIQ--.63101S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7XF1kGryUJFy3Jw17JFyUGFg_yoWfXwcE9a 9Fqw1DJrWvga45GayIkrZ5Xa4fGr48Aa48Jw1rWrZxX34YqF4fCrZ7Wrn7X3WDZrWFkrs0 9FyDW3s8A3sFqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8sZ23UUUUU== X-Originating-IP: [101.86.209.121] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiIAXKX10TB9ZXxAAAs8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2020 at 08:11:18AM +0100, Michal Hocko wrote: > On Sat 26-09-20 12:15:26, Hui Su wrote: > > fix the comment of is_dump_unreclaim_slabs(), it just check > > whether nr_unreclaimable slabs amount is greater than user > > memory. > > The original comment is meant to say when the function should be used. > Your update makes the comment makes it a kerneldoc for an internal > function which on its own is not very useful. It is quite clear what > the function does. The intention is not clear anymore though. > > If you find the comment confusing, however, then I would just propose either > dropping it altogether or rename it to should_dump_unreclaimable_slab. > Which is quite mouthful TBH. > Hi, Michal: Thanks for your explanation. I also think maybe we should delete the comment, and change the rename it to should_dump_unreclaimable_slabs(). Andrew, Is that ok?