From patchwork Thu Jun 30 08:31:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Jiaming X-Patchwork-Id: 12901410 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 76383C43334 for ; Thu, 30 Jun 2022 08:31:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 15F9C6B0073; Thu, 30 Jun 2022 04:31:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 110048E0002; Thu, 30 Jun 2022 04:31:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F41048E0001; Thu, 30 Jun 2022 04:31:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E42A76B0073 for ; Thu, 30 Jun 2022 04:31:34 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id ADF57357E7 for ; Thu, 30 Jun 2022 08:31:34 +0000 (UTC) X-FDA: 79634233308.12.5FD623B Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by imf16.hostedemail.com (Postfix) with ESMTP id A32AC18005B for ; Thu, 30 Jun 2022 08:31:33 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 922401E80D21; Thu, 30 Jun 2022 16:30:10 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7PTsfS-RFcZ1; Thu, 30 Jun 2022 16:30:07 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: jiaming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 6AC881E80D11; Thu, 30 Jun 2022 16:30:07 +0800 (CST) From: Zhang Jiaming To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, liqiong@nfschina.com, renyu@nfschina.com, Zhang Jiaming Subject: [PATCH] mm/mmap.c: Fix typo and space mistake Date: Thu, 30 Jun 2022 16:31:24 +0800 Message-Id: <20220630083124.71336-1-jiaming@nfschina.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656577894; 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; bh=mKr6VDr8gORItIAgKt912b2D5qn2vSAuT8mvrmpV9Is=; b=qyYaDy0vRD2ke+Z3VLNbWuKhu1h1nCbpDSwjmwNe0wVo5Oz7YYYlZHfnRGJjAQgql64+Kl Nlekoxe0HDC0B6P5Bf3CzQnymT+B7MHZTvWd8FPuSHntscThIIU/4J2bmxkOYVEfgZOton U/f9O9yzpuAjNyo9kPpT21ZEqEFolng= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656577894; a=rsa-sha256; cv=none; b=o/CryYt+motVywdIfwOhzGZh7Ov6GnGNElM5r6S8iXh3CbNl21SRMhT1YK+mfdMvyzYAX6 7vyjNLaJude/aLjxl4ZEjDeX1caDHkFMkpRXPW0niiI2AwaGogrsl0wuIQAQfd68M7Fgav /b1gzxYs3hBsDLcy2GjzYyigHrTCmF0= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; spf=none (imf16.hostedemail.com: domain of jiaming@nfschina.com has no SPF policy when checking 124.16.136.209) smtp.mailfrom=jiaming@nfschina.com; dmarc=none X-Stat-Signature: q7jsndbpaogmtuwxz864q3dctd39ghdk X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=none; spf=none (imf16.hostedemail.com: domain of jiaming@nfschina.com has no SPF policy when checking 124.16.136.209) smtp.mailfrom=jiaming@nfschina.com; dmarc=none X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: A32AC18005B X-HE-Tag: 1656577893-745312 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: Change 'writeable' to 'writable'. Delete or add spaces around ','. Signed-off-by: Zhang Jiaming --- mm/mmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index 8f776f257893..e3a7da24e83c 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1603,7 +1603,7 @@ int vma_wants_writenotify(struct vm_area_struct *vma, pgprot_t vm_page_prot) } /* - * We account for memory if it's a private writeable mapping, + * We account for memory if it's a private writable mapping, * not hugepages and VM_NORESERVE wasn't set. */ static inline int accountable_mapping(struct file *file, vm_flags_t vm_flags) @@ -2642,7 +2642,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, (vma ? can_vma_merge_after(prev, vm_flags, vma->anon_vma, file, pgoff, vma->vm_userfaultfd_ctx, NULL) : can_vma_merge_after(prev, vm_flags, NULL, file, pgoff, - NULL_VM_UFFD_CTX , NULL))) { + NULL_VM_UFFD_CTX, NULL))) { merge_start = prev->vm_start; vma = prev; vm_pgoff = prev->vm_pgoff; @@ -3146,7 +3146,7 @@ int vm_brk_flags(unsigned long addr, unsigned long request, unsigned long flags) vma = mas_prev(&mas, 0); if (!vma || vma->vm_end != addr || vma_policy(vma) || !can_vma_merge_after(vma, flags, NULL, NULL, - addr >> PAGE_SHIFT,NULL_VM_UFFD_CTX, NULL)) + addr >> PAGE_SHIFT, NULL_VM_UFFD_CTX, NULL)) vma = NULL; ret = do_brk_flags(&mas, vma, addr, len, flags);