From patchwork Wed Oct 2 15:25:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 13819965 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 37753CF6D39 for ; Wed, 2 Oct 2024 15:25:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6567E4401B8; Wed, 2 Oct 2024 11:25:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5DF364401B5; Wed, 2 Oct 2024 11:25:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CFAB4401B8; Wed, 2 Oct 2024 11:25:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 1C46F4401B5 for ; Wed, 2 Oct 2024 11:25:54 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B53721409E5 for ; Wed, 2 Oct 2024 15:25:53 +0000 (UTC) X-FDA: 82629037386.07.674E410 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf20.hostedemail.com (Postfix) with ESMTP id 1EB251C0011 for ; Wed, 2 Oct 2024 15:25:51 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mhfCPCXR; spf=none (imf20.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727882623; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=JYfjWjecWxGKTARhiACvNVRkj17us3B4fgh4+MRWJys=; b=2Ghjp+1GapKa0ceyiwTGGfcVXSSriev5rBMo05HD17Jk78WLn1ouuSWLk/Mm60oGkI8lRg /T/HPUYEqh0MMh/2GpD893nGKX0E2w1z76pF8HmckZytqbUfsPyQv2ufJNuxXn741GT3ld jljM4t+2026dOcqrSJhhsmhNhXpVWhs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727882623; a=rsa-sha256; cv=none; b=BYHIerQW3Kv5JJx4QEnGWkguQL800WYbabDZ00i9BJB8QxIar4PZKOVVc/E3UB2g32fYfi 1C9R0P/PmvV/tGaApYkzOm0m2Wau2/fhAThKq8qPezaqmgC8AhDvMoItzuhwdv6uuB16/w nGeQ0nISV7qacSQ+tr646o58UkGOp/8= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=mhfCPCXR; spf=none (imf20.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=JYfjWjecWxGKTARhiACvNVRkj17us3B4fgh4+MRWJys=; b=mhfCPCXRDIYDQ+LzOI1Z1g4wU8 h/YuIo1dmkAdp2IVqX6Dx2v1abTQDEjta8EYtAs7n5E+1vNW5S++q+B79WPT9Vk+QJTOHlmvkS7wp upLuWARN7oBkwqOJn3dl6HP/y5t8lUxVo86NbHUiLvvCgpiGcRas7bJYi5dv5CFJnXCHhTgfYOo9J 4ZkNv9W9Lb8LtP5cwJ2C57li4HgkOmantUqyKdp/ExbSL7x6UjWOqZpneVhMZp3AAdq5Isn4u3Wot bMerQmrkkqpgflUKFpzUhFzsf9o2CTAI+vV6sy5vYgB0+hp95Ch3IkzJFnw7dbeqZ79B7fjSDHDHD 3cIqp7JQ==; Received: from willy by casper.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1sw1EM-00000005fMh-3dJr; Wed, 02 Oct 2024 15:25:35 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Alex Shi Subject: [PATCH 0/5] Remove PageKsm() Date: Wed, 2 Oct 2024 16:25:26 +0100 Message-ID: <20241002152533.1350629-1-willy@infradead.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Stat-Signature: gwycw6cq5aq1mydb7kztixh9nnpt1gm3 X-Rspamd-Queue-Id: 1EB251C0011 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1727882751-888257 X-HE-Meta: U2FsdGVkX19cZ36Z/nZTzRVhkiK+mxG5Xe0UygFuH5YhQqPChrjYl41g6lTiT1QRkoR/10fywqN/n7tyRSIg0l7zdKYuS4I/v/RC9pKJedIXZbXSAwY+8cnm5yAIxZtH0PtdOvXq+mH7DADk7C4iL8R90VXYijzU7JFg0y6hd4rseaG9Hh/JiovasKq/uQugS4/HMV1kcaH17q4uxnG39UrWpyvc36fTt1SDcuAdFRtC1iQ/6zUP7G6LPzk+Cx7+aTX9/1n/2aOzrLBRyUFSd4HbMJ2qAKrlHkt7j+eGmPyEsGw4ayjFSLT+B/3E4IZIfeJD4OgsS02MIHog73R2OhcT2lnGmVO0iZUe79NcvkUuMem1ApRP/dJJ8HsW0B/lVpyOi8Sk9azxQCWg3t1Q630aP4SU7BABWPga7Zfb7sZrcLoNyCHBHxilnJHgNC0jWTBeelOEZk77dbS0Waqy4ksBbsLLCU8MJuvFN/d8YEGTiOUwW3A/UHB98Ac65xYHHIgeugq2RELS1lU+Qcn6cx+UR/xj1mWkAzpH4Jylfwy3acLAmrh3/WadRKpXxs6o4SwTNnK+qGGWwU5ij+w8LDiXcaHKqhkgWcwi13GMyWgbM4ms9bA0I7fgczx6P8IRjLdk9B/J5wU5AuSqvxZvcaljdUQB+StLVxCQCDa60xv8omf+DelxicttHXb1WlOZCic1z1XDoLiE7bfV9AVCYI5olcqOo6JuCZAt/JHo6ngI8hV6onfhPMh5YeIQLioqhc45eX+Z8C54J83LdGHyi4KFdKt57XRxr7dBBdfExw+iYo9nqOTzkZQ5QAM0br+3p5aGisFDdXLycu0HR1ASRRyosubXdlNRytmCGNwC8sv8IyZ5fs+pkYFr1O/rAPqENcWnxBr7pGfaiTF4gZ8L2vRCX0MadoCrZqqx4gpVoViQGw6TmoXVkwvmh5v39FbXbcgL55GpQVEWVWeqNjC LfexWt91 87fg4+g1G4hBz+cyEsdWAiTZf9nkN3bAJhX1sxdPxn+VeFetnGLVPGreqAtCf9oGDo3d1h383XOw3tD1byKxszyHmxuXOnVsOnbxXcfJfeIHwYGt0drsXoG8Ojdj/prIDQmaQEldoq8oo14EfxVEpRLVIXPfYI83E8BW6ls+qz5OSqkf2oJi7+Pc8Uw== 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: List-Subscribe: List-Unsubscribe: The KSM flag is almost always tested on the folio rather than on the page. This series removes the final users of PageKsm() and makes the flag only testable on the folio. Matthew Wilcox (Oracle) (5): ksm: Use a folio in try_to_merge_one_page() ksm: Convert cmp_and_merge_page() to use a folio ksm: Convert should_skip_rmap_item() to take a folio mm: Add PageAnonNotKsm() mm: Remove PageKsm() include/linux/page-flags.h | 18 ++++---- mm/internal.h | 2 +- mm/ksm.c | 93 +++++++++++++++++++------------------- 3 files changed, 58 insertions(+), 55 deletions(-)