From patchwork Sat Sep 26 04:15:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Su X-Patchwork-Id: 11801085 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C4FED112C for ; Sat, 26 Sep 2020 04:15:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 74FCE207C4 for ; Sat, 26 Sep 2020 04:15:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="WEyeUiyJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74FCE207C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=163.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 93C196B0062; Sat, 26 Sep 2020 00:15:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8ED8D6B0068; Sat, 26 Sep 2020 00:15:33 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8034B6B006C; Sat, 26 Sep 2020 00:15:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0254.hostedemail.com [216.40.44.254]) by kanga.kvack.org (Postfix) with ESMTP id 6693D6B0062 for ; Sat, 26 Sep 2020 00:15:33 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 171188249980 for ; Sat, 26 Sep 2020 04:15:33 +0000 (UTC) X-FDA: 77303898546.05.toys22_020d8442716d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id E76B718038B4D for ; Sat, 26 Sep 2020 04:15:32 +0000 (UTC) X-Spam-Summary: 1,0,0,6c47eedd86a96c08,d41d8cd98f00b204,sh_def@163.com,,RULES_HIT:41:355:379:582:800:960:973:988:989:1152:1260:1277:1312:1313:1314:1345:1381:1437:1516:1518:1519:1534:1539:1593:1594:1595:1596:1711:1730:1747:1777:1792:2282:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3871:3872:5007:6261:6653:10004:10400:10450:10455:11026:11334:11658:11914:12114:12296:12297:12438:12555:12895:13069:13311:13357:13439:13869:13895:14096:14097:14181:14394:14721:19904:19999:21080:21627:21795:21990:30005:30051:30054:30070:30075,0,RBL:220.181.12.16:@163.com:.lbl8.mailshell.net-62.50.2.100 66.100.201.100;04ygqez9gj6frynp1buku7wckx883ypmw8gu3ophp9gkn8rg5ohon3cwf5g4gfg.zaswa66yxws1yec8qfd41rd6jqqwqiyhhqkwzj4hgs943yj4n414sa3uobmhjgq.w-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: toys22_020d8442716d X-Filterd-Recvd-Size: 2253 Received: from m12-16.163.com (m12-16.163.com [220.181.12.16]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Sat, 26 Sep 2020 04:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=wgZYw PIZh8sIPpZ6ltIViSprmgLuN1DsPWbAqEjddWQ=; b=WEyeUiyJ6sjABIIP4SqbM +pnkSqHACv1S0mbxcS44hqlg7q+4iOxsuwApyBDJhcoMPg2v6/RQ9vAetzzPfsn4 RzGKHS1FVBfzZ/gY1PKMTGmDG0sFf6CXkX44HmWxZLB+Z7cVNJChRKkfMmED2Vvd eaiBSbSIq/jsy7MjA1oKOE= Received: from localhost (unknown [101.86.214.224]) by smtp12 (Coremail) with SMTP id EMCowADXLI5ewG5fx0_NCw--.32388S2; Sat, 26 Sep 2020 12:15:27 +0800 (CST) Date: Sat, 26 Sep 2020 12:15:26 +0800 From: Hui Su To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm,oom_kill: fix the comment of is_dump_unreclaim_slabs() Message-ID: <20200926041526.GA179745@rlk> MIME-Version: 1.0 Content-Disposition: inline X-CM-TRANSID: EMCowADXLI5ewG5fx0_NCw--.32388S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gr18tFy8GFWkuFy8trWxCrg_yoW3WrgEya yjgwnrKrWDua9xCFn2kwn3Jry2grs5ZFW5XF1xtry7try5Zw1fWFWIkr1UCFy5Za1xCas8 XF1xG3y3A34avjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0xwIDUUUUU== X-Originating-IP: [101.86.214.224] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbitx+rX1aEFv0RngAAsq X-Bogosity: Ham, tests=bogofilter, spamicity=0.397133, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: fix the comment of is_dump_unreclaim_slabs(), it just check whether nr_unreclaimable slabs amount is greater than user memory. Signed-off-by: Hui Su --- mm/oom_kill.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index e90f25d6385d..a4a47559abcd 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -168,9 +168,9 @@ static bool oom_unkillable_task(struct task_struct *p) return false; } -/* - * Print out unreclaimble slabs info when unreclaimable slabs amount is greater - * than all user memory (LRU pages) +/** + * Check whether unreclaimable slabs amount is greater than + * all user memory(LRU pages). */ static bool is_dump_unreclaim_slabs(void) {