Message ID | 20210211162427.618913-12-pasha.tatashin@soleen.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-kselftest-owner@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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 4E667C43381 for <linux-kselftest@archiver.kernel.org>; Thu, 11 Feb 2021 16:30:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 28A2964EC0 for <linux-kselftest@archiver.kernel.org>; Thu, 11 Feb 2021 16:30:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231891AbhBKQaE (ORCPT <rfc822;linux-kselftest@archiver.kernel.org>); Thu, 11 Feb 2021 11:30:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231951AbhBKQ1j (ORCPT <rfc822;linux-kselftest@vger.kernel.org>); Thu, 11 Feb 2021 11:27:39 -0500 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9535BC061A29 for <linux-kselftest@vger.kernel.org>; Thu, 11 Feb 2021 08:24:47 -0800 (PST) Received: by mail-qv1-xf2e.google.com with SMTP id dr7so1031305qvb.1 for <linux-kselftest@vger.kernel.org>; Thu, 11 Feb 2021 08:24:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=KnIo6b0mEfBi+N6pkBoUNy3tWIMzelUSHiTa3+9/dts=; b=n8Eu1wdTAh9Eu4OjEcbbsCdcAWsoWpPR6r6oYR8mtb7+gOiuwlw5rBoFjWAUF1aD4T TXzqZomyaBngyAVAPOpRH35SWz1FaO7N8eyisU1iXK+yeL/CmG3GjMM0lbDi1VM0RU5Y xl005mxCvoNcjB/gA8lU6/08bS7TVoKdrR9atqFIUZ2MFTaxrnGWK7+GJeJrkaj2eBvn 8DCsb16/e8ik7AkLva5ru4YCK7qz3//jrh0fkfWuQ2cbWV359i9AoN1BOgCZbBmwvJQ9 I2cGyZMZKHROPHbFEIIs6foth/8gNgH54qY6OhsqfuemiSCeodc9J6/bdG1jjwja7/V9 OaKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KnIo6b0mEfBi+N6pkBoUNy3tWIMzelUSHiTa3+9/dts=; b=mm04iBCoOUFjKRAs4l93BysfYye13oZH2AUCentHdwCN6Bxj6/tTUP+8aBFzgC32IG fVuNdCuJrYYpv8zlTGvYpQfpS7UVz72WeLAOMMgoGSewhre/2o2ISHDiyq7zIRwTcwLT 5hrS2G9Z/7VftbJsapwbcoX8fXyNi58DXm/V+MyxKAQGoiqCPgmH/NqGzgmD72fGNiqn hxxr2gaXu/DGhmsG73WIbMjgzeFYEgCwrHU/ci0qFKMjdE/iuEOc1kyISJxZCFKv9c0h YCRVhbfJDKM2kNuzb9AxWLpsgt7r/6TmWhfl7ED/nEsUWpo5839izoRnJHjalNYY9QW4 zE5Q== X-Gm-Message-State: AOAM532pf34dyXwuMXPtIcnl/Lv5FwbYeAIbqPQTVmDeb2Us3YLZ7RL/ Kgb0z5Ml+MohGry2pB2HPlL9lA== X-Google-Smtp-Source: ABdhPJzIeLzlqhbbKblTkU8XD7cXmkgY30iiBxIBBLyWnV0dtEAESq464td/C4isJdlFAK5z34rDsw== X-Received: by 2002:ad4:554c:: with SMTP id v12mr8612729qvy.41.1613060686722; Thu, 11 Feb 2021 08:24:46 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id i23sm3831778qtq.42.2021.02.11.08.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 08:24:46 -0800 (PST) From: Pavel Tatashin <pasha.tatashin@soleen.com> To: pasha.tatashin@soleen.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, vbabka@suse.cz, mhocko@suse.com, david@redhat.com, osalvador@suse.de, dan.j.williams@intel.com, sashal@kernel.org, tyhicks@linux.microsoft.com, iamjoonsoo.kim@lge.com, mike.kravetz@oracle.com, rostedt@goodmis.org, mingo@redhat.com, jgg@ziepe.ca, peterz@infradead.org, mgorman@suse.de, willy@infradead.org, rientjes@google.com, jhubbard@nvidia.com, linux-doc@vger.kernel.org, ira.weiny@intel.com, linux-kselftest@vger.kernel.org, jmorris@namei.org Subject: [PATCH v10 11/14] mm/gup: change index type to long as it counts pages Date: Thu, 11 Feb 2021 11:24:24 -0500 Message-Id: <20210211162427.618913-12-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210211162427.618913-1-pasha.tatashin@soleen.com> References: <20210211162427.618913-1-pasha.tatashin@soleen.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kselftest.vger.kernel.org> X-Mailing-List: linux-kselftest@vger.kernel.org |
Series |
prohibit pinning pages in ZONE_MOVABLE
|
expand
|
diff --git a/mm/gup.c b/mm/gup.c index ced2303dc59e..9d303c8e907f 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1471,7 +1471,7 @@ static long __get_user_pages_locked(struct mm_struct *mm, unsigned long start, { struct vm_area_struct *vma; unsigned long vm_flags; - int i; + long i; /* calculate required read or write permissions. * If FOLL_FORCE is set, we only require the "MAY" flags.