Message ID | 20240313214719.253873-2-peterx@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 026D3C54E58 for <linux-arm-kernel@archiver.kernel.org>; Wed, 13 Mar 2024 21:50:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZwgLzyxUxzVv7rw1G9h1KODUBJf/cFyLoFjHEFSnKOw=; b=KfjjpQaylVukKW Xku+4KqL7LyTYLTUoNk7+7lG1ZGc1jN3BPW6LolFdaUwB2ZTwXuxf410eGPak4zCJZmKeO28JnOdX GRnH07Ma8DozatoPpq9/uebRvd1JVkajrMUwiikZ3DYhXf/uh1e4X3tJCrbbUAQ0NX51pM/i4mGij BF3B05RAVGwdFCtpWtQoPZsMoKQC9QY9I5yszTzavpPBjTebTsM1P5lBiKPnvbSeBB79FvqDTORtm 5dsRA3aUZW7WtujNfJB4q8FxBTkG8p/8H7NyVXsmEAIRaEpcTNg5OCN6VKuzcL2rN/cQIAGa8RP3e aSFtyRJW0aWThOA2QUPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkWU9-0000000C1pJ-1hSS; Wed, 13 Mar 2024 21:50:05 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkWT8-0000000C1Gh-3HJL for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2024 21:49:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710366541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o8evz9V3UX8qsNtRrNT6H/1m1GM34KP8FDwkI2vjQ2A=; b=MBR2z/Py0YVY1pVV2cY02vJOdT/ioowrUHJhfYJsMf+oQ5g5Aj2FLn4KKcJ5ujMslcvvnM MLsxv4hdTJ9zaXKII53zwCxfwH9I5N5ONitK0eUhXK4SCxvM3k4c0QFaco++dzMe5f1EIH Z1j7TpgzogWjvmobFDljK+vwIjPdtdg= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-452-c9agj_QkOvmsJ3Lb4wGFXw-1; Wed, 13 Mar 2024 17:47:23 -0400 X-MC-Unique: c9agj_QkOvmsJ3Lb4wGFXw-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-690ab2b0de1so1162676d6.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 13 Mar 2024 14:47:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710366443; x=1710971243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o8evz9V3UX8qsNtRrNT6H/1m1GM34KP8FDwkI2vjQ2A=; b=oYQxXRWx8eukINPEzr/mSkZIWZIkCxF+RKfm5MZOqXLeRTRxpMlKOUMYVxl17ExYsk d6VyqcO262GEkLYT0NGIk26qEd4yyDb/zlc0zMQO3WyI5G4Ms8e95SF619CBdzzfuQNe 3Pluca7eJTRawPUL5ZeSA9veZD2IiFqfWyrk5NX4im0+7QmZy5hkB7ts6zy13kvgeIWE X5wp3fk8jv8SaQUIKjpNM1j72tGSx88X1WSXH5EUpksHDqJJdagihPKW1KTiw7RnhK9X AX+rRLElGkQ9f6gIbVqGPY5s/oSibgZl4ns+82ANFOrjQcR5drI72YXNjNKME8UTT+i3 Yazw== X-Gm-Message-State: AOJu0Yy3gtRkdP71GomqKKVXR0eJ6CBKhG3uwtSjJ/mJ/q2Dncn2MSdP Ql6/TV4y5OIlLESfiVnaxtQYpnV6ZXkbkJqTo9jditIC+9FCyvts5QtfPfSH76MUdSSTMywnuPd 6YhZPARCFKwNocAjs7TdGxhPox2ncud7VzP8/dGea9JxSxAh4FQjtreuXiRw8J+gsrsDY16f8 X-Received: by 2002:a05:6214:1743:b0:690:27a:e6 with SMTP id dc3-20020a056214174300b00690027a00e6mr5703633qvb.5.1710366443332; Wed, 13 Mar 2024 14:47:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGB+0sslZT/w15j/K+m+SJUdgZVImDODUje9EjvSi+lJj4JWIjdAUo0kKWd9JJ6p81zVpsztA== X-Received: by 2002:a05:6214:1743:b0:690:27a:e6 with SMTP id dc3-20020a056214174300b00690027a00e6mr5703604qvb.5.1710366442877; Wed, 13 Mar 2024 14:47:22 -0700 (PDT) Received: from x1n.redhat.com ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id dv10-20020ad44eea000000b0069111c5cdd4sm60114qvb.100.2024.03.13.14.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 14:47:22 -0700 (PDT) From: peterx@redhat.com To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: linux-arm-kernel@lists.infradead.org, Matthew Wilcox <willy@infradead.org>, linuxppc-dev@lists.ozlabs.org, Christophe Leroy <christophe.leroy@csgroup.eu>, Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org, peterx@redhat.com, Mike Rapoport <rppt@kernel.org>, Muchun Song <muchun.song@linux.dev>, sparclinux@vger.kernel.org, Jason Gunthorpe <jgg@nvidia.com>, Alistair Popple <apopple@nvidia.com> Subject: [PATCH 01/13] mm/hmm: Process pud swap entry without pud_huge() Date: Wed, 13 Mar 2024 17:47:07 -0400 Message-ID: <20240313214719.253873-2-peterx@redhat.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240313214719.253873-1-peterx@redhat.com> References: <20240313214719.253873-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240313_144903_258120_FB09F036 X-CRM114-Status: GOOD ( 14.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
mm/treewide: Remove pXd_huge() API
|
expand
|
diff --git a/mm/hmm.c b/mm/hmm.c index 277ddcab4947..c95b9ec5d95f 100644 --- a/mm/hmm.c +++ b/mm/hmm.c @@ -424,7 +424,7 @@ static int hmm_vma_walk_pud(pud_t *pudp, unsigned long start, unsigned long end, walk->action = ACTION_CONTINUE; pud = READ_ONCE(*pudp); - if (pud_none(pud)) { + if (!pud_present(pud)) { spin_unlock(ptl); return hmm_vma_walk_hole(start, end, -1, walk); } @@ -435,11 +435,6 @@ static int hmm_vma_walk_pud(pud_t *pudp, unsigned long start, unsigned long end, unsigned long *hmm_pfns; unsigned long cpu_flags; - if (!pud_present(pud)) { - spin_unlock(ptl); - return hmm_vma_walk_hole(start, end, -1, walk); - } - i = (addr - range->start) >> PAGE_SHIFT; npages = (end - addr) >> PAGE_SHIFT; hmm_pfns = &range->hmm_pfns[i];