From patchwork Sun Sep 27 15:30:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Su X-Patchwork-Id: 11802193 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 DF0EC139F for ; Sun, 27 Sep 2020 15:30:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5CFDB23718 for ; Sun, 27 Sep 2020 15:30:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Qky9AnXP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CFDB23718 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 D7DFC6B005C; Sun, 27 Sep 2020 11:30:47 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D30448E0001; Sun, 27 Sep 2020 11:30:47 -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 C6C5E6B0068; Sun, 27 Sep 2020 11:30:47 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0023.hostedemail.com [216.40.44.23]) by kanga.kvack.org (Postfix) with ESMTP id ADB2C6B005C for ; Sun, 27 Sep 2020 11:30:47 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 67C1D2478 for ; Sun, 27 Sep 2020 15:30:47 +0000 (UTC) X-FDA: 77309228934.18.gate00_28000a32717a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id 44E5C1003DB14 for ; Sun, 27 Sep 2020 15:30:47 +0000 (UTC) X-Spam-Summary: 1,0,0,a4275fc799c8e612,d41d8cd98f00b204,sh_def@163.com,,RULES_HIT:41:355:379:421:582:800:960:968:973:982:988:989:1152:1260:1277:1312:1313:1314:1345:1381:1437:1516:1518:1519:1534:1541:1593:1594:1595:1596:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:2899:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3871:3872:4250:4321:5007:6119:6261:6653:8603:10004:10400:11026:11334:11658:11914:12296:12297:12555:12895:13069:13141:13230:13311:13357:13439:13895:14096:14097:14181:14394:14721:21080:21324:21451:21627:21990:30054,0,RBL:220.181.12.12:@163.com:.lbl8.mailshell.net-62.50.2.100 66.100.201.100;04yry1pf6dhsrk9tb4fuc6wo5oe3qyc7bbeh4e5twsogncpz7cd34cz9e9ra15s.ifkps8nm99h4ng67efefqij4u44x7tgcf7pc59ib176adfz9hohtn1nk7nnwe33.6-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: gate00_28000a32717a X-Filterd-Recvd-Size: 2548 Received: from m12-12.163.com (m12-12.163.com [220.181.12.12]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Sun, 27 Sep 2020 15:30:45 +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=Ts6hL gPwpuiLUNkEGjyiEe2YUY0QNH9v4Kl5H9rXsIY=; b=Qky9AnXP4cy+9bJeVXyb+ XGW4hNKZNckZaezuLYpiLuV886lKQRM5F/AEi8mWOlHN4YI8Gy/0xhi02PnhAcB/ cl/fiKp74iksNAEbQLMkvVfDLQTSYp4ySQHLYoCSWzon3acVQWoiZomdF7znnc9I 0FDFNikKB+Jo0YcjZUry+A= Received: from localhost (unknown [101.86.214.224]) by smtp8 (Coremail) with SMTP id DMCowADXbs8asHBfLYMHPQ--.5479S2; Sun, 27 Sep 2020 23:30:34 +0800 (CST) Date: Sun, 27 Sep 2020 23:30:34 +0800 From: Hui Su To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/vmalloc.c: fix the comment of find_vm_area Message-ID: <20200927153034.GA199877@rlk> MIME-Version: 1.0 Content-Disposition: inline X-CM-TRANSID: DMCowADXbs8asHBfLYMHPQ--.5479S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GFy8Jw1rGFy8CFyDAw1DKFg_yoWDZFgEya 18try8WrykJan3tw18uw42qa92ga95ZF1DGFyFqFZxXr9xCa45uFWDGFy3JFWUWr4fJF9r WanFkayftr98KjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8ymh7UUUUU== X-Originating-IP: [101.86.214.224] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiWRqsX1WBsxoaPgAAsp X-Bogosity: Ham, tests=bogofilter, spamicity=0.000012, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: fix the comment of find_vm_area() and get_vm_area() Signed-off-by: Hui Su --- mm/vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index be4724b916b3..a2d7900024be 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2133,7 +2133,7 @@ struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags, * It is up to the caller to do all required locking to keep the returned * pointer valid. * - * Return: pointer to the found area or %NULL on faulure + * Return: the area descriptor on success or %NULL on failure. */ struct vm_struct *find_vm_area(const void *addr) { @@ -2154,7 +2154,7 @@ struct vm_struct *find_vm_area(const void *addr) * This function returns the found VM area, but using it is NOT safe * on SMP machines, except for its size or flags. * - * Return: pointer to the found area or %NULL on faulure + * Return: the area descriptor on success or %NULL on failure. */ struct vm_struct *remove_vm_area(const void *addr) {