Message ID | 20210708010750.QylhRRP19%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=OeGd=MA=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C577EC11F6F for <linux-mm@archiver.kernel.org>; Thu, 8 Jul 2021 01:07:54 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7A48561C4E for <linux-mm@archiver.kernel.org>; Thu, 8 Jul 2021 01:07:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A48561C4E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 674ED6B0074; Wed, 7 Jul 2021 21:07:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 64AA76B0075; Wed, 7 Jul 2021 21:07:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 513EE6B0078; Wed, 7 Jul 2021 21:07:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0173.hostedemail.com [216.40.44.173]) by kanga.kvack.org (Postfix) with ESMTP id 297126B0074 for <linux-mm@kvack.org>; Wed, 7 Jul 2021 21:07:54 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 8A8E022AD8 for <linux-mm@kvack.org>; Thu, 8 Jul 2021 01:07:53 +0000 (UTC) X-FDA: 78337633626.29.6918EA0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf21.hostedemail.com (Postfix) with ESMTP id 03427D0035DC for <linux-mm@kvack.org>; Thu, 8 Jul 2021 01:07:52 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 3205161C77; Thu, 8 Jul 2021 01:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625706472; bh=Vpt0nxqEaH/XK/x7gI6bT6UxUdj9zEfqIfNoeiADL2k=; h=Date:From:To:Subject:In-Reply-To:From; b=pRrOFPC8pFBWiLsqS8fd8pXP0myFi9F6KJVBvlr5QAknVFL/8tZFyRVBb83tG5dGm stGOYXJo1UaFXxG7NJncavUXDoL/5Y0gYquFljSXh7Gg32ggnGQLKp9I16rlPM/nMD 7CymW+T0R3/MseTfzg8vDB2f10ADDrTPut05ocUY= Date: Wed, 07 Jul 2021 18:07:50 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, arnd@arndb.de, bp@alien8.de, catalin.marinas@arm.com, cl@linux.com, dan.j.williams@intel.com, dave.hansen@linux.intel.com, david@redhat.com, elena.reshetova@intel.com, guro@fb.com, hagen@jauu.net, hpa@zytor.com, James.Bottomley@HansenPartnership.com, jejb@linux.ibm.com, kirill@shutemov.name, linux-mm@kvack.org, lkp@intel.com, luto@kernel.org, mark.rutland@arm.com, mingo@redhat.com, mm-commits@vger.kernel.org, mtk.manpages@gmail.com, palmer@dabbelt.com, palmerdabbelt@google.com, paul.walmsley@sifive.com, peterz@infradead.org, rick.p.edgecombe@intel.com, rppt@linux.ibm.com, shakeelb@google.com, shuah@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, tycho@tycho.ws, viro@zeniv.linux.org.uk, will@kernel.org, willy@infradead.org Subject: [patch 08/54] mmap: make mlock_future_check() global Message-ID: <20210708010750.QylhRRP19%akpm@linux-foundation.org> In-Reply-To: <20210707175950.eceddb86c6c555555d4730e2@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=pRrOFPC8; dmarc=none; spf=pass (imf21.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam02 X-Rspam-User: nil X-Rspamd-Queue-Id: 03427D0035DC X-Stat-Signature: ctk5ja6t8wfboncbjbo9ao31b9bj9mus X-HE-Tag: 1625706472-416407 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: <linux-mm.kvack.org> |
Series |
[01/54] lib/test: fix spelling mistakes
|
expand
|
--- a/mm/internal.h~mmap-make-mlock_future_check-global +++ a/mm/internal.h @@ -360,6 +360,9 @@ static inline void munlock_vma_pages_all extern void mlock_vma_page(struct page *page); extern unsigned int munlock_vma_page(struct page *page); +extern int mlock_future_check(struct mm_struct *mm, unsigned long flags, + unsigned long len); + /* * Clear the page's PageMlocked(). This can be useful in a situation where * we want to unconditionally remove a page from the pagecache -- e.g., --- a/mm/mmap.c~mmap-make-mlock_future_check-global +++ a/mm/mmap.c @@ -1352,9 +1352,8 @@ static inline unsigned long round_hint_t return hint; } -static inline int mlock_future_check(struct mm_struct *mm, - unsigned long flags, - unsigned long len) +int mlock_future_check(struct mm_struct *mm, unsigned long flags, + unsigned long len) { unsigned long locked, lock_limit;