Message ID | 20210215161349.246722-12-pasha.tatashin@soleen.com |
---|---|
State | Accepted |
Commit | 24dc20c75f937b8f5c432e38275e70a1611766e9 |
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.8 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, 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 70765C433E0 for <linux-kselftest@archiver.kernel.org>; Mon, 15 Feb 2021 16:24:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2EAD864DF4 for <linux-kselftest@archiver.kernel.org>; Mon, 15 Feb 2021 16:24:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbhBOQXd (ORCPT <rfc822;linux-kselftest@archiver.kernel.org>); Mon, 15 Feb 2021 11:23:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232640AbhBOQS2 (ORCPT <rfc822;linux-kselftest@vger.kernel.org>); Mon, 15 Feb 2021 11:18:28 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9579AC061A2D for <linux-kselftest@vger.kernel.org>; Mon, 15 Feb 2021 08:14:09 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id f17so6829575qkl.5 for <linux-kselftest@vger.kernel.org>; Mon, 15 Feb 2021 08:14:09 -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=vUuAAALAJI+fG2870accHSSNYQyYhwy7cx5c7d7E6Y4=; b=PdbEFtYoJ7fLCoJclskCNrywQzZFn7Ehke/MEjfGzebydpPcze/MbHTovjhEJ3Gxwz lU//OV8u/i/u5TFvO6g54OIG15qqYb3eLSH/9sD+SE4p5e7ib0AE1MXIEVuj6QOppUqK 5wgQZOykjgGcg4HGOhAcTdS5+DdkmYNK0JMovhC+Rr2BW6px4HxAjAQclgTlx++aXrRg dORz3YdX21yrIDCMgbEttpCZ3oMi4PgsrkUQjLGE0Iefwqi27AtMcIHKJDoOwHXlk/HJ At1ADH74dBa2oeIzVAN8ePzthxpfhxXOMUbN95jy/B1U2QBL/hOLhTs7JWZ+tePxvsM1 kVsQ== 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=vUuAAALAJI+fG2870accHSSNYQyYhwy7cx5c7d7E6Y4=; b=fE/g3pA1PT9W6S0r7Q4Ba4OF9iLeSph5iQpZ5HAMuifXBW2sgzrgxsH65PLeF++L0E 4KOapk4I/766QPrP1edsvisBoCQoM+yCVmBMz5lTKSpTDIfr1tpkae0IkFQzC7g3SQIJ aGmeOKDsKGAKTy5B+//WmxMvwCBKqXcePLLIHojO2GJVAbQlqy0TzkfSMAH9m0OODd9T FWIjumYlwKDGogV4WyREe+/zinMPRwZF+mz3ZRntf6jQ5T4lN06daz2xSeh4+wiHRmIZ k8+ho0Slr/zzwKBLfTB6F+0BFnUd1rqeSqOM1crfSbMNYm24eWZC+4I7TtLVpA55/FIy X7Jw== X-Gm-Message-State: AOAM5308Ioxpi+zL9H/2jxjkDZ3NCXym/IntuLtd4ve/yOkvB86JI9JQ 399piTr+wBG2QYOK+A50XUcXWg== X-Google-Smtp-Source: ABdhPJxSYuHk8rlO/e3c8oYUvO2n9UzI0eM2ykQ1xa7yO+vQpCjOgaDKiXLGr3gxZJzO/JFgBjQdFQ== X-Received: by 2002:a37:9b0c:: with SMTP id d12mr15164482qke.215.1613405648876; Mon, 15 Feb 2021 08:14:08 -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 u7sm10909213qta.75.2021.02.15.08.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 08:14:08 -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 v11 11/14] mm/gup: change index type to long as it counts pages Date: Mon, 15 Feb 2021 11:13:46 -0500 Message-Id: <20210215161349.246722-12-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210215161349.246722-1-pasha.tatashin@soleen.com> References: <20210215161349.246722-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 da6d370fe551..fab20b934030 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1472,7 +1472,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.