From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 E3ED7C433EF for ; Wed, 8 Sep 2021 16:35:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 60E8B61154 for ; Wed, 8 Sep 2021 16:35:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 60E8B61154 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id D46DB6B006C; Wed, 8 Sep 2021 12:35:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CF7596B0071; Wed, 8 Sep 2021 12:35:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE6516B0072; Wed, 8 Sep 2021 12:35:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0021.hostedemail.com [216.40.44.21]) by kanga.kvack.org (Postfix) with ESMTP id B22656B006C for ; Wed, 8 Sep 2021 12:35:22 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 69C4A231DC for ; Wed, 8 Sep 2021 16:35:22 +0000 (UTC) X-FDA: 78564956484.09.9C1A08C Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf21.hostedemail.com (Postfix) with ESMTP id 1CBAAD02AAE6 for ; Wed, 8 Sep 2021 16:35:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631118921; 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; bh=9VEB0mabxX6H0IauzWOmg7fC92taQHzVcX3Un2fABB0=; b=gLbEg/CIIzrqsn9ePET3zKjC4n4cMm5XTsdgY0sAzXAakY5ahHCf0EdsdvKE67/t3+HtoP c0/JjUrIjO4TAzUd2Dg9IMS7yfmVF4j8yrCRxEc5q82a8m9bQoMbiPsKYDJM+bMTBfB4XM cFyqXPF6N8AplLXnpSrGAPikRVJg818= Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-47-hTv9N-yyMBG5TqVb-nnnLg-1; Wed, 08 Sep 2021 12:35:20 -0400 X-MC-Unique: hTv9N-yyMBG5TqVb-nnnLg-1 Received: by mail-il1-f197.google.com with SMTP id d17-20020a9287510000b0290223c9088c96so2133013ilm.1 for ; Wed, 08 Sep 2021 09:35:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9VEB0mabxX6H0IauzWOmg7fC92taQHzVcX3Un2fABB0=; b=F+z1SS2c3zFl7nHMoh8ASxdArcSWIzn7NfA/cq4ia9E5w1mZHlEZ6cPzUqESZ9HqAy WLYZGFAeDpIM5eUSP0wUXNAnhwSRJ9T+80XlyxLfTJChHZkyrEgUUfGvVA+9OLt7qIAq JuSGFuPD+D9vSCSKMspn7+tykg4ISZp0KEiEmeffoi4ZLpBPUUJ8G7ibT24nCPLpHDsP xzJ+ySy7C7lwGmoMpV7Tv7wXXU+p96KaUNUMWEz69oeuIzAE8th+eA33lIIJuyjQInem qpQs/mkl5PO0KOhZ51MM/oBS11FZRjPPLVVlf5uMi0m17yVlbtpAcqsEqE3jQWRM5TFm NJMQ== X-Gm-Message-State: AOAM531oiLLCylKozKT8zyl5mKI63/yDs7h/bvnibhOpOxTCQXohCh9l BDcB/ixFo7ZlDsd91GSmg4JUDRYOh5c9vCfnysxJ0QPpI8JqO1sE4/WzTcgLhER72gMmFrtPQGx gQXPlpwtOp2I= X-Received: by 2002:a6b:14f:: with SMTP id 76mr594883iob.211.1631118919432; Wed, 08 Sep 2021 09:35:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0/FEqnBC9+7xMfSY1XzYnMfc5+o2WWR+2kVyCZ7N3zjAkhmv3GEWNQ5jVL7+vq0H9XCy2xQ== X-Received: by 2002:a6b:14f:: with SMTP id 76mr594849iob.211.1631118919137; Wed, 08 Sep 2021 09:35:19 -0700 (PDT) Received: from t490s.phub.net.cable.rogers.com ([2607:fea8:56a3:500::ad7f]) by smtp.gmail.com with ESMTPSA id b10sm1336961ils.13.2021.09.08.09.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 09:35:18 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hugh Dickins , Andrew Morton Cc: Yang Shi , Miaohe Lin , Alistair Popple , Matthew Wilcox , David Hildenbrand , Jerome Glisse , "Kirill A . Shutemov" , Andrea Arcangeli , Liam Howlett , Mike Rapoport , peterx@redhat.com Subject: [PATCH v3 0/5] mm: A few cleanup patches around zap, shmem and uffd Date: Wed, 8 Sep 2021 12:35:11 -0400 Message-Id: <20210908163516.214441-1-peterx@redhat.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 1CBAAD02AAE6 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="gLbEg/CI"; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf21.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.129.124) smtp.mailfrom=peterx@redhat.com X-Stat-Signature: w8k5ydd9fryhu9u6ch8bm5mzif9o8z57 X-HE-Tag: 1631118921-530031 Content-Transfer-Encoding: quoted-printable 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: [Based on linus/master, commit ac08b1c68d1b which should contain the rece= nt -mm pull, if not applicable, I can repost anytime] v3: - Patch "mm: Add zap_skip_check_mapping() helper" - In zap_skip_check_mapping() check zap_mapping first [Alistair] - Patch "mm: Add ZAP_FLAG_SKIP_SWAP and zap_flags": - Fix English errors in commit message [David] - Drop paragraph mentioning commit 22061a1ffabd in commit msg - Set ZAP_FLAG_SKIP_SWAP for unmap_mapping_page() too - Pick up r-bs v2: - Patch "mm: Clear vmf->pte after pte_unmap_same() returns" - Remove one comment [David] - Collect r-b for patch 2/3 - Rewrite the last two patches to drop ZAP_FLAG_CHECK_MAPPING, dropping Alistair's r-b on patch 5 because it changed [David, Matthew] =3D=3D=3D=3D=3D v1 cover letter =3D=3D=3D=3D=3D I picked up these patches from uffd-wp v5 series here: https://lore.kernel.org/lkml/20210715201422.211004-1-peterx@redhat.com/ IMHO all of them are very nice cleanups to existing code already, they're= all small and self-contained. They'll be needed by uffd-wp coming series. I= would appreciate if they can be accepted earlier, so as to not carry them over = always with the uffd-wp series. I removed some CC from the uffd-wp v5 series to reduce the noise, and add= ed a few more into it. Reviews are greatly welcomed, thanks. Peter Xu (5): mm/shmem: Unconditionally set pte dirty in mfill_atomic_install_pte mm: Clear vmf->pte after pte_unmap_same() returns mm: Drop first_index/last_index in zap_details mm: Add zap_skip_check_mapping() helper mm: Add ZAP_FLAG_SKIP_SWAP and zap_flags include/linux/mm.h | 34 +++++++++++++++++++-- mm/memory.c | 76 +++++++++++++++++++--------------------------- mm/shmem.c | 1 - mm/userfaultfd.c | 3 +- 4 files changed, 63 insertions(+), 51 deletions(-) --=20 2.31.1