Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1337231rdb; Tue, 30 Jan 2024 15:55:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbAaljCSuadwYwUSq0Pvu49Ul1n+PpVDNigMVbef6P178zDrS+zN3obE1VogqHdeUql+Ho X-Received: by 2002:a17:90a:c68b:b0:295:2b92:e12 with SMTP id n11-20020a17090ac68b00b002952b920e12mr197884pjt.1.1706658924600; Tue, 30 Jan 2024 15:55:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706658924; cv=pass; d=google.com; s=arc-20160816; b=LDeYg3mMyph6iKUAobe7kwMGKZPQl5JIlWyr1cDHWX4UU2npCIf2gkawJQVxELJi+z a0pJJvXsq5Xllaado/VSkO3J038RoQnhX/37C4Ltz885YQL/ScXasT1/f6BC3qtuGipw 9pduPDW0oGCgcjxe0pzyzXBuA2ZzsDqj+qEU2ySMeao0IK+nEfPKyjwD2U9TVKIktDjI cvQLLHsUlurP0nzsqzBnC7J4mJd5nVqi+sT6vsn5jzLy+CxCgmfEMGqvUUCuLB40Jbcl eAyN24BXyKY0dQQqUgZHWce188FuXpAVdqcHiEf5+ih14+pem24mj1TKXykWm3Xeonx3 LwqQ== 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=XoyajG9zgygzjGvubxqtKQvmVDhxzndQ43n2v/RUzK4=; fh=tLWk/948xIL9pBDcTvIn8F+Gs07VKq7rELkM+alZRoU=; b=hR39gFAmRCtlqdzdtCT+5LrRQ1nvyJmgF9rwIO1/1gkTFrJQcxkVSm1HMnZLb8k1mb fAbWDi7fAp4Bk/5CdNuxOBc/4Knc6L+zka1un3L0R1V3IgHxbfqDkODO+PUtsVlD5M+U gZu+StPhBmoD1wEHZOr0yMllMKiXawWS1zEITDn3bhTevHJOKkZWz+S6mO5+vWduLVhx F2BM031c9ZcL0H4dcjQysYn9TxnN5zwBpWy02c505Bfq42lxx/dC/PLDodRoQ2C6kbeu Nxz/toypOPfMoDENaxiqbUO0Syd/eGgvQX1OpqabnYg6ExjciaaKrU/GQomBp+bOCjVc jHDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JgsmiU9D; 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-45504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45504-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o20-20020a17090a421400b002906c5075f5si8306888pjg.156.2024.01.30.15.55.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:55:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JgsmiU9D; 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-45504-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45504-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 450E828716B for ; Tue, 30 Jan 2024 23:55:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 539A07B3D1; Tue, 30 Jan 2024 23:55:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JgsmiU9D" Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (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 091D579DB1 for ; Tue, 30 Jan 2024 23:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706658907; cv=none; b=AsOJYIsiNA+/lTmhmmNrH3tIoH1Juqt1ymBKH0uKxdNMTesye9rDORcL7To9I+udyrOoScXvjZAIK+/ON+9pyLeeUUjtqKI6NCpmUlkJPCJr3HOfRm+hVAkh4PcLvFf8xhfg/N1GVzArH3t/x9W0I+DpGQ72xMHqJLj2k4S9Qzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706658907; c=relaxed/simple; bh=p2GcgaAdHa7BRbD4DeoJWHK47ieu1BWU78aKCcpW028=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UiZOFXh4Cmldr3+2HmHOV/CVtMEooXJtrXdMCE8neHfUbY7sbBWCs1D9TPZbG+jrDJ/oytA06mA9uaYIz3AJnOXE1b7YRGDOTM7AcoS8zdcihCCQ8Ccj/s5520pSTk0cK3HU7umHF03rMAskcouJOetok9DIrddSjca3+P77MQ0= 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=JgsmiU9D; arc=none smtp.client-ip=209.85.166.180 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-il1-f180.google.com with SMTP id e9e14a558f8ab-36387fd96easo7029705ab.1 for ; Tue, 30 Jan 2024 15:55:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706658905; x=1707263705; 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=XoyajG9zgygzjGvubxqtKQvmVDhxzndQ43n2v/RUzK4=; b=JgsmiU9D+1Ejnn/CkA1XUUGgKdFzvr1yQSItKuiW3lXBJWejoaqEa/Hx5D2lOsSqrv 7DxtUfaor9h5a90B5T9vzWWVxZT/nTmkIgDTK+slo+qGzwpqFXevDFGfrQk4qizjKsqe zoy1lVrpob0dg4sIM0QxpiYG1/WCrEf8Y1uwpnp7G86/Vm6a31B91EahZrp9iGYFs15x i/pcBPGLdE6+QYqczZLwBth5Kwq0I7QB1R0oPIwNpS/97xk/8xoKfu5blwP7QkcPHUfs x3WtsxB3eCz6S965wgflYDvl65iEhXt3Gazg+AGgiOUlohzR8KtR4K8rySPHELb++YYN pAAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706658905; x=1707263705; 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=XoyajG9zgygzjGvubxqtKQvmVDhxzndQ43n2v/RUzK4=; b=wPCeJQu1paUgn6UjjNJvetu0oBR93Q/c0qdhYiLTyddOeay5BixEQygMUSgz4MODXv DZVJYdUPuqn0y7uSFnsMXuO0MVT5MhRSs585+XbVHkUDgLTbhUTL1Q8SuevgvWsq4LR4 w46G+yIAUx18NArYQ7hNYkz05cSuvBxBwP/tRMIdI84D+Ajef3nALha39qJahe8cxhUT Tky4skdXTfsJq/Vljm7wdYcf8XybYE86/411dkFCmx8+Efj46AROrtBtQhqWF4Mkz40f xuPXCTNWV5pSvOpf+Eh4HR2R7rccsvwm816sqagAJA7fl6DFl8yZZgsrw4bojTpTkN35 LGSQ== X-Gm-Message-State: AOJu0YyaftPBndF/PulIOF7XTKmc2OWiZ1MtiGD5O7VLA23tz9KAkbx/ PRpmOPbAD5L+W0Rs5pSzqovZBOW3WUT6Q8tR42INjOSBVxbEIdZXTOE+KOFJrLMM1zqPLfO/BAI DP7RG0PtqfHeOFJjmHSb8lFrLdbL+Y7brQP8= X-Received: by 2002:a92:d84d:0:b0:363:7985:eee3 with SMTP id h13-20020a92d84d000000b003637985eee3mr99618ilq.24.1706658905012; Tue, 30 Jan 2024 15:55:05 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130014208.565554-1-hannes@cmpxchg.org> In-Reply-To: From: Nhat Pham Date: Tue, 30 Jan 2024 15:54:54 -0800 Message-ID: Subject: Re: [PATCH 00/20] mm: zswap: cleanups To: Yosry Ahmed Cc: Johannes Weiner , Andrew Morton , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 12:16=E2=80=AFAM Yosry Ahmed wrote: > > Hey Johannes, > > On Mon, Jan 29, 2024 at 08:36:36PM -0500, Johannes Weiner wrote: > > Cleanups and maintenance items that accumulated while reviewing zswap > > patches. Based on akpm/mm-unstable + the UAF fix I sent just now. > > Patches 1 to 9 LGTM, thanks for the great cleanups! > > I am less excited about patches 10 to 20 though. Don't get me wrong, I > am all of logically ordering the code. However, it feels like in this > case, we will introduce unnecessary layers in the git history in a lot > of places where I find myself checking the history regularly. > Personally, I tend to jump around the file using vim search or using a > cscope extension to find references/definitions, so I don't feel a need > for such reordering. > > I am not objecting to it, but I just find it less appealing that the > rest of the series. As a frequent user of git blame, I kinda agree with it. That said, zswap functions ordering hurts my brain a lot. So I vote for the reordering, and for paying the price sooner rather than later. The alternative is reordering sometimes in the future (which is just delaying the pain), or never re-order at all (which sucks). > > > > > mm/zswap.c | 1961 +++++++++++++++++++++++++++++-----------------------= ------ > > 1 file changed, 971 insertions(+), 990 deletions(-) > >