Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32997001rwd; Sat, 8 Jul 2023 03:14:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8kl5kypKqKjsTMxAI1LoZE32ydu57uLcV8I5pqSRAJZlAchnhpTz5xmo143E2M325ICyX X-Received: by 2002:a2e:b04d:0:b0:2b6:a6e7:5afa with SMTP id d13-20020a2eb04d000000b002b6a6e75afamr5438010ljl.12.1688811240815; Sat, 08 Jul 2023 03:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688811240; cv=none; d=google.com; s=arc-20160816; b=jcw2BdBp3IvGupYovcVrHbjV60eg5McEPJThPcrjin8gBuCaqaKUbmjkUU6aJpkHI2 pM/HGrXRp5anwITZbcOv1GIGt9PW7Qu5x/gs6FQJ+sfxgjoxiW1AwFqqaeBKghvy+arJ 18wXGlg1FUjp2GknzTFldbDmHYMr390QFpLLKLraIsG2YvWiLHaUSL22IJ2QJYgEng70 4t742jsQoS9EnldAMDT2Q8d+9anK42dJBMHPnWXyN7hiRTWG84OV/uidmfSHyGkbbpDm Q0lQmCqrpi7O1UNbBvFjqKFa0h0hoFz6L4qoIjunH253IxJGplfNQLuuz4FzFKUu2EKV v/uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SdGpbb556DGksW+H1uvavfz+poJOo1vWJOFJPx6ylv4=; fh=4o7DIXI/66oHEW09L3854GeQKXh9nrvBy5ZxENMFBvA=; b=QU/8jsmGLUY+dUZWow61PqWg/fYLBidtnHtxryD6OUy1PEfhEZsArvlQOfohwCedxw VcnD7JDV7mbsrN7p8MYLyEo2kFizqorbUpOXm5bAIdSQuuPCWWGTOqiJkY+gBAfPVV0B FTTVEr+u/WZYHfLjh/dE5Qvz6tVZ0OYddXd6fzqo2VJDGq8kY8tO/ejFe6aowrhw7mo/ Jkli5BUc3Uhuv8MON5CdTB+tzV5DlMn/e+h0CyL2GP662jFS+TzvG2oaXhQQcD53SSJG /V6RyqUuvgG9M9nSW3crPZURufzwX0WfASK9w8NE0AeOFbFtUGHAhNaZEu1/D6ho2/lY 5reA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc16-20020a056402205000b0051dd177eb26si3178860edb.257.2023.07.08.03.13.34; Sat, 08 Jul 2023 03:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230475AbjGHI5z (ORCPT + 99 others); Sat, 8 Jul 2023 04:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjGHI5g (ORCPT ); Sat, 8 Jul 2023 04:57:36 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58D781FF6 for ; Sat, 8 Jul 2023 01:57:35 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Qykdh22YNzTm2M; Sat, 8 Jul 2023 16:56:24 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 8 Jul 2023 16:57:30 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH 6/8] mm: memory-failure: minor cleanup for comments and codestyle Date: Sat, 8 Jul 2023 16:57:42 +0800 Message-ID: <20230708085744.3599311-7-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230708085744.3599311-1-linmiaohe@huawei.com> References: <20230708085744.3599311-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix some wrong function names and grammar error in comments. Also remove unneeded space after for_each_process. No functional change intended. Signed-off-by: Miaohe Lin --- mm/memory-failure.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 601936f8d30b..0f93175ed862 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -608,7 +608,7 @@ static void collect_procs_anon(struct page *page, struct list_head *to_kill, pgoff = page_to_pgoff(page); read_lock(&tasklist_lock); - for_each_process (tsk) { + for_each_process(tsk) { struct anon_vma_chain *vmac; struct task_struct *t = task_early_kill(tsk, force_early); @@ -652,7 +652,7 @@ static void collect_procs_file(struct page *page, struct list_head *to_kill, /* * Send early kill signal to tasks where a vma covers * the page but the corrupted page is not necessarily - * mapped it in its pte. + * mapped in its pte. * Assume applications who requested early kill want * to be informed of all such data corruptions. */ @@ -2120,7 +2120,7 @@ static DEFINE_MUTEX(mf_mutex); * detected by a background scrubber) * * Must run in process context (e.g. a work queue) with interrupts - * enabled and no spinlocks hold. + * enabled and no spinlocks held. * * Return: 0 for successfully handled the memory error, * -EOPNOTSUPP for hwpoison_filter() filtered the error event, @@ -2225,7 +2225,7 @@ int memory_failure(unsigned long pfn, int flags) * otherwise it may race with THP split. * And the flag can't be set in get_hwpoison_page() since * it is called by soft offline too and it is just called - * for !MF_COUNT_INCREASE. So here seems to be the best + * for !MF_COUNT_INCREASED. So here seems to be the best * place. * * Don't need care about the above error handling paths for @@ -2582,10 +2582,10 @@ static bool isolate_page(struct page *page, struct list_head *pagelist) /* * If we succeed to isolate the page, we grabbed another refcount on - * the page, so we can safely drop the one we got from get_any_pages(). + * the page, so we can safely drop the one we got from get_any_page(). * If we failed to isolate the page, it means that we cannot go further * and we will return an error, so drop the reference we got from - * get_any_pages() as well. + * get_any_page() as well. */ put_page(page); return isolated; -- 2.33.0