Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2122797rwl; Sun, 26 Mar 2023 16:29:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZzTqWrQpGnl2Xl8baWQbA5+HDuVQku8BTQ8Y7QsjbGuQTgXK8jShhKds5J3UwuUAP+iPDW X-Received: by 2002:a17:90a:7893:b0:240:40ac:bed9 with SMTP id x19-20020a17090a789300b0024040acbed9mr9633601pjk.20.1679873352932; Sun, 26 Mar 2023 16:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679873352; cv=none; d=google.com; s=arc-20160816; b=y6SB4iyudvXb++MRIaWupiw8+/pcpQJy+LQagGVziX3FpF+pvtwYsU1r6seGREi9HR k7p3+fTVYBywTQqQbPoaYTwhFqJzcLH+0XBHQwUYFj3oiIV1trNEgi+1B2GLC11sYneI hjKUvVHxoCI13+kbFbn1qBLz456lRlKzW4SbsJXi7GuC2zpThduZIIB+Il4dII8k0dIM hF6gWXiDkAwyghjtE487UdTOMPdPmqhayvcsrbWJhIi87UGmkYHntC7uGBSPOSw68UnN UhwYljegJHzlvoUEt+py3rNCYJmSja6MYrke8RpxhIOylI50fymTp7hnPzpWGkVseiNH uRjw== 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=cQoaEyS619AVeCjuoGdKJ3+8dFnE26McnA0VnrVDh7I=; b=o3mBCx8hha723+PvEpS3yxF9r/3BBsh/5+Fw2cM5mhZzcIjSnBAv114bsaC3c2cghy KYNsu9TsZgZ4QyFgyw53j+Oo/muZLVJpx0r2nVgn3EjWk813YN9HnQtdT4+e9HwpSXlu DcQTVdnQpUoT32ws/jXa92SpoBmbnuLhIGTYt/ufK6/NbCmAbKjWHJSWkNrgk8BfEvgW 0900qFqpphyzWfht5h0YeZSOI0dd1buSJooYl1Lu8adbBa1YgGUayLa2vQ0WKqvkFUou gabNpPcUMJSjjR39m09aVqc115QuwrAJnszYKbEwkvQTGC8W/aMJtYlCaEpjgy2sVmtf vp8Q== 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 it14-20020a17090afb0e00b0023409b3983fsi9262646pjb.99.2023.03.26.16.29.00; Sun, 26 Mar 2023 16:29:12 -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 S229808AbjCZX0a (ORCPT + 99 others); Sun, 26 Mar 2023 19:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjCZX03 (ORCPT ); Sun, 26 Mar 2023 19:26:29 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E11946B5 for ; Sun, 26 Mar 2023 16:26:28 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id BB5CB68B05; Mon, 27 Mar 2023 01:26:25 +0200 (CEST) Date: Mon, 27 Mar 2023 01:26:25 +0200 From: Christoph Hellwig To: Liu Shixin Cc: Seth Jennings , Dan Streetman , Vitaly Wool , Andrew Morton , Nathan Chancellor , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH -next v7 3/4] mm/zswap: replace zswap_init_{started/failed} with zswap_init_state Message-ID: <20230326232625.GC19631@lst.de> References: <20230325071420.2246461-1-liushixin2@huawei.com> <20230325071420.2246461-4-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230325071420.2246461-4-liushixin2@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Sat, Mar 25, 2023 at 03:14:19PM +0800, Liu Shixin wrote: > -/* used by param callback function */ > -static bool zswap_init_started; > +#define ZSWAP_UNINIT 0x0 > +#define ZSWAP_INIT_SUCCEED 0x1 > +#define ZSWAP_INIT_FAILED 0x2 This should be a (named) enum.