Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5685109rwp; Mon, 17 Jul 2023 08:02:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHiLoHmaxaS3fFdl95wEc06r2JuRf4TNPR1YQxcFZfytp6OYP0897RBHS/cwcQr/2a0xOfw X-Received: by 2002:a05:6a20:29a9:b0:131:4d40:3c96 with SMTP id f41-20020a056a2029a900b001314d403c96mr11705084pzh.33.1689606144823; Mon, 17 Jul 2023 08:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689606144; cv=none; d=google.com; s=arc-20160816; b=Htw0yzxXo+y2KeA5kheMRCu8a1XJ6I7YvoBnTloNOOlS3vG34CLzX7LdpciBeV8Lzo J+OIQQnScNytjhqj0ZDwimnevy4NmMgo0bIIVwVRoRQrLTkKwDROL2PjWOCWy/c4iZyn 8sDq59PbEoVSPvlnqrgPnkKqSJtgnvTc8GDcYv1IDXQ+Z6tYd7gxPuqpL4BUtOG1eRHf 78KeyzGuY/CZcvVUN3ozaZLQNIoIYOEowQGO1s4Opl1DNibwQbJku9UHRK60Z9mIh9wy YJf2xwAv6N0K8mORA4dlRDDgYr9P5Z078Dut38uMh07z59gZcNDFIr7x0DNdj08Hm4J3 begQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=imDGqPTJIK6gJD4cw9W8VVyoXH0zQoowq8bBZZ0GObI=; fh=lMLsJb7DC1Z/+u3qRUrtshUQWyq1+7+dlFa5pAfna9o=; b=griR5BnuyIiD2mzdYgX7uCIo4UeKst+g0Sg/MlJmWez1N+4jOoGugVJT6rrDfmb98C nTpkvATzjT0BE2UgX4upQRDcMF0kJyknRWDGiwUmCHYNPHFHx3NoOYPrZFcIoYjREZ7Z +WPSMZzCBmOBpNHq/KfhBhzLYDHjOfTd6hxWH51l8cgALbvPqtRpXGK894/J6lGg/Zub Xy+0rEVNUujEPY7HA+zLdL1fzVy9v71F0iCWtcdky22OdRKF9t0XDRePRuzMB2AqwVFf C7L78luuIWk/CsJzPmc0rQq1WHztNGDZ9dD6Zyrc6Qv4x4+WLMuriWDxdbnMR51gjvzo ZHNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=nbYVYEi8; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=OmdRuOwt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a632a16000000b005309f24f940si11951844pgq.586.2023.07.17.08.01.59; Mon, 17 Jul 2023 08:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=nbYVYEi8; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=OmdRuOwt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbjGQOcM (ORCPT + 99 others); Mon, 17 Jul 2023 10:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbjGQOb6 (ORCPT ); Mon, 17 Jul 2023 10:31:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0E921995 for ; Mon, 17 Jul 2023 07:31:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BE74A1F74C; Mon, 17 Jul 2023 14:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689604302; h=from:from:reply-to: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=imDGqPTJIK6gJD4cw9W8VVyoXH0zQoowq8bBZZ0GObI=; b=nbYVYEi8UzXvu9DXftf0FyJUgklpQzg9ua2lfFEoqtEi33fa3VNT8MMo/2aq009DR2A4Ge COCxzzPg1EBq0Yfw2HbTgpAsJ5G98/JUibgy7K+lI+VZuLoGRXMKvwHfWDXwZRiR69OlqG 3lLaLd/+/MdoiAiyB36m1Qd/oxQaxME= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689604302; h=from:from:reply-to: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=imDGqPTJIK6gJD4cw9W8VVyoXH0zQoowq8bBZZ0GObI=; b=OmdRuOwt//vPDWbn+Ffomwm7YookiCfjuAMOH3t2oE5VTYdO1UGPZU0DxY51ZI3P/HnMss 08aAe71uNPHAoODA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 713A8138F8; Mon, 17 Jul 2023 14:31:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0Q8YGs5QtWRxcQAAMHmgww (envelope-from ); Mon, 17 Jul 2023 14:31:42 +0000 Message-ID: <901409ed-504b-9500-54d8-e42f832e07b0@suse.cz> Date: Mon, 17 Jul 2023 16:31:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] mm: kill frontswap Content-Language: en-US To: Johannes Weiner , Matthew Wilcox Cc: Andrew Morton , Yosry Ahmed , Christoph Hellwig , Nhat Pham , Domenico Cerasuolo , konrad.wilk@oracle.com, vitaly.wool@konsulko.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230714194610.828210-1-hannes@cmpxchg.org> <20230717141250.GA866068@cmpxchg.org> From: Vlastimil Babka In-Reply-To: <20230717141250.GA866068@cmpxchg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/17/23 16:12, Johannes Weiner wrote: > On Sat, Jul 15, 2023 at 04:42:13AM +0100, Matthew Wilcox wrote: >> On Fri, Jul 14, 2023 at 03:46:08PM -0400, Johannes Weiner wrote: >> > diff --git a/mm/zswap.c b/mm/zswap.c >> > index 62195f72bf56..1b0128060792 100644 >> > --- a/mm/zswap.c >> > +++ b/mm/zswap.c >> > @@ -2,7 +2,7 @@ >> > /* >> > * zswap.c - zswap driver file >> > * >> > - * zswap is a backend for frontswap that takes pages that are in the process >> > + * zswap is a cache that takes pages that are in the process >> > * of being swapped out and attempts to compress and store them in a >> > * RAM-based memory pool. This can result in a significant I/O reduction on >> > * the swap device and, in the case where decompressing from RAM is faster >> > @@ -20,7 +20,6 @@ >> > #include >> > #include >> > #include >> > -#include >> > #include >> > #include >> > #include >> >> To make this patch compile, I had to add zswap.h to the include list. > > I can fix that up, but I'm curious what kind of failure you saw. It > built fine for me, not even a warning. I get warnings but only with W=1 (worth fixing up though). CC mm/zswap.o mm/zswap.c:1203:6: warning: no previous prototype for ‘zswap_store’ [-Wmissing-prototypes] 1203 | bool zswap_store(struct page *page) | ^~~~~~~~~~~ mm/zswap.c:1382:6: warning: no previous prototype for ‘zswap_load’ [-Wmissing-prototypes] 1382 | bool zswap_load(struct page *page) | ^~~~~~~~~~ mm/zswap.c:1470:6: warning: no previous prototype for ‘zswap_invalidate’ [-Wmissing-prototypes] 1470 | void zswap_invalidate(int type, pgoff_t offset) | ^~~~~~~~~~~~~~~~ mm/zswap.c:1487:6: warning: no previous prototype for ‘zswap_swapon’ [-Wmissing-prototypes] 1487 | void zswap_swapon(int type) | ^~~~~~~~~~~~ mm/zswap.c:1502:6: warning: no previous prototype for ‘zswap_swapoff’ [-Wmissing-prototypes] 1502 | void zswap_swapoff(int type) | ^~~~~~~~~~~~~