From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E29B1C43334 for ; Sun, 19 Jun 2022 18:36:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4BDA6B0071; Sun, 19 Jun 2022 14:36:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DFC546B0072; Sun, 19 Jun 2022 14:36:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC4626B0073; Sun, 19 Jun 2022 14:36:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B94326B0071 for ; Sun, 19 Jun 2022 14:36:29 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 8CF7920A8E for ; Sun, 19 Jun 2022 18:36:29 +0000 (UTC) X-FDA: 79595840898.06.40BC88B Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by imf14.hostedemail.com (Postfix) with ESMTP id A565C100018 for ; Sun, 19 Jun 2022 18:36:28 +0000 (UTC) Received: by mail-pj1-f54.google.com with SMTP id w19-20020a17090a8a1300b001ec79064d8dso5528561pjn.2 for ; Sun, 19 Jun 2022 11:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gs-ncku-edu-tw.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HRs4AILoAryNBdQTWtn8v3T5EEZ9N6zKdCokWLYId6s=; b=LEjwhQflmcAq9KSffJhC1mgyt5HQuY62XOD7X3kzwi5UDFNx6y5bOuyeMdwhUaWZT/ 8lguxxShRZLdBtAO81QdEQN270vTwvuvAKCQuvL71Cpn/LSlEs9coVM+yzkcMnRlRxAV btRutvf/NbMNuqyqr6oFWk+HQcDANBG0X+Cgn59BPeE+Yhj4prznBgTHtt81CMd3urbC WgXBBlgYnJ2Mp+dZt6hz/ZNihJW45f1tZegfy6ea3ta7O28Winjidggq2oezD2V9ZWfM mW82w1B/uLRaXiuY+yKB1xKZXECFSu4nQcCTswp15xpzlJy4KmCm8gFHcFpyRS0YrYSJ ixKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HRs4AILoAryNBdQTWtn8v3T5EEZ9N6zKdCokWLYId6s=; b=Rpi0+CPOkBcS5ghsAZCfPudNsqRvsKQMBKFBVYeyVB0w9kYuqre04+GlOB0u6iWbEG Q+aZHrFE1RGyEXdxDCcXYG/MCk8KsC0oC0rmblGWbFBEF0Bq9rTNDBFHT5a8XjnlYNQM it6Gw4MMhr9WWuBKdWLFPXQKx53iwA7Pxna6xQBLv8xeDoR4uDZzsrEDMZ7eZTN81ZrT uu5UIHxtZf3E/06zne9Y0ipLKN3ZVNqjbIgv6XfF3L+Bl30/pIW6GplAAfwHiWIAyhKf kfh7ppW5nvjyKuPZFNKgV4FjmWUB/nZlI/hnuvOICjKhs3BsLF7nRc5MAE83sndxEL+t w1PQ== X-Gm-Message-State: AJIora9Jbb2aHgLWBWfD3T+3oyJm4MAgUMpEdIj37DNzwHUJ2vjryiu8 n+4zQ9+dUm2DzG3lzqEGDmUSWA== X-Google-Smtp-Source: AGRyM1suoXsMbdMdT2ysOh1yHhjaoTUdEa+1y+W7B2F71G80vPjKVpmVTp/lQuG6P35jSurGiiMeEg== X-Received: by 2002:a17:902:f646:b0:168:e2da:8931 with SMTP id m6-20020a170902f64600b00168e2da8931mr20160974plg.84.1655663787167; Sun, 19 Jun 2022 11:36:27 -0700 (PDT) Received: from localhost.localdomain ([2001:288:7001:2724:a6bf:1ff:fe8c:70bc]) by smtp.gmail.com with ESMTPSA id r18-20020a639b12000000b00408a81ea6basm7386307pgd.21.2022.06.19.11.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jun 2022 11:36:26 -0700 (PDT) From: Yun-Ze Li To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yun-Ze Li Subject: [PATCH] mm, docs: fix comments that mention mem_hotplug_end() Date: Sun, 19 Jun 2022 18:36:17 +0000 Message-Id: <20220619183617.1018438-1-p76091292@gs.ncku.edu.tw> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=gs-ncku-edu-tw.20210112.gappssmtp.com header.s=20210112 header.b=LEjwhQfl; dmarc=none; spf=none (imf14.hostedemail.com: domain of p76091292@gs.ncku.edu.tw has no SPF policy when checking 209.85.216.54) smtp.mailfrom=p76091292@gs.ncku.edu.tw ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655663789; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=HRs4AILoAryNBdQTWtn8v3T5EEZ9N6zKdCokWLYId6s=; b=txgtFK4AnnDUB22u8NCSRiya0IXy3lOYYVGsTJ+s+Qw8dnhv83lKRvvquTDk6rFO0v/gIR B7mVGdhf4RIizIHRaTpMTGti22J8f/jhjimaDEN+JaIX43upGS2iqbhxksH6Q47qAp3bMI F6LK4h7J0EZtvfjWmxR+/kajjs5Ca2Q= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655663789; a=rsa-sha256; cv=none; b=jpM2FXtDQGarQHb0srwCasJz2iyO9bUbPqMic0eoc2TVJ+n28APK0xusrJaZte32UrhDIa B9d2RWcmpT5rMxz03vmSxfNcW6IrdCI2+3PpSritZSD6g24sOniwd8//Y+qIvY1GKwG9b/ Ugewq8+ylRnIdLvF3/Vi6Bb1Y/Oga9g= X-Rspamd-Queue-Id: A565C100018 Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=gs-ncku-edu-tw.20210112.gappssmtp.com header.s=20210112 header.b=LEjwhQfl; dmarc=none; spf=none (imf14.hostedemail.com: domain of p76091292@gs.ncku.edu.tw has no SPF policy when checking 209.85.216.54) smtp.mailfrom=p76091292@gs.ncku.edu.tw X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: rwgq6ycc9cpjd7zh5hd4thkmt9gdeswx X-HE-Tag: 1655663788-218941 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Comments that mention mem_hotplug_end() are confusing as there is no function called mem_hotplug_end(). Fix them by replacing all the occurences of mem_hotplug_end() in the comments with mem_hotplug_done(). Signed-off-by: Yun-Ze Li --- include/linux/mmzone.h | 4 ++-- mm/compaction.c | 2 +- mm/vmscan.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index aab70355d64f..7c7947109986 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -591,7 +591,7 @@ struct zone { * give them a chance of being in the same cacheline. * * Write access to present_pages at runtime should be protected by - * mem_hotplug_begin/end(). Any reader who can't tolerant drift of + * mem_hotplug_begin/done(). Any reader who can't tolerant drift of * present_pages should get_online_mems() to get a stable value. */ atomic_long_t managed_pages; @@ -870,7 +870,7 @@ typedef struct pglist_data { unsigned long nr_reclaim_start; /* nr pages written while throttled * when throttling started. */ struct task_struct *kswapd; /* Protected by - mem_hotplug_begin/end() */ + mem_hotplug_begin/done() */ int kswapd_order; enum zone_type kswapd_highest_zoneidx; diff --git a/mm/compaction.c b/mm/compaction.c index 65970107b789..b8c1f60c84b9 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -3009,7 +3009,7 @@ void kcompactd_run(int nid) /* * Called by memory hotplug when all memory in a node is offlined. Caller must - * hold mem_hotplug_begin/end(). + * hold mem_hotplug_begin/done(). */ void kcompactd_stop(int nid) { diff --git a/mm/vmscan.c b/mm/vmscan.c index c6918fff06e1..bd6aaf85ee7f 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -4586,7 +4586,7 @@ void kswapd_run(int nid) /* * Called by memory hotplug when all memory in a node is offlined. Caller must - * hold mem_hotplug_begin/end(). + * hold mem_hotplug_begin/done(). */ void kswapd_stop(int nid) { -- 2.25.1