Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp550515rwb; Tue, 27 Sep 2022 00:56:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77ZsXh0yN685AoaR4GKB+Bp8NMu+1FCe+9jvnx9/39aE4P+FL1HrWY7DihUIhBLW96OVVT X-Received: by 2002:a17:90b:1e0b:b0:205:bce5:467f with SMTP id pg11-20020a17090b1e0b00b00205bce5467fmr3115437pjb.24.1664265394932; Tue, 27 Sep 2022 00:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664265394; cv=none; d=google.com; s=arc-20160816; b=cyanTqSuIk8oKi5mOzNw6naJeT5O9rt3+/NXfE5GCGhm8QZbvhzU15P5sQMvU0l92B twNQHIhTvweYZudX5aG9LeyQdUREQ9J6lEj9rOcEIAfBs//aZYmxCbTPu/ejTEKK7iZh zK5xb5Pm2ae/rm/n6xNu2IeRfAiW1mX1ATEODosnpmVXkKFRSGuHlSHha/3ctaTQdzpk 4h/uz1pIrNwm3JTCdZRfMi1VUZHUhP94sEqvacXe7MAZvyGIhgfNdT44flx/Sjvlgl3c PAFAYXl3R17w/2UzekYCMfeN+ox3t0OoGFfmhmjdOy1LP32uFCUPvSBkm+tdWcQQr46u MHAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=fliMS2i4TTVifSt+TYzGSe+JnrQYlRyNCEBzpd98wDg=; b=gwLZv6Q+LF8NIzStdudvtCN4lzTqvyd5sYVHvyVcJw2AaH3gAlM91aiF5a45F4TnHu bVNtKEFviZ82oK8jvx9mHfZOaWvXwOtSWiD4Os0cTvygvUcOQJ4+zeSYddj531sqi8XE YzQJBmXbV0kBfVnDxF1Wv+hPoTA3pz//bIgtpsUky2/se78ospMOWL2efiPGjEPJ+hkR D2/KtB0TbgW0Tq2EMn1U0wHb5yOw9VAIF4VgbAYaxbwQhS+aUlKsDb6JKmOaYMU2Y4S9 egg0nrwTfrtifjy6qCTcR90mn1uhxkFhC8UtBzKPi4OAI7tYZ1k24hZpekiWvO1tmJwf 41Sg== ARC-Authentication-Results: i=1; mx.google.com; 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 w3-20020a170902ca0300b0016c4fc2de44si939925pld.456.2022.09.27.00.56.23; Tue, 27 Sep 2022 00:56:34 -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; 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 S230201AbiI0H2C (ORCPT + 99 others); Tue, 27 Sep 2022 03:28:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbiI0H2A (ORCPT ); Tue, 27 Sep 2022 03:28:00 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A35605A885 for ; Tue, 27 Sep 2022 00:27:58 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 1020E68AA6; Tue, 27 Sep 2022 09:27:55 +0200 (CEST) Date: Tue, 27 Sep 2022 09:27:54 +0200 From: Christoph Hellwig To: Liu Shixin Cc: Christoph Hellwig , Seth Jennings , Dan Streetman , Vitaly Wool , Andrew Morton , Nathan Chancellor , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kefeng Wang Subject: Re: [PATCH v5 2/5] Revert "frontswap: simplify frontswap_register_ops" Message-ID: <20220927072754.GB16710@lst.de> References: <20220915035003.3347466-1-liushixin2@huawei.com> <20220915035003.3347466-3-liushixin2@huawei.com> <20220920121305.GA4237@lst.de> <2b469a5c-7960-ca6a-9360-c7d3aa26e8ae@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b469a5c-7960-ca6a-9360-c7d3aa26e8ae@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 Wed, Sep 21, 2022 at 09:42:41AM +0800, Liu Shixin wrote: > This revert makes code complicated, but I think it's necessary. When > enable zswap, I expect it to work for all swap devices as much as > possible. But why would expect something to work on a device that has been swapped on before? That's not usually how things work.