Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp867066rdb; Tue, 30 Jan 2024 00:24:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhB6zXH74Fgy2q+u/m8np3tArH8S+OP/NmtE3M/iqp0VLmvK9W6bwgvkeSiVrO0CTOeWfT X-Received: by 2002:a05:6402:3514:b0:55e:e22c:c1fd with SMTP id b20-20020a056402351400b0055ee22cc1fdmr4780197edd.4.1706603046475; Tue, 30 Jan 2024 00:24:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706603046; cv=pass; d=google.com; s=arc-20160816; b=upvdGcQEx8GUZwOI/yIhAwyY8KmOhGTWQZ/rETZjFzH+bYWkL1YYHLeBuNmSQlwO/S 6FL3ujtY0Xd36fmoZL9jrxNvIVoxqmyDp3ok8TfWy4EeSbflDsnyqaSGuBaCHJXRcU/i 6jX3aTv5cbEflpdkU6wEEdws+e7dycTRqL5JY5wScQjg2cjozEtBlRXrbn0d8NjuBxGB GUsMOMIIkxIfDYVQJTgufg8nn97+zDIFiy5INKm723D/3eW1neP9oeyD5HhmKgM/EQ3V 6TG/hlDVDDmKT1OyOguGVlQIMJfEI33dYh5tKy85oiEQPgiJ/SFGJOr2hWRkf4m3rLcm hw0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=4RCvAVC7tbgz/hFRMYluBTQ9bVEmXnGW4IADGAZt7Hk=; fh=oocptefG+2lvFQHArvmvqHgNVObzaNhqiaCoJ7BqlI8=; b=xqUXa0aAksowOCLGpkZuDOPOxn1Q+qJFGvQylgRFflSM8UmdI/VGpZmsvlRuzYxG/T IEKfcxHsu7NxrzPQqJe3MU/AUZtdEuToVXVSK2Uq0gEW/FdCRSDVbeMpAw4W5rX3MT82 9XjYMyO+RSoMDG+XEHofShRJGElDhgYgbhqNv0OZIA2d1SrXRQF8kjh0uM/6E17imsX+ IhCXN3NkP/VD9QLkxeN9IpN6DH3l0lgG3PJtwItxtO82mVojsP3mXgQ5VaPYL7tMK+nx hexIAIWlLfOOSiUpQFbTEAs23m3N7QZwRd3vAjg7ktMYdN5cj9ZPZcUFDbDax6Cz3KkV mp4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=L+yUd3mr; arc=pass (i=1 spf=pass spfdomain=flex--yosryahmed.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-44124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n16-20020a509350000000b0055f1005b915si1417194eda.355.2024.01.30.00.24.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 00:24:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=L+yUd3mr; arc=pass (i=1 spf=pass spfdomain=flex--yosryahmed.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-44124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 772E11F2BBE9 for ; Tue, 30 Jan 2024 08:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B98555E68; Tue, 30 Jan 2024 08:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="L+yUd3mr" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 0E6615475D for ; Tue, 30 Jan 2024 08:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706602591; cv=none; b=MFmF04o354wBCSQi5T99fzCbEpshiATArZyJO5R9ZObnaNu6II5caSVdRqIU7fUqmGNC7pg6VKMmU2p0rmRvru+BPUFqoyEJq6JPuUApboDOnRKSU1ClJRxUu7VbBTL6uXyn0SxPmNaqp4U1GiaR0haZI6e8YjIdJlgR7n0/hCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706602591; c=relaxed/simple; bh=W/6HBbPlz0lU8PR8pUWua1EAdYFoTclxuLxUjM9mxHQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=qxBYEWwIgYTSrotd7zlzKrEJkxyWH18vzfJiVUz66o7ZXZD6gZJx0yOcvwTOPrlrxUdZQ/pWV7dVswJaMkO9D1966UmsbYClC28zgUiJkZZ75VJ+i44q5mvCrjKOxr9crEpo1ePmoXopa1VQkcyJ3JNDZ870fdejThD+JNwFR24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--yosryahmed.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=L+yUd3mr; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--yosryahmed.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6029c85922dso73704037b3.3 for ; Tue, 30 Jan 2024 00:16:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706602589; x=1707207389; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=4RCvAVC7tbgz/hFRMYluBTQ9bVEmXnGW4IADGAZt7Hk=; b=L+yUd3mrZ1fp5ChQyKs5Was/PbosQfoUOY3kK1HOMKHMB29i8kjGGrwWmaLJPvHj3Y /XlaIlszxlhuB0t7HkV8lusBAwuBl4NnxQmA9eQ7H7tJBhB8Ho4r5KMh9He8nQGpBrI4 nDWVeDKX364YRL6/appYNC0/wKr4it+JDgn608DkMmmxqiIYCSdvxFgZxlRPo6n7dwt+ kSUnpIJnziCqQMxpNNYOhkL1JIJanlhu6XY0f9ygoWIOlbJgnYQKMkTiMUVutOBQees4 aK5T/U+hqBzTBFeVTk3B0B8ffFuir0/rlKy52tzHBjC3PiWNtnAOfA0is3CYqLRWC8zF 65Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706602589; x=1707207389; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4RCvAVC7tbgz/hFRMYluBTQ9bVEmXnGW4IADGAZt7Hk=; b=WHtjo8U99IVboE99J2n7YlMCW+jUeTSkqgdOmjBCrcTBh/UoZB1EzvR3QQ7/ya3Jb+ mOTRCqmnnwUNPEsv5e2y7ShCqvg19/CaShfBVZCubmCvSdMwX/0xSW4ovPWxhkTAmrL4 DWH9u39wm/d4UktcymDx0GRnSw9MYLUt5nZ693j8LqY/pqBZRSS1NjHJ27meqeD2um9H 8R6DPF7lSHYdxEotlZzdGnH1WMxGlTdZhYfNZi5OXF6ljNTn83rAQxuQ51AZ/SkFd7kP /GAx2mjxfOL5yW3gTUoP+icMy82VzEhsFmYxNwULMR7as9W+gJSlAd33I0AYZHsv5sF3 25cQ== X-Gm-Message-State: AOJu0YwQSAgNcWde61YGqrioiHV+nzbUoL8JR8VUoOMFa84DVBtiO04d MryW/2kog6EDXVrsqGHDD8DIeCyl0GVbwCc5KEFbfRbVTas2G/2VXDbeSL5E+5/geWf/KwE0tI2 p+VTXs0O1MJBJ3LgcMg== X-Received: from yosry.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:29b4]) (user=yosryahmed job=sendgmr) by 2002:a81:5743:0:b0:5ff:88f9:96f1 with SMTP id l64-20020a815743000000b005ff88f996f1mr2361516ywb.9.1706602588977; Tue, 30 Jan 2024 00:16:28 -0800 (PST) Date: Tue, 30 Jan 2024 08:16:27 +0000 In-Reply-To: <20240130014208.565554-1-hannes@cmpxchg.org> 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> Message-ID: Subject: Re: [PATCH 00/20] mm: zswap: cleanups From: Yosry Ahmed To: Johannes Weiner Cc: Andrew Morton , Nhat Pham , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" 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. > > mm/zswap.c | 1961 +++++++++++++++++++++++++++++----------------------------- > 1 file changed, 971 insertions(+), 990 deletions(-) >