Message ID | 20240318200404.448346-2-peterx@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3650C54E69 for <linux-mm@archiver.kernel.org>; Mon, 18 Mar 2024 20:04:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5C5766B0087; Mon, 18 Mar 2024 16:04:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 526876B0085; Mon, 18 Mar 2024 16:04:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C77D6B0087; Mon, 18 Mar 2024 16:04:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 2FFA56B0083 for <linux-mm@kvack.org>; Mon, 18 Mar 2024 16:04:15 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id F3100A082B for <linux-mm@kvack.org>; Mon, 18 Mar 2024 20:04:14 +0000 (UTC) X-FDA: 81911236428.28.63715FC Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf19.hostedemail.com (Postfix) with ESMTP id C7A6B1A0008 for <linux-mm@kvack.org>; Mon, 18 Mar 2024 20:04:12 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=L6kRHjYt; spf=pass (imf19.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710792252; a=rsa-sha256; cv=none; b=t6VHP1WEZQp3XX+jgj7P8eAq87FWZLCOtr5Uhx7tUf+ytOnRqpqrsIrYRCClj6xJqY8irz smqnRGWlPw5Tz9jzaz9QfSpCir0GvHDJO6wSNGw5XoTCCvjQ9GhxofBM1I/L8w513Xt+L/ ORuHWhSeCMW4M7uLGLgviLzlwtBppkA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=L6kRHjYt; spf=pass (imf19.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710792252; h=from:from:sender: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:dkim-signature; bh=o8evz9V3UX8qsNtRrNT6H/1m1GM34KP8FDwkI2vjQ2A=; b=goMmOda+oO8dgsMgzeWgbVnKDwVQyT8l/E8XSvPpMsLG6qEWOTpfwIu6Cqy1XC5c7ERK5R DgvKElfEOReq3g8fH+d+dNBnbtrnoCN/95NOqQ81WOKaq9/Uspw3NfADmDsshIqIGXz3hL SDNtkcfsq6Ub3pTiDVUKa2E9zH96pdk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710792252; 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=L6kRHjYt1gpwvn4RI9SIlBuglh8YQDFaX/4TipjDQ502EOAsCyGVBwod1Wo4CfsJ4+y86n mznCoeklXNoRaQk8eI54YIfaaPpVFIfffI7ZsGxJYD2xhj45shvual+hUWYFd9ulmaE3Gd fDIg7J+ygm/E0HlOOUAeablVHouplT0= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-491--hOKYtLoPW2rtxNnBd_y0g-1; Mon, 18 Mar 2024 16:04:08 -0400 X-MC-Unique: -hOKYtLoPW2rtxNnBd_y0g-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-430d73c0492so3449591cf.1 for <linux-mm@kvack.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=E+u+NouJG7MnrX7fdDh3B2j3C8fRiqmCUJuCcV4Ai2GUj6SxnVBZv1vNfYeP6lKziK Z5qqkadiK1XZFFT9Vhv3JGu8/Ps1bKQYDMGyLSVQhUqWxGJTd5P88Xy58y8VF52hNojW mOIC7ZE063Cc/lHA5KExKFy4awb+MSaOuviyIPJwFTd1VhGSWscxvqqMIrq5VH85+FYR 3zYC9frWWYl2jY5vqdVeOe+TssZyxY/+mSEtqV7ymRNh69I+Y3jzeXCiD1E/F6q6H3PC 6f8Ug41bwHYq9vCMZsFj7/tgcW1eKZJpFy9TRM/P8osA3M8+3Kb7rDIOEpfna9WXPm0X niZw== X-Forwarded-Encrypted: i=1; AJvYcCWXYuMgpaYIwHh8QZKbkd4s/WFm56iJLWyMOWd+Nb9NYUQcdkd8k/aXsMDe2etFnMJK8U0vNY1kz5fZDjC6uhh9aHA= X-Gm-Message-State: AOJu0YzI+tYO4L8QMXwxGgEg6Sma2+A5m7+b7pMwNQOwvbgXQB/tNg6M 96qPo495jwrhfBspmz5wCi59zZvkwnVop5igF3v6B6+R6PqQ+X5kCcodbgDhPirCi8ZHot5GTAY kGOR7FofcH9yOucGloqQ2IlBxC7gunNyh1D6uNSPv1CKeDWfA X-Received: by 2002:ac8:4e2c:0:b0:430:d071:2b0 with SMTP id d12-20020ac84e2c000000b00430d07102b0mr368389qtw.0.1710792248063; 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: C7A6B1A0008 X-Stat-Signature: hxneu8rybekxggdc995cq68zksguk46x X-Rspam-User: X-HE-Tag: 1710792252-823209 X-HE-Meta: U2FsdGVkX18yoFxWLuh1hChVdlnowB/MlbEJJ/ky6JWkfDqrIzZWOSEXk85U+OgFVSywkblCVWXb7FmVrrIE89I1HhAAcV3OrLtXc3fTOoG7Erpr8Ydi0RRGcb6SNiSRF1s1vZtXMYqczgDhbSH3AZ9CJV0g85fTUwWC8/ltdcYgCmqAUCWTQrXGkIOkIc94jKIlSitVV2eZKkBPVKhrz8wbfKskAHtlQNgWHO/e1QD87W2hyEHkbwkYwhSVenSr6VthKbIWRzD9n6vYZ3YjOTzzc1LOteSm47LWYdG4yuWZyrU++QTc6o2KXmluNiWmCIFg1PeGGtyZaNc1Zmolsp7GiCjh8woIporZ20GQqRBG0/Ca4vVjsoquVe5PQujGg9zNicpTO/35JJ/P4sTU6RHwT8AaSBoFSp8nMhemdQpypR8ECXs00g7nccRBXlSpCg9WP6QmWOYS0KUATfh+B9H6EW9zDUvE4iHQNmwxAcpakJg0T6AR0g6TPRUGbjMtteZCPqYol8Ej4ymtsM5yr/mkUKxpPTAV22OvjSEl/Eel/fKQw9gpN70/t2XlsbwIwt9IW65Sxdc8iayi3zwStnQGR3ub8euCQMWpwFYqT6aQaezz6Z09k2WpRO1ral7tuQHvwaWtwJM2X/KU5RGqLyQRpvlMFc2r4HNtpzZRdXUI1UzyxV62d8AhdDoK2LBQffcn+RJ9hHrq00kivndt6MONKYyzLmM/tG9WrFkrY8Vw/OX099s8zPw1gg4Ov0TrI85DPr7h7t+xgjIOuIGFuvQLWL7dMf354/egC+HQr/VC/jflv/RJWTK6iZKWoO14wBAtSBNreBcIXSNl7dBk/smLKg2G1hwG+nyr/0/BUg4feUqH7mYe3CWXasxNs2yKVhbv+YieuUv6zzTTv55NqffxjlSs1A8G7Udu30i304hlexR3VwNkRFsrPtw7hwuc+jtvZVp4EfS5mUERE0a VLmprMDb QwZhE59PHpNJl1iTticXx9UnVqdohlpOGkOJYJSIMNyz1t9DrfR8OLrK7enS2pgxVVwO1TYllV5Bir/Fc4GaM5f5C/BSane6EawKg+ly3DWptVTLu7TBCpklbDjTU2M+2S1sBhpk38mARazucxDSEXNIZisvYBRl7zwOEBa1OJXbsBv6yw9iXwqzbxosuZXGcQRtvD9LC3MA+PQ5sF30Td7I+J58IKcK3gkq9lNtR7VjvKIKYYEH+hlHI0o44/arzncXuMKBjpi7JTSd65puseu+DjyBdVJFT4+SSTk6+QoNDwFPjt7zGSxNUO2K/xImlbGiYtu+24zb7xmIXLLb03t9oARntfqU6mZx2PPr5TPLguEU8ZhZ45Etnj8bKTQIYiMxF2xTsFaUOELzFaP9i2VcPKPFRiELpnDP1dCIN965QhJuc0PoZX/E86d0DvL7IHwZUs8otdKMun78= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.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];