Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5655707rdb; Wed, 13 Dec 2023 15:41:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFU4VR/9BHgV7M9c/NdzcXjx7EtvjKb78liw6z6HmutWLNZRb3gb3e0ngDArs982RRmtubN X-Received: by 2002:a05:6a20:4b21:b0:190:6617:270e with SMTP id fp33-20020a056a204b2100b001906617270emr9342317pzb.41.1702510865207; Wed, 13 Dec 2023 15:41:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702510865; cv=none; d=google.com; s=arc-20160816; b=IZxE0g+NaYJMAT8+D+FEAHlm6CuZEUEi1RGkcv457wZcJ69RUqYBi39HuxXmrrtyOb PgEEp6JxZ6GLjq5CeN85hYHBspLQP6BEEklqHg3wziH9ZXC5yxmkB1RLqOqXjOgjcefA jUOfygU2NsTTm12MFAgur5EpZEWQVolz65+V+81Q4pnUNZrwllmsHOD1BcxCBLgi+TBD a4dxdZMpQajPwJm0V+ohn9yhz4wud+9ErpYp70Rl6rsuhwsGKt5484L/F2Z4R/+MxwAR c/1X1aiBa2vzJZonNrVo+cZPMm50OUXJsaSQmoHP7nc7TT4DRrWCuHmIa9AGdKTJxCLo 43zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=khBmMizas9gxTRli+QPr2dO7hNeCzSMKNFFwhsbIguQ=; fh=CIEK4oU1VpeGYez8Kqg5XgL7oVBF13djoAg0dYB/DRs=; b=NWRFFEJ/BvIh863Oj8NeAON4c//Zvuu2moXZjTFY4cULBMOhn33msKT/URo+a2WuDF 7L5/RQs4EZxdoK3Fjx5T2FzIxxqMUvTnAoUd71FG9cYLs4zt3ezCD2u9gQc0bhO9oPd9 LkNOANf2rAu/sOM+puIcjyP9gBMvTtQh8CPdY/uQmUMyvoFk+k58jk8bJKor3s5GFCV+ uk9rdXIR2XKqBxogTUoHpJLjMrmkR346zh71BRSxgDq8i4MOGRQMuAbJp5H95tfzwX8i QJgBNRZ7cKtB0KJO/7NskAZldYBl8INyp+295lZrHfPQ8FTnUYvdBKYHuwK/8W26fmJo ISsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=X4dfQZ2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id o12-20020a63e34c000000b005c67da710ddsi10100566pgj.782.2023.12.13.15.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 15:41:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=X4dfQZ2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 2AD538076D03; Wed, 13 Dec 2023 15:40:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235540AbjLMXkQ (ORCPT + 99 others); Wed, 13 Dec 2023 18:40:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235515AbjLMXkF (ORCPT ); Wed, 13 Dec 2023 18:40:05 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F7C31706 for ; Wed, 13 Dec 2023 15:39:04 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a1f6433bc1eso11417966b.1 for ; Wed, 13 Dec 2023 15:39:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702510711; x=1703115511; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=khBmMizas9gxTRli+QPr2dO7hNeCzSMKNFFwhsbIguQ=; b=X4dfQZ2AJdj3WsTroyJAt7UQihZJJk0GuJNDMHrQ/FqRjoNROQce4AkdlcdxxjufxH 9NBbJKe05XPtTzpb8Ak18Ar6vdB5ijDo4O1HZePt+yi6eDrPnn0mt1+iUyoMSAQnX0pm dIxs56wtxYcBHUjK+dsir9DDa+eL9Ax1AGHmgFtSSqpzXX9W5TyAJDsg1cKhgrBTqzS1 c3xNyjTpFV38SzxkpJ+AcuNKff2NPR868ej6Uh28yx3wYhSmTTW6A/zQxSR9ppuDa3zK sXJMCgNh/9hBH1e95pgGC/iBltU3cXZfNT7yuSo2t20f/zPeNJrpoc3sjykDJ8NXmi8g nTjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702510711; x=1703115511; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=khBmMizas9gxTRli+QPr2dO7hNeCzSMKNFFwhsbIguQ=; b=mQ/uAcBAHsIaRkdug0LWamiNUqYLjbxozFBTDkZjQfIbFGea6mEylGsEuxRwU+1e3m lZxF+cqIyXtJ+TFpAckkvHszFnSuvfUI6xqDh9O+Jc1sHkDsSA6Xh6Fs1L8RucnIwnwt mFIuD0N3Mf9teYNWW+FPF3/oz1qwVa1nLBrvAzBPymkGY1+3/1Q5ZjumCBae7NC8S6wq qFvpWc6fKkGbdJr7mOWdezGkUFFb7mUArMfMSN4C/1PZKLtNpR5PHHRtoBNwfK0NIjuT iTM5A09BnVTCJHxpjgk1JDcLVboPm4Hsn3ovBdtypnTONw9OUmViA6yMe9719UDA6rpi pcpQ== X-Gm-Message-State: AOJu0YyzTPNWJXt/Zc7iioa/mXdTSjhU0wEBee/kJ1hKoNI5hydZlW7Z 25i+bZRdRmboXtN5MQs7lPUr1PQkMMuGBC0MnQGL7A== X-Received: by 2002:a17:907:831d:b0:a1e:11ea:ee15 with SMTP id mq29-20020a170907831d00b00a1e11eaee15mr5701389ejc.77.1702510710830; Wed, 13 Dec 2023 15:38:30 -0800 (PST) MIME-Version: 1.0 References: <20231213-zswap-dstmem-v1-0-896763369d04@bytedance.com> <20231213-zswap-dstmem-v1-3-896763369d04@bytedance.com> In-Reply-To: <20231213-zswap-dstmem-v1-3-896763369d04@bytedance.com> From: Yosry Ahmed Date: Wed, 13 Dec 2023 15:37:54 -0800 Message-ID: Subject: Re: [PATCH 3/5] mm/zswap: refactor out __zswap_load() To: Chengming Zhou Cc: Andrew Morton , Nhat Pham , Chris Li , Johannes Weiner , Seth Jennings , Dan Streetman , Vitaly Wool , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 15:40:33 -0800 (PST) On Tue, Dec 12, 2023 at 8:18=E2=80=AFPM Chengming Zhou wrote: > > The zswap_load() and zswap_writeback_entry() have the same part that > decompress the data from zswap_entry to page, so refactor out the > common part as __zswap_load(entry, page). > > Signed-off-by: Chengming Zhou > Reviewed-by: Nhat Pham Great cleanup, Reviewed-by: Yosry Ahmed