From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAE876453 for ; Tue, 22 Mar 2022 21:42:39 +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> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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, _