Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp40061lqb; Tue, 28 May 2024 08:17:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkNI3QoJAwB7y4vhRQHm+2m4tWOr7tNKUwGsUclIL6IIwvMlFeBN5Fev1TAkC5Unnj8DYjrKNFzEH59g938omI97IZ6kIBkTPUAaGzHQ== X-Google-Smtp-Source: AGHT+IHVGGlSb2VBhBv0yXq4YWVf6kyPrqkuPwH7aaNacQiczMCYdkIqXhBiwjSv5IO3bCT5wnjG X-Received: by 2002:a05:6808:144:b0:3c6:efde:7a45 with SMTP id 5614622812f47-3d1a7a2dd0cmr12478100b6e.50.1716909464941; Tue, 28 May 2024 08:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716909464; cv=pass; d=google.com; s=arc-20160816; b=rm3mxpHhfQiMGP7ghs0INnk15Sv9UxygCpPOY1xgPdfFcb0WejyENoT9R3JHHov6tc ZEJGEc7Jb3jZvBlLJJ7sn5KhRQNc92KGJU4V7g0XCvv1Mn2uiFp2ZyDZXZpP2KETG64q HLOvlhd3oGKF7+LMfStowfs40UgnuaXiBskZX+vtiCykiMyYbRKoBee6eXAknr6ARYPl ezO1koxZsmvkKrQ9hdVHhvfYacsA99v1g3mdqN9YHPgI13ISMBiOv8nw25aV7yusMMHl QSJ6P5kENz96wOakqZvuwhn/LhwmcNKB/8htjf2RnEJO5OWv51T8rZZWmq7tvHasxpbB MDlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=gZzvMlMlStk4tJYmgSNUIq9MUYm5QUeau2d+GQ9gHiY=; fh=t8MaKBiSec/s2v+pV64Q0kkJjrB5/CJX10oObvT8SYU=; b=dHQLzehHIzEFSU9GKl2XxRZlb1y/MyAGkUq80+6E6uCbgi9Wgbt+BNwex8FQjkY8wn ZwYwkNiamJ4AQw6guo2ZGpnt7XleEjY92S3WIdZWIUv+oLhDPWr7L2dEGonWtoh0mmOS aa2TOEByOxakPT/RcD/WS810M4V4MjfMkkBimQoPP9IHMjyLaCq440GrtqJICtg48RFQ X9gzmMGXCNV4WPYVethz1VgNs9cDqFSDoCGNgNHleOC0BKx04q+Kk/4BUv2ecYeJNqtv M9A0WyhETp0cExH5YsPUvfypKMKTi/5OLoSCjAMtWGEKNdIaUUICIEy+whFhioQwSdH6 cmiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MugFbCbO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-192647-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18c5239si119422131cf.577.2024.05.28.08.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192647-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MugFbCbO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-192647-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7F7381C2315C for ; Tue, 28 May 2024 15:17:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9270172BAD; Tue, 28 May 2024 15:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MugFbCbO" Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2C74172BA4 for ; Tue, 28 May 2024 15:16:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716909375; cv=none; b=fADj0sfexqFKzKAQU1NZ1PyHYbCArWLpMTlK3FWv9MA2ZkHwVyMM64kDdamYHRNJRjkC9riTKqIOY++mL95xx+2Dg4RTARc/To9s3E6o7TCjnz08zBN/Pb/j0Wcz+n8qsW9jQA637u4G9xyDuyF1w99V0nC6nD2RdYgjmHCjkII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716909375; c=relaxed/simple; bh=gZzvMlMlStk4tJYmgSNUIq9MUYm5QUeau2d+GQ9gHiY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=S5jhOOohley+9WohQASjujvfGPiIlokTln/RutDLoThixsdLtt4FXvTG1q80cR4tvBUsTpXr6Mv/Q7PYrzyNg5sM7JIYKnEbPUUgR79kMzmGt7mslz6i379lIZhz8MKuoTfShiEf/H/7bIx5yWH1gRnkiJjZKCUi3bKeJMIMKL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MugFbCbO; arc=none smtp.client-ip=209.85.167.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3d1d11cb556so329901b6e.2 for ; Tue, 28 May 2024 08:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716909373; x=1717514173; 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=gZzvMlMlStk4tJYmgSNUIq9MUYm5QUeau2d+GQ9gHiY=; b=MugFbCbOI/mGgbrwGbBEjAdAnlnOUo+HRqQOiLrmlGzeRFZ+RyaUiUNE0ElvxsUuga mO1oEtcPNZCFfCVGRXRGi0DaRTlZC/pcRk/IPCR8aZ8+29s5/tNiSvaRzsCyK7e8Ic50 gR0H93UD5zoyd0svC+2HVbHbJa5FF+QeH6X/sh+u2QgI5/bRRQluQaAu6lBR5yTlL6Bt 1Qr9228bzgOdpPzN9S/oxMq54SiCcKyMMY7l/6frjeRbckUl6ThRocITmqWi17/66RoN /NN/f40TZEqsYSUV1DSd2SXTn9cR2dUcyuzvvfd0aMP1O4dCwJ5rLCx7lmqr26JfykgY mJ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716909373; x=1717514173; 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=gZzvMlMlStk4tJYmgSNUIq9MUYm5QUeau2d+GQ9gHiY=; b=Ui6aA5Ee1tR0j02RjJS1dNy7ZFDSxCnLYVYINJEOyojZmn8bTuZCXOLOwtePXHj24n WjqbFlyhWFa8EY5E+tprtkpzuSai8EmNfm32nFClqZmH3xG6cBgDrxqptCGFKRgPJ5av 37wITeDkzrhhNzV5hEwcVA8AEDuti5GPCkWWjIJDDHH/32h6IFSYzsxwOtgptX5YxMVr BbFnjDN0Q9Rt5uRje0OCCJa2k4JAkjwJIyPgYUg4zsWdVooiZVZN7x59Y7Du+dSh7EJO PTRf46I0i4N4uSJwzPbWbbBIH6uT1oEa7fDsEWUuvQ2s3tBqiTpZcAHYeSJyKEQBJ92D 5Osg== X-Forwarded-Encrypted: i=1; AJvYcCWiXtKwChDQp6b2xlYAoxjeqUaSY99YjpOFxfiFpn6HRWgwpi4is7CRu3Nj5Qz9cKeFOqjaL2aSsZxvj3BWbzJaEhnjvaiuacQ6IL0w X-Gm-Message-State: AOJu0Yx3Z39u933pTBb+U9jsjvFGszN/PHqsn5Hcw92wpHfEaukHy3ms 2LpZuN01MguFbdgtP36Y+vW0z55unCVnnNNT3kj8ch3td0YsPhwU/NnzrYzSTjUTOJtS+3zKcma u9eZCt8qQ3ziX5JFmCJmikozmvEA= X-Received: by 2002:a05:6808:1489:b0:3c9:7057:e8b2 with SMTP id 5614622812f47-3d1a726a326mr14964193b6e.44.1716909372690; Tue, 28 May 2024 08:16:12 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240524033819.1953587-1-yosryahmed@google.com> <20240524033819.1953587-3-yosryahmed@google.com> In-Reply-To: <20240524033819.1953587-3-yosryahmed@google.com> From: Nhat Pham Date: Tue, 28 May 2024 08:16:01 -0700 Message-ID: Subject: Re: [PATCH 2/3] mm :zswap: use kmap_local_folio() in zswap_load() To: Yosry Ahmed Cc: Andrew Morton , Johannes Weiner , Chengming Zhou , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 23, 2024 at 8:38=E2=80=AFPM Yosry Ahmed = wrote: > > Eliminate the last explicit 'struct page' reference in mm/zswap.c. > > Signed-off-by: Yosry Ahmed Reviewed-by: Nhat Pham