Message ID | 20240318200404.448346-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 7B661C54E58 for <linux-arm-kernel@archiver.kernel.org>; Mon, 18 Mar 2024 20:04:26 +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=2tpEB+g7hkKmNm nS1QXTKe9sXHk1acTtgbtn70u3fAg7iTp5Zd6wgGpqDVFEwvc+V4beOcRb8JKQLZ/+3S1ggQgmL2P 3/cegimdNfFyvWfbC4QScwyH+1VSOG88P3mH9OT2HXGPbsF4GwDWPrqRdh6y9+ManUeijrmcXWaoq 5h+7l4BDgBiTrSNJfCWMilKvWpMnSV1XhvBR15xTbf4tDkTukJ+R1ug20zfMSlp2u08QfEWJynVGv uxjmY05MCnaZCF+7ZofcvzOKtPHD+Vd6QRKO5eW29NNtXKky/Wny5YaNxZny7zCFHtT3b76cXg9b8 o9FgS7UvOSkRq991PSFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmJDU-00000009wzm-3HE6; Mon, 18 Mar 2024 20:04:16 +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 1rmJDQ-00000009wwO-1GKp for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2024 20:04:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710792250; 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=D3EIu5v1UpmsnFhXhn7+WblxsinqrCVDg2tAmkdGHIKsoOV3Ka3zeUIbn+xbSpWAe6HRTT 4wAuWspfP0Trr5CxWjf0YM1QhJ5k6Lg1Ajn7I827gbxoDA+CYWU2bwsPDxuJ1cQ0Lf4NrT Cu7QjvY1+QEedEHRgjXn8td9DYpioXg= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-302-pHGcGPOyOzues9xLb776Gg-1; Mon, 18 Mar 2024 16:04:08 -0400 X-MC-Unique: pHGcGPOyOzues9xLb776Gg-1 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-430d73c0492so3449571cf.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 18 Mar 2024 13:04:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710792248; x=1711397048; 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=smHHX1a6WW3t23aakVMd1NwiPQF1rCVi4/j8kwPaIxUqx5ExF51GW1dYdPWD8zAlrd t2dGY8wGVmvPXPvCAIBKssnOmSqLK1jtI6GTV1WhwLyIgOYLJSkRFJA1K38r3s1pmq4y 19USbd26LmtraAHrp6S0AzdpnCvy9LmYO/bHtu8MkzNM1lQKKesPv1fXsxuAP3+3HWdk MRbHFr9Rh/r4nESvHtz+bEILn7a3BlHRQvVZodTu2CrsrRd0uBmGJOmIxjRUUsPPrGum 08cnbKR4viCfiJ/azzZMbh/fE31w8qCQvbbhZLUDaRFCAdFy2NVm55PfJpZJjdZi+Zu9 uhGw== X-Forwarded-Encrypted: i=1; AJvYcCXDXYWWVpnpsjJTVOAFwZzb036X009d5wuNrDvhJndy+8VgU1FwmPmsk4BwK7O1RN1IDj166BYWkiDY5ewNjrJbZhB6MAyY2eMuqBtVmd+1yOHz7i0= X-Gm-Message-State: AOJu0YzpsrUpewFG3LnLZuQ34WOLMwZgfwI2npJC1GTgrTxeXI15CtsZ 40GGOLzQpfDHHc3pFhqZxCtCN6xIySnLsixWvzWb/hWzxkgkA3Qc+pBSI/gvl59Us2IUWgKuVxP 6GhcfPCNV9uH9Ryc74T+p/SoP30NfWid/ko6weI9ic+NicAVhXRJnDZnJLgOfSX3PnEc6LXIf X-Received: by 2002:ac8:4e2c:0:b0:430:d071:2b0 with SMTP id d12-20020ac84e2c000000b00430d07102b0mr368390qtw.0.1710792248064; Mon, 18 Mar 2024 13:04:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6cgX9VgTY+xZMMhFw6lqDmni31WpaCJ4ySK//jo7z1XpjzLPLjahfNZgReizXXgubZZVEzA== X-Received: by 2002:ac8:4e2c:0:b0:430:d071:2b0 with SMTP id d12-20020ac84e2c000000b00430d07102b0mr368368qtw.0.1710792247694; Mon, 18 Mar 2024 13:04:07 -0700 (PDT) Received: from x1n.. ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id hj10-20020a05622a620a00b0042ebbc1196fsm3484491qtb.87.2024.03.18.13.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 13:04:07 -0700 (PDT) From: peterx@redhat.com To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton <akpm@linux-foundation.org>, x86@kernel.org, Muchun Song <muchun.song@linux.dev>, Mike Rapoport <rppt@kernel.org>, Matthew Wilcox <willy@infradead.org>, sparclinux@vger.kernel.org, Jason Gunthorpe <jgg@nvidia.com>, linuxppc-dev@lists.ozlabs.org, Christophe Leroy <christophe.leroy@csgroup.eu>, linux-arm-kernel@lists.infradead.org, peterx@redhat.com, Alistair Popple <apopple@nvidia.com> Subject: [PATCH v2 01/14] mm/hmm: Process pud swap entry without pud_huge() Date: Mon, 18 Mar 2024 16:03:51 -0400 Message-ID: <20240318200404.448346-2-peterx@redhat.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240318200404.448346-1-peterx@redhat.com> References: <20240318200404.448346-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-20240318_130412_449265_6B53B219 X-CRM114-Status: GOOD ( 15.06 ) 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];