Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp499286lqp; Tue, 11 Jun 2024 10:16:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGzhVa0c/jhWRq5qSmBnTUQO5jQvZwtveTgKv771ShsABMC4WXRVWvgSeb4amjfA00coII8Sg4b9z7Tn4EWnT98WA56Jhbubft5CHHig== X-Google-Smtp-Source: AGHT+IFbS0jn1HGOM8ahOW75LL3yrmyE2DCNJ0Esgi0UxavKLd1ul708kHPbPV7LAlq6jRDimuah X-Received: by 2002:a05:6a21:680d:b0:1b8:6ed5:a8f with SMTP id adf61e73a8af0-1b86ed53750mr2626266637.56.1718126193669; Tue, 11 Jun 2024 10:16:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718126193; cv=pass; d=google.com; s=arc-20160816; b=WlaFsfg+hkMQJ6L8FyBAGPW+DmImmWBZwAQ8c9oKklmRE2FvVqyp0YmXsUtO20258g weaLwYAlf/cCh+0wIR/BUGkwXJRfERQrgIbZCAgYiW4K76lmg5J1wHRIYmXHI25GrGo1 IBYIHsSJ8AXJjovGD25yxSQv5vHEmP1Co9C7xnVMdlEWEvYNrEMbYvY0uscsSdK8BOBO I4pvKo/s/ZEdq1ttbPfJZW2aSLFNBo3E0XT2NzDr0iOmCSh3EC9uvuXnRk3xi4miuGe/ iJeHV+h+GWbNGYr/HI62mlEZHbizACsOsW4wDk00ylUJp2XlKfOsz4TxxlAxZsmeLT07 sRBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IjEGM0189YXKD5XoQXpyIoWJTRC/+NjjQ7qIOjBHtf8=; fh=lYFpYZMdqQq7FuA/S8yjf5lSirgFesEKPml4Vfa6r04=; b=J0wJ2tgmE0N0Hpwy1URx+THLRk6RjggoKFHTwbv3txS9mPQHqKmxzVL7qoebFDE5xF NUBePkHlV+gPCliypO9jzMJZMTB1RunehSB4ig2uJnwVxc/wJpe7OM2ZEvTomMZQhfY9 vNKoxY0OPG+elV4czC9L7xiy0HpaXDW0erdjHIuMWN66ZDAJYS8nGFZOvgPSyAgP8C+A IdmtJK11JBErMY5dJwh0SGtu+qBgO59P32K259NNII5q5CAny3QI8xqomVQBlhXJfzJw F2CbWP/ci9Ky2v//EcIfzWXlLPWDcJ7n7cdU8toIvdNuXX5wASkutxvZCc4UBgat144x 4l7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ukQZ6ZBD; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-210314-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de20831b35si9948078a12.57.2024.06.11.10.16.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:16:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210314-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=@linux.dev header.s=key1 header.b=ukQZ6ZBD; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-210314-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 30BBE28BAB6 for ; Tue, 11 Jun 2024 17:16:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1909B47F5D; Tue, 11 Jun 2024 17:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ukQZ6ZBD" Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D952F11720 for ; Tue, 11 Jun 2024 17:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718126188; cv=none; b=EVv1yQfpk8l+xjB9yBBvaOBdke2dt6QwJEHne4f1RULYqoYqahW/zPptdeDM5d7VTFPBYWRqlml9LbOmzkSZ1PIa+FJ4/OYIL0+1cju2+U1zpXz+3yeh6YRkw4QHA7fWFz5S1Nf0/CNSt91Vfy6gdT0a8GLM1RCkLPrZQK8iB5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718126188; c=relaxed/simple; bh=SOPsC9E8NGLZiXlBTGkh+yswcZ5Kpe4vyv4AWnESrxA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=brUUrnV9moqP7zGiMxiQUybTStNqSSTG6kmqlQJ0U0lKoMRmFJITD/29qJnLcripsPKtD887fS+NrmSlMV5Sz5ifCEZ7pBdikNoToTfJdEMMklM62rc/lzoDvALFO33Az7Divm4b6UA0C9dqwFg5JupKDdMOq3ljF6ZRS6ZeB50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ukQZ6ZBD; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: usamaarif642@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718126183; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IjEGM0189YXKD5XoQXpyIoWJTRC/+NjjQ7qIOjBHtf8=; b=ukQZ6ZBDDQ/M0ByaznMxRAFjxzX0eDvTT42rvEjMfvYAhE58JJDseBRb2LaNnKHCqncXTr 15hFt/Hhlgby2vYqXLnUhW0Zz1Ohm+7fMbaxl+Bj+fvwXT++ZAMF8NWXn0YHcTNYMa5R+J NjmOdz4HpiY6EZlVRA3uWaEO8j1Fu1c= X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: willy@infradead.org X-Envelope-To: hannes@cmpxchg.org X-Envelope-To: yosryahmed@google.com X-Envelope-To: nphamcs@gmail.com X-Envelope-To: chengming.zhou@linux.dev X-Envelope-To: linux-mm@kvack.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: kernel-team@meta.com Date: Tue, 11 Jun 2024 10:16:17 -0700 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Usama Arif Cc: akpm@linux-foundation.org, willy@infradead.org, hannes@cmpxchg.org, yosryahmed@google.com, nphamcs@gmail.com, chengming.zhou@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH] mm: Do not start/end writeback for pages stored in zswap Message-ID: References: <20240610143037.812955-1-usamaarif642@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240610143037.812955-1-usamaarif642@gmail.com> X-Migadu-Flow: FLOW_OUT On Mon, Jun 10, 2024 at 03:30:37PM GMT, Usama Arif wrote: > start/end writeback combination incorrectly increments NR_WRITTEN > counter, eventhough the pages aren't written to disk. Pages successfully > stored in zswap should just unlock folio and return from writepage. > > Signed-off-by: Usama Arif If Andrew has not picked this up, send a v2 with more detailed commit message, particularly why it is safe apply this change. You can use the explanation given by Yosry in response to my email. Also add text answering the other questions raised by Yosry. If Andrew has already picked it up, just request him to update the commit message. You can add: Reviewed-by: Shakeel Butt