From patchwork Tue Mar 22 21:42:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12789121 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 62051C433F5 for ; Tue, 22 Mar 2022 21:42:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E8DB16B00C6; Tue, 22 Mar 2022 17:42:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E137F6B00C7; Tue, 22 Mar 2022 17:42:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8C666B00C8; Tue, 22 Mar 2022 17:42:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0018.hostedemail.com [216.40.44.18]) by kanga.kvack.org (Postfix) with ESMTP id B63946B00C6 for ; Tue, 22 Mar 2022 17:42:42 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 78E9718209BD4 for ; Tue, 22 Mar 2022 21:42:42 +0000 (UTC) X-FDA: 79273346964.18.2DD8DB6 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf14.hostedemail.com (Postfix) with ESMTP id A236210001F for ; Tue, 22 Mar 2022 21:42:41 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E90DEB81DAF; Tue, 22 Mar 2022 21:42:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A11A7C340F3; Tue, 22 Mar 2022 21:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647985359; bh=sgXnbpK3OL1x/YqQqwFQP1CQFUTj6EI9JU7bIqejWBM=; h=Date:To:From:In-Reply-To:Subject:From; b=g+0ewIdnB1OvfZkdktYnBJQhcP3dAkyC4eZmZlQDr7kyLPR8M0/UF3BtWkbRnQVzi M4BQqI6uhGRgIupUFI6rlglvmy/fAExJ+A/uwxTN+wspNSFkdj+ZlhLlUnEEruPJ6F 4UdatXb9IlcznJ3FSoP0yPTqv4k7xeVZWg1oKhw8= Date: Tue, 22 Mar 2022 14:42:39 -0700 To: linmiaohe@huawei.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220322143803.04a5e59a07e48284f196a2f9@linux-foundation.org> Subject: [patch 081/227] mm/mmap: remove obsolete comment in ksys_mmap_pgoff Message-Id: <20220322214239.A11A7C340F3@smtp.kernel.org> X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 8qxtsznafb594r8knyzypuzhqow9wa3k Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=g+0ewIdn; dmarc=none; spf=pass (imf14.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Queue-Id: A236210001F X-HE-Tag: 1647985361-878188 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: From: Miaohe Lin Subject: mm/mmap: remove obsolete comment in ksys_mmap_pgoff RLIMIT_MEMLOCK is already reimplemented on top of ucounts now. And since commit 83c1fd763b32 ("mm,hugetlb: remove mlock ulimit for SHM_HUGETLB"), mlock ulimit for SHM_HUGETLB is further removed. So we should remove this obsolete comment. Link: https://lkml.kernel.org/r/20220309090623.13036-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Signed-off-by: Andrew Morton --- mm/mmap.c | 2 -- 1 file changed, 2 deletions(-) --- a/mm/mmap.c~mm-mmap-remove-obsolete-comment-in-ksys_mmap_pgoff +++ a/mm/mmap.c @@ -1616,8 +1616,6 @@ unsigned long ksys_mmap_pgoff(unsigned l /* * VM_NORESERVE is used because the reservations will be * taken when vm_ops->mmap() is called - * A dummy user value is used because we are not locking - * memory so no accounting is necessary */ file = hugetlb_file_setup(HUGETLB_ANON_FILE, len, VM_NORESERVE,