From patchwork Wed Jul 20 14:05:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zach O'Keefe X-Patchwork-Id: 12924026 Return-Path: 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 261ADC433EF for ; Wed, 20 Jul 2022 14:06:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 59A4C6B0072; Wed, 20 Jul 2022 10:06:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 549886B0073; Wed, 20 Jul 2022 10:06:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 411106B0074; Wed, 20 Jul 2022 10:06:21 -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 2E4036B0072 for ; Wed, 20 Jul 2022 10:06:21 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id F28A7A205D for ; Wed, 20 Jul 2022 14:06:20 +0000 (UTC) X-FDA: 79707652920.07.1A51F4F Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) by imf02.hostedemail.com (Postfix) with ESMTP id 42E8E80045 for ; Wed, 20 Jul 2022 14:06:20 +0000 (UTC) Received: by mail-pj1-f73.google.com with SMTP id c14-20020a17090abf0e00b001f2096d876bso1794152pjs.4 for ; Wed, 20 Jul 2022 07:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=oi1KaaWGUHTr7diW9be8tfJiImaRTQUm7wHTtiNzQZc=; b=qsiX4bi6Roqe6tCa0Bw2qtwHgJ2tSGl72/RX55UjH7PscEESlmRoXSm1acObr5ss7J SVwl1oFrnw6zaZgmZ/FjCV7nBsmzpIwOLply5xGkf+SHiUXdDcsyhJGlcDNS2GQCW6KV Xwvi33Iez2tha+No7hf53yeqepl4t0dZE1Kq4zITSYk3n5K9saTIaBjEoy+tdcYaq+aT q33WKjgcTM91pAuw/D2BzWBLzI7R9p/vsmNp0o3DAuNLASS2gH2WoTBHOeL76g4c8O5U 0rT9R/3KUAxhys0+YFDlKAatksN0zIoJcqjC4cu3TOSwBCbso6aMdS+oChH7PAT09ZpH we1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=oi1KaaWGUHTr7diW9be8tfJiImaRTQUm7wHTtiNzQZc=; b=QBEyVTIZ9BwdC8mCnMWpoAaVB63Bq+CSofYUUWBkSW3t4WuV0099fdjMQy1oZ/Gcqf JtnmAajhkvfH/EJjrRxp7szVIpFBUOImO7G2Mepy5d9PK1fxRXDAbgaJoZk+9pXDQHpA lMPqqEv1Xkq/B/TYajin8dqF9EQe0baVySqDSaG1D2yHEtaYlx7whgb54w7TO2sZp/tt red9C5Vk3RGrFb3ojflj1APA3nK24GYf30a9OFgHa2AQWG1mrqIoasv3F7vFHXbVdiL6 GJrt6bR8xn5D6VvjiH+ntssIygyDmLWFpuXKjIcwUoJ7lkH+1btA8FvyEnA/kHmB4SFW Ulcw== X-Gm-Message-State: AJIora9vgvl9A3dXVEf17HE5tOjQ9TqCFWjOHYcRizoXgdEKeFk6B0DC EkF9AosoSfpFu+uuPJcWpMSGbDpWtJxk X-Google-Smtp-Source: AGRyM1uFWzPMAGS8NAa+3SIaYMVZyZtYZHoKG+5dPXiM+LDYz8fvr+9IiNXfMX1zFPhMLk6QHJmJRFSmu4O3 X-Received: from zokeefe3.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1b6]) (user=zokeefe job=sendgmr) by 2002:a62:79d7:0:b0:52a:b557:2796 with SMTP id u206-20020a6279d7000000b0052ab5572796mr38436175pfc.34.1658325978952; Wed, 20 Jul 2022 07:06:18 -0700 (PDT) Date: Wed, 20 Jul 2022 07:05:59 -0700 Message-Id: <20220720140603.1958773-1-zokeefe@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.0.170.g444d1eabd0-goog Subject: [PATCH mm-unstable 0/4] mm: fixes for userspace hugepage collapse, v7 From: "Zach O'Keefe" To: Andrew Morton Cc: linux-mm@kvack.org, Hugh Dickins , Yang Shi , Miaohe Lin , "Zach O'Keefe" ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=qsiX4bi6; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of 32gvYYgcKCG8mbXRRSRTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--zokeefe.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=32gvYYgcKCG8mbXRRSRTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--zokeefe.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658325980; 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:in-reply-to: references:dkim-signature; bh=oi1KaaWGUHTr7diW9be8tfJiImaRTQUm7wHTtiNzQZc=; b=TrV98ItFMH0WaAMh8oV3XYoOODdf1oyNrd90epAlEZypyvJzXL6ySu4tpO9ZPXvtvXfQRh csvHgNrvNp9iYPnbci7wFBBBRYoUesSROaPyfIlFueG2+LlVFuuPU5Zv0kIInfMJuG4PI3 XksLoNTuj1Oh1HSAZX4rw/0/w8pAGvM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658325980; a=rsa-sha256; cv=none; b=404raeQO4lFrthvoZAcpVBeVcJoxJSzpDKrhDv1nuw5NZ9ZBXnFwfhd2QaYrfH2sB4UiAB MmA60XZWOLHHoLKPsKKKDvO0qDhKValnuEU94rfoClKY+F4MDREAqbqbphG8UqBBHk8IKr vjNlcaLrlVBbQSKD8oq5cm3QVM23LlU= X-Stat-Signature: 5tigoykwjnnwimayk6wegkne5gcunk38 X-Rspamd-Queue-Id: 42E8E80045 X-Rspamd-Server: rspam08 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=qsiX4bi6; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of 32gvYYgcKCG8mbXRRSRTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--zokeefe.bounces.google.com designates 209.85.216.73 as permitted sender) smtp.mailfrom=32gvYYgcKCG8mbXRRSRTbbTYR.PbZYVahk-ZZXiNPX.beT@flex--zokeefe.bounces.google.com X-Rspam-User: X-HE-Tag: 1658325980-180702 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: Hey Andrew, These are a few requested cleanups for the "mm: userspace hugepage collapse, v7" series[1] currently in mm-unstable. Please considering squashing them into the v7 series. Note that https://lkml.kernel.org/r/Ys4aTRqWIbjNs1mI@google.com is still outstanding, and that the series is incomplete until a suitable resolution is reached there. Thanks, and apologies for the multiple fixes / adjustments required here. Zach [1] https://lore.kernel.org/linux-mm/20220706235936.2197195-1-zokeefe@google.com/ Zach O'Keefe (4): mm/khugepaged: Use minimal bits to store num page < HPAGE_PMD_NR mm/khugepaged: consistently order cc->is_khugepaged and pte_* checks mm/khugepaged: delay computation of hpage boundaries until use Revert "mm/madvise: add huge_memory:mm_madvise_collapse tracepoint" include/trace/events/huge_memory.h | 22 ---------- mm/khugepaged.c | 64 +++++++++++++++++------------- 2 files changed, 37 insertions(+), 49 deletions(-)