Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp38724lqb; Tue, 28 May 2024 08:15:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVk4uTrnteV7V61QS9NoJlbpA0c2qZuCOcaMAEWlmiFCOWd7/Vzz8tTz7g3dSIvbQBuF94QLgnWD1pMHxHp6AppmXA94Y4d9qIR0czPHA== X-Google-Smtp-Source: AGHT+IGGtaHuaY7uN4zUOki0qoqXZX5On9/MFWzSxsFq7cGWSGqJTzsbP47M5lJWp/QIVBeM+OhH X-Received: by 2002:a17:90a:a00a:b0:2bd:faef:e85f with SMTP id 98e67ed59e1d1-2bf5e56952bmr10147203a91.24.1716909350598; Tue, 28 May 2024 08:15:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716909350; cv=pass; d=google.com; s=arc-20160816; b=w7SD6IQpKz1yhzCgxXc9Fh4Hyav9+uHakmf6HOmDg6W1PKgfcWmS9UExy9ZLiqEKvg 8zCbeXUu+PmhrGtk1LIEuwTtVZSAP2jZPvwtu6qVnx+v0tpdKQ9etSyhy1o7zybFrZfl qWyZPdjQVNj/ASvGeIWt/LJXumz6RtZIrV8BCAqHlF1RdLdwle0qpsHcd4EcINhRUuLE nCsRhPPLapmxFbmsdgwIAsxtQueuD6l5p18Z5c3YJBKdE0pSDjDuCrF0LAmWRUnV3iPN b0lB+/9L8zW79idwYnW9wwRyBApXbNPXoh3azFr6RAYk87OphgbcaMc1g35KeYMZHqLD PmeA== 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=e6N91zsLIkCffcVoj9IwNk6WCrnFz/oKvE1DmIr4i3I=; fh=UGJIC/jsSP8sU/CwvVPAASn1LG9x5WavqIvJlhTxwig=; b=LnO8Ui2iQwyz5UrbguNkNESLPG0h5XFaIcaURcW0BcixZrkDFAUFYyX7TWrZ74gdBy UtgqmDfvtmg5my1x1Zeqms1pNlsTT2G4wOO4YcgfCuJHdQz6q31FZX/laCoGL9w3KqIY 6zhoGgkPL1WhuHljDB7oakEIgTRwWYch7AiXXpP6yefWOPFL/aCH+BXaZDcW2tiJSu35 ve4IRp6fZSUKDite9s81EMdQDRhvHDdr/lyDYH/e8/KHMhYjn41bOTVn+nUuG9inwZNm W8faj75mge6RVYlPXBXp2Pb1sViYI0v14OHOGUl4E0ENWMmXhxN/1paCAr8e8X6jOdVN YSKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wv2GZYRR; 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-192637-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bfcd6d80dfsi4038838a91.149.2024.05.28.08.15.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192637-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wv2GZYRR; 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-192637-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192637-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D9240283E8B for ; Tue, 28 May 2024 15:15:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A83E171672; Tue, 28 May 2024 15:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wv2GZYRR" Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (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 5D99F17166A for ; Tue, 28 May 2024 15:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716909230; cv=none; b=nPcQxP9Yg1lKs1odxGBOtRFZEVscMDake0fMyrQzIMf5AwZn74lJyTVFXkDPrjM8gcNnFf1+aNTkmbdiLdXHE/kRJ+CWy/a8ZiC1BmGWYoAtxq9e3r5eqEBisrW+PK7jODbP1mWGjm58jyzWhxvrgYYIUtPYpaA2o+T/zbw/4zg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716909230; c=relaxed/simple; bh=e6N91zsLIkCffcVoj9IwNk6WCrnFz/oKvE1DmIr4i3I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=auOJZeWae8K9CGj3XgS12B0Od74PzpK4g5izrLL303p7E7yiDR5NeWzcLtTyth35pS3sSJetVHyUATrq3uwPEPaj4HTIFw8QCBcruFbgVT57KeG4oS5snklfsDWgu0lWZeltqsfghekQdisZqa82ByyRaWwyKlPr/4R4QC4VloY= 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=Wv2GZYRR; arc=none smtp.client-ip=209.85.210.52 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-ot1-f52.google.com with SMTP id 46e09a7af769-6f8d0a1e500so705686a34.3 for ; Tue, 28 May 2024 08:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716909228; x=1717514028; 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=e6N91zsLIkCffcVoj9IwNk6WCrnFz/oKvE1DmIr4i3I=; b=Wv2GZYRRi9qg/7ni5w4z9e4BU+wPffxlUjsMuZT+duzXNxo8/l2JB3fo04d4Tep/YM lGFAG3ucBdHKIcTG4EHGj1xAy2lP5npFI5f12iaQasHGmyINBtbqi/p6gCby37go6dzQ 5lBiDySQQiNKXLHKUqgFeaL85oNzUM7sKaEOKdhmxsMY0cdMZG2CDjf8T2qNttrTzBMD w24GvUCrXeDo1VCpnaZh5FkydQKjNf9oujqHUF3IdrcnyOIa/HFJd28la41Me05aaT/l qkv04qh5PKTVHSobFlzGCGYbq5jh/2ppsMsOwrJ/qmge4/56kKX3yrJnnewZuVYW9f4v NCow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716909228; x=1717514028; 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=e6N91zsLIkCffcVoj9IwNk6WCrnFz/oKvE1DmIr4i3I=; b=D/hjhxpFSamcL5vXwj5xeTqU9ykvfWUCeSKEFH0/Pun8DBFQIeIVoIkRv1V7hZLXRT /ZSZHrf7lTC2nFwezAZgBcUniRMHV/8ftCo6yu1Sv63Vc/zpb0arfcW4UpF7Hhpye0X/ Yp3U1G5m0ti32HaW18UaXle18W227g7H2T9hS1s9OLkUEBmkxtkJEanWm5LAf2yiwrij uni/ZMv86qh9df5kOGAki5jp1PuDuDPWGZ9qGoXgmu2NftZgEeCjFPyQ7Oq17AQsYJwe 8oVPY/T7XRH8YYvTUVmUd+Dv6x7vaZZZXcnl++g8S3aVh3+iK3HYgAenenQ2Ru/nfUwx 31WQ== X-Forwarded-Encrypted: i=1; AJvYcCWpzy0Lrvvobqh9DEpkbKpanOiJrk76QxKi4cn6406xTNxao+ilszo1S7ImGw4b4UrjlqbtaQ4bydeyfX0DrBJlGf4s0FWGeCblldzd X-Gm-Message-State: AOJu0YzOyyqwsQNa9+9QZvGKDZViwTD+TilCKwtdu9rKSzDBsZyVcvw5 jtadP7CZAlQqWS8YtSMqY23uuJQmwETb1WsrMzYI64yYM2W45y4I9Rq+W9Q5sg/Z5zurXsBwgH6 5aZA+p7jWcqQK0AwbIouBSCRbj41nIw== X-Received: by 2002:a05:6870:171e:b0:24c:a547:7b5a with SMTP id 586e51a60fabf-24ca5478ebbmr14054365fac.14.1716909228407; Tue, 28 May 2024 08:13:48 -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-2-yosryahmed@google.com> In-Reply-To: <20240524033819.1953587-2-yosryahmed@google.com> From: Nhat Pham Date: Tue, 28 May 2024 08:13:36 -0700 Message-ID: Subject: Re: [PATCH 1/3] mm: zswap: use sg_set_folio() in zswap_{compress/decompress}() 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: > > sg_set_folio() is equivalent to sg_set_page() for order-0 folios, which > are the only ones supported by zswap. Now zswap_decompress() can take in > a folio directly. > > Signed-off-by: Yosry Ahmed LGTM. Reviewed-by: Nhat Pham