Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7953414rwl; Tue, 10 Jan 2023 07:22:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXtwFwgd+eImW8zDvV2eBxlCN/flqLPEDkQPorjzcb1TWu7NYAD96Fh3XydVhA0sU2QDL47l X-Received: by 2002:a17:907:8c08:b0:7c1:65d1:c4ca with SMTP id ta8-20020a1709078c0800b007c165d1c4camr42046884ejc.33.1673364142393; Tue, 10 Jan 2023 07:22:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673364142; cv=none; d=google.com; s=arc-20160816; b=mD/XutdLczPdZs4sbQ/9rV2wlJUR8Y8bUx49deMmlmDffPBxPVYAA/Xyma+mFisTXh unxdOWnPS4uWM8d5u7LpRs7TD9TjmJwhd0CjnK0srUC0PfMuyr/rFd7E2TxwVWFegRZ0 89mSsxl2h+dpgTK4O6qhrrIo4Cx6CM8dlj4CFH25FQSTp1ux+zhyyb/9TpTm9dAlEzXm T4r9bieSVDdSdbfaK4vTnqARBWUG8l7ha3Sr4CJhBOgtZ2B/K4eB2OPP5jScBXV6UywU QTVYeKc9Jtw0Z0czaq/PivzfE624e1hQxLYdWEgUQDg/zy3WBWxDIa9s2vaB2D/RArZ5 UFNA== 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:dkim-signature; bh=6qhudAhZPV2iDT+KE0kLjqDPYcS33lIjDaCweDJV/Yw=; b=WgtJTngtE3dirzXTNAlgCJA2oa/cm+4bbgu85DkHJgp9PisHDqZY3gTN07oWuRFWdh Le1IWg3PNlIDdG0wzgWPd8QtTv/qkpwAhoxP4ouBqpVEpDd7FGijFjjYpXb0prGpCLv1 pOK7G/pN0NclXH4bh3okvHjYq1jEWIqZJQFc54S5UyoX8Ox5Q/zxrM6J5KLW8zkbBHYM mqmBpSIBn8i9txfdZ9/yMs1ixxTuMIqdp5Be+1MciFzfgFWtsQPOI2tnQ4Oz1/1E+KeU L72xDgrIEYbtunRPrvm6fBIth3weF6dhPe/f4aQqOnn2Qg3SsMdpcbo5i7G3QK82ntwx jawg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=paSOTQBf; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf13-20020a17090731cd00b0084d43aadb68si6179989ejb.461.2023.01.10.07.22.09; Tue, 10 Jan 2023 07:22:22 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=paSOTQBf; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238621AbjAJPEJ (ORCPT + 53 others); Tue, 10 Jan 2023 10:04:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238828AbjAJPDd (ORCPT ); Tue, 10 Jan 2023 10:03:33 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D0085C1EF for ; Tue, 10 Jan 2023 07:03:28 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id s8so5127442plk.5 for ; Tue, 10 Jan 2023 07:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6qhudAhZPV2iDT+KE0kLjqDPYcS33lIjDaCweDJV/Yw=; b=paSOTQBfcv/CXVsX2hlndz2PQG6+9r6Y7xHwUqxNwSJmyhdEV3NhWFNJINv5wopuCk bq6D18LQyZpX8zqs7Qux/I8r1v6mv4C9qKtdr4svj7ZqTrtLfycgr4Wc/LrfXp/T8EUV uxH2g7kZjvoAFIf/pm3/ZX8VpuiU1J/kgtMepjGfqzVwjchgMVobHlvHb/jK7FeoqiDo 9340HGdZJSlDuQMNdiUChR7W70w864zqVmUsDFq26m3cZA6JUNVAd5abOHeK0TQzAqt/ JQSpxoLpKyh1yc6Si5Wc9LR7C2tC0jZVEybizOTVM69oAewey4y06nNVZR5WCgkJWul7 wjJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6qhudAhZPV2iDT+KE0kLjqDPYcS33lIjDaCweDJV/Yw=; b=BgHT96H0aQeI9UBLm3eAWzqIdszxf+RQPxvRC9hNT2MzTCCQK2b03a03/urmxQaSts uIuuapaUN33edABrQBfFkF2AYCcZ5+yYkc/vvdtaPj11ZYQ4oNaK+s8wA1v4sN1Edea7 vpKZres/A+dTk5EgrnOhfgkDT4qyB5yR9WmkHX+DpecBwIE179qiFWAG0WHE2hEGI81N Qq+eQmAJZqzzSjix0qfdA+En42xB2Bzuj645rvebLQ+O594Cd5iro+Ww3SavOxl1x1xm pUaAnQCrftqqwMsEhsR0jNBAPItSPqd/DWU+o4zT6MJky8U9cMXCMK2P0PP0f6qVe2Ql OPZA== X-Gm-Message-State: AFqh2kqCpsAZyl5DtWTCbN4Ico9f4oO3Qp7rLM/j5dOAA09VDfEH4U11 hDuYgNsYVkU4dgNL9JTNo1U= X-Received: by 2002:a05:6a21:3942:b0:9d:efbe:2065 with SMTP id ac2-20020a056a21394200b0009defbe2065mr90520239pzc.27.1673363007601; Tue, 10 Jan 2023 07:03:27 -0800 (PST) Received: from vernon-pc.. ([49.67.3.29]) by smtp.gmail.com with ESMTPSA id y14-20020a63fa0e000000b004a7e39ff1e8sm7003212pgh.49.2023.01.10.07.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 07:03:26 -0800 (PST) From: Vernon Yang To: Liam.Howlett@Oracle.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vernon Yang Subject: [PATCH] mm/mmap: fix comment of unmapped_area{_topdown} Date: Tue, 10 Jan 2023 23:03:20 +0800 Message-Id: <20230110150320.1676299-1-vernon2gm@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 The low_limit of unmapped area information is inclusive, and the hight_limit is not, so make the comment to correct. Fixes: 3499a13168da ("mm/mmap: use maple tree for unmapped_area{_topdown}") Signed-off-by: Vernon Yang --- mm/mmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index c9da9119d7f2..e06f9ae34ff8 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1554,7 +1554,7 @@ static inline int accountable_mapping(struct file *file, vm_flags_t vm_flags) * the correct alignment and offset, all from @info. Note: current->mm is used * for the search. * - * @info: The unmapped area information including the range (low_limit - + * @info: The unmapped area information including the range [low_limit - * hight_limit), the alignment offset and mask. * * Return: A memory address or -ENOMEM. @@ -1581,10 +1581,10 @@ static unsigned long unmapped_area(struct vm_unmapped_area_info *info) /** * unmapped_area_topdown() - Find an area between the low_limit and the - * high_limit with * the correct alignment and offset at the highest available + * high_limit with the correct alignment and offset at the highest available * address, all from @info. Note: current->mm is used for the search. * - * @info: The unmapped area information including the range (low_limit - + * @info: The unmapped area information including the range [low_limit - * hight_limit), the alignment offset and mask. * * Return: A memory address or -ENOMEM. -- 2.34.1