Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 458C4390 for ; Tue, 2 Jan 2024 01:15:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jBkzpQnE" Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-2046b2cd2d3so5910300fac.0 for ; Mon, 01 Jan 2024 17:15:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704158150; x=1704762950; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AiGwSYUXI9fxcYVwvEl26RBkMK69KBi7r4UwJQYgdE4=; b=jBkzpQnExLpXDqhM2pYHoDe9Usm1Xl2Z0BJJkMf9Bdp2yf3WjZDoTLWNfyb/ETj5ac yA+VMXeBGEl2GXXVW5J1JBdcl7qUrTk7FGrI5AtaYNywz7NWu7QPsa+P/JaDMbbm24Z9 5SjYjjUxm0127Kfr5vsSbAMyh1UP+cs97muus= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704158150; x=1704762950; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AiGwSYUXI9fxcYVwvEl26RBkMK69KBi7r4UwJQYgdE4=; b=clSmvn3fJxRH0FThN7l5kM9fKleaD/FN1kd9RHuJVVWlPsPnfD5NXuEIP6/4BBlx5t h8IGIpiB53xEfQZLwbAemo/N37tak2QG62KkBresO1yG0d8uTMavvfZhD7JdMzMu2oQ4 BUo58xwkB9rP70ht3tpl8IPKI/KUuxvPfve9YjYVdSkHr7h3WHN/SOyFifQJSi/c3DVb a7xvHE9RtpGGCTZot+eNYOTvCBYmj2uNpPZD/UfSUBWeq0lP1fYEqTQ+BsHbvg/LDdhi MroWMOOQk714xDqzw5VV9BCScrWBCIXH7ZzgOJ3onm7hcUoz3YrLDO9n88EVCniWFRIH MhbQ== X-Gm-Message-State: AOJu0YzB+FKvkM14+Ts98tKufiFRKA95wPrSgb/ShKTZXqLOSbKk9Fkz W8nZIOaZ5wTBf1DtZBDh7SFCPUWdeb8T X-Google-Smtp-Source: AGHT+IH9S0eoxCJzaBceLRCqYyMLMz41Ex8ouKxN6Dp7H2vys3Lzl953E5tC2NyCU5dsGbkan5tlDA== X-Received: by 2002:a05:6871:8983:b0:204:5246:eda6 with SMTP id tj3-20020a056871898300b002045246eda6mr19443277oab.69.1704158150228; Mon, 01 Jan 2024 17:15:50 -0800 (PST) Received: from google.com (KD124209171220.ppp-bb.dion.ne.jp. [124.209.171.220]) by smtp.gmail.com with ESMTPSA id si6-20020a17090b528600b0028b5812c477sm25447407pjb.35.2024.01.01.17.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 17:15:49 -0800 (PST) Date: Tue, 2 Jan 2024 10:15:43 +0900 From: Sergey Senozhatsky To: Christoph Hellwig Cc: Jens Axboe , Richard Weinberger , Anton Ivanov , Josef Bacik , Minchan Kim , Sergey Senozhatsky , Coly Li , Miquel Raynal , Vignesh Raghavendra , linux-um@lists.infradead.org, linux-block@vger.kernel.org, nbd@other.debian.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 7/9] zram: use the default discard granularity Message-ID: <20240102011543.GA21409@google.com> References: <20231228075545.362768-1-hch@lst.de> <20231228075545.362768-8-hch@lst.de> Precedence: bulk X-Mailing-List: linux-bcache@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: <20231228075545.362768-8-hch@lst.de> On (23/12/28 07:55), Christoph Hellwig wrote: > > The discard granularity now defaults to a single sector, so don't set > that value explicitly Hmm, but sector size != PAGE_SIZE [..] > @@ -2227,7 +2227,6 @@ static int zram_add(void) > ZRAM_LOGICAL_BLOCK_SIZE); > blk_queue_io_min(zram->disk->queue, PAGE_SIZE); > blk_queue_io_opt(zram->disk->queue, PAGE_SIZE); > - zram->disk->queue->limits.discard_granularity = PAGE_SIZE;