Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp337356iog; Thu, 30 Jun 2022 01:38:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vK+PCyMILcxauwpFcUifiFpGg3D4Yw8dqb5wXUqu43svwTpS2QSoNBO1vKrvQmeldBJAnm X-Received: by 2002:a05:6402:540c:b0:434:d965:f8a with SMTP id ev12-20020a056402540c00b00434d9650f8amr10113964edb.30.1656578300087; Thu, 30 Jun 2022 01:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656578300; cv=none; d=google.com; s=arc-20160816; b=0S9tzfQwgiAz2TRZsPsgtivJop1VlAxOs+/FNcBZb9ZE0Q1Z5NisaMJnES1wAvW8fE AHRX4XfnR+b/FLehkWukQvdjf6V2lt0CzJ0kkHJnVR4lPXtn9e9XKwF1K2lp2OR4rJ2Z /aBIl8zOWAdOgLjNcIQjmOr93RsQMczJKR/N0OMR2ftsu+p2UpeQPjfFh3KY6DbDp1kz ugJ/aycXftoLeDBwjbKwW33+CDZMZzXXFibXWYZdNlnTrYknH0BWAhotXSx0UhvTKrhN +hcHaqU5b7BeSZ7zMpYmzRknEp3kHHvccygxga32oxbsjYkGTUiWMq5z9fr6QlxkXaZE xQHQ== 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 :message-id:date:subject:cc:to:from; bh=mKr6VDr8gORItIAgKt912b2D5qn2vSAuT8mvrmpV9Is=; b=pu6G/6EY1lFwJPr4iDBmPn/FYlmeVaQ4K9TgYrLcsrhnK5YtSm2ImBXPBlacEIxykv DsdQPNBDrhhdue0joPoxrGJLRXX4V1Iv1+L8D0DDmDKvQdXtvHb4eLyqM6zlMtFiyZ4j iXGJM6Er0ky7gPRvDNk5lJdwqyMuindrzSMVNvpA9gIFqqVyAbth1RRIvkAPEQpqu0F1 Fy2w4AJAtEtKy/XPdBzpnYYW/lvdMqRd3WQ6QFuvL3SW8vkVHzZGtIx4jRvwJ5lKb1di niPv7tkiMi0BJu2t5fy9RzsDEvVpP0sgQbAYR3ELeP3U5JlTPheEk+2nptHG/3Pe0V2s FHEA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o15-20020a50fd8f000000b00437b16d0a50si8117800edt.226.2022.06.30.01.37.55; Thu, 30 Jun 2022 01:38:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233314AbiF3Ibe (ORCPT + 99 others); Thu, 30 Jun 2022 04:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbiF3Ibb (ORCPT ); Thu, 30 Jun 2022 04:31:31 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FE01DF3F for ; Thu, 30 Jun 2022 01:31:31 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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); -- 2.34.1