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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2E93EE4993 for ; Mon, 21 Aug 2023 16:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235930AbjHUQKB (ORCPT ); Mon, 21 Aug 2023 12:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233928AbjHUQKA (ORCPT ); Mon, 21 Aug 2023 12:10:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE8DED for ; Mon, 21 Aug 2023 09:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692634140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=muHISTWWYfRXSKtPnEJYxlovjaz8Sci5+XbEJ+VCnBs=; b=SmVrJV0iTKtxXPaLaj3Q4JJUZlkOFiWJLtACrVFpTIwrNmqO5prmv4815FnkQPbc3ltJ1r 9AA3/hobmvWNk/MgS+M4gPss/T0vWBCDJfCI5r3FJYQafoBf3falCmFHc3zni0A5BTEigS apFnEbkWeBJ58AkEIQnoksfmMhsfXBM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-49-WkVWTVgaOcOgmPoTqKKANQ-1; Mon, 21 Aug 2023 12:08:57 -0400 X-MC-Unique: WkVWTVgaOcOgmPoTqKKANQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1B0C6108BF27; Mon, 21 Aug 2023 16:08:53 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.192.184]) by smtp.corp.redhat.com (Postfix) with ESMTP id 31539492C13; Mon, 21 Aug 2023 16:08:50 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, David Hildenbrand , Andrew Morton , Matthew Wilcox , Peter Xu , Catalin Marinas , Will Deacon , Hugh Dickins , Seth Jennings , Dan Streetman , Vitaly Wool Subject: [PATCH mm-unstable v1 0/4] mm/swap: stop using page->private on tail pages for THP_SWAP + cleanups Date: Mon, 21 Aug 2023 18:08:45 +0200 Message-ID: <20230821160849.531668-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series stops using page->private on tail pages for THP_SWAP, replaces folio->private by folio->swap for swapcache folios, and starts using "new_folio" for tail pages that we are splitting to remove the usage of page->private for swapcache handling completely. @Willy, I added your SOB on patch #2 from [1], hoping that's ok. [1] https://lore.kernel.org/all/ZN1IH/8JxkkOU5Ec@casper.infradead.org/ Cc: Andrew Morton Cc: Matthew Wilcox Cc: Peter Xu Cc: Catalin Marinas Cc: Will Deacon Cc: Hugh Dickins Cc: Seth Jennings Cc: Dan Streetman Cc: Vitaly Wool David Hildenbrand (3): mm/swap: stop using page->private on tail pages for THP_SWAP mm/swap: inline folio_set_swap_entry() and folio_swap_entry() mm/huge_memory: work on folio->swap instead of page->private when splitting folio Matthew Wilcox (1): mm/swap: use dedicated entry for swap in folio arch/arm64/mm/mteswap.c | 5 +++-- include/linux/mm_types.h | 35 ++++++++++++++--------------------- include/linux/swap.h | 12 +++++------- mm/huge_memory.c | 40 +++++++++++++++++++--------------------- mm/memory.c | 4 ++-- mm/rmap.c | 2 +- mm/shmem.c | 6 +++--- mm/swap_state.c | 6 +++--- mm/swapfile.c | 6 +++--- mm/util.c | 2 +- mm/vmscan.c | 2 +- mm/zswap.c | 4 ++-- 12 files changed, 57 insertions(+), 67 deletions(-) -- 2.41.0