Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp9812rdb; Fri, 15 Dec 2023 20:29:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3MPzSOMPPQVDxXlNibxegKQ4YN/fWG6TfSWI7w8LbEdQYyOZdZKza0Bj2D21ZYGLPTr7v X-Received: by 2002:a17:906:74d6:b0:a23:fcf:6465 with SMTP id z22-20020a17090674d600b00a230fcf6465mr1804535ejl.121.1702700976266; Fri, 15 Dec 2023 20:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702700976; cv=none; d=google.com; s=arc-20160816; b=xcxkw+Om+XuRALhaJcR6VPSrCsSVKYhVd26p42nS36PLM4wmKGemkLOtLt+W/HYKN5 MTqhx7r/RYA2n2SOZXU+tZhn7Wf2p4LMaf9zgSzzC3t/F26Xgq+YF0w5YcBeo+kbNyvd 0nRPV8mH+h+eIJoQJQY5PLkKKp+sq930+3I1Sfjzw1PeJnW1XLOJ4wOnDDQ6sV1WUgFg ZMQ1XZij0jMxkbYi6GKOPupoqP+bkcny5Yk9i+b2ntPQmgbAmzUHRooIVQtFuVl1PD5f f6ZkrZzqExVYkSNTqrkgYejXv3qQBhx2AtCpfeUH+wnvQ1zwA1fz/OQF6lBHN3vw2LqV Wcuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=L6Px59pK4XAJez5Xn2mLIW7dItlbq2W1mwgDlUHUWGM=; fh=sZiEiD2fSHk+vUFwkUJd9PbdBDETSDhzPH1FyEFE5Xg=; b=Sd/gDCILYCHTDAXZTHJwZ6F/QWPk2W69OnQKU0xv5vyCL2RcpbRfc0/umAdi/uUNRq RTum31u3VBLdQAHur3hpNvshDmw6RD2smfBhG6KdjBoouATFz/Q5CTLOHZ/59owS1+Td qiqlddUDUlWXAQzDdJhLQSsveJgbES1QzL+XAu5IPc9/qaxnjf+igPIB1a8iZIdyWABy PMmfrJnMfUS7O0e3yxU7y/vehq6VI08dwmRmLXUXuWr6DD0Y/pF8bv0//16R1EIXfiBu NtWfkMzTh1tJChBQLhoTMvgFxSH82BaEFWB8vQo7mZEtAkx9o4B1LMHKYUKRZtubM98F nfMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2064-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d8-20020a170906040800b00a1cf9c39cf3si7804162eja.282.2023.12.15.20.29.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 20:29:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2064-linux.lists.archive=gmail.com@vger.kernel.org" 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 0E4811F25E46 for ; Sat, 16 Dec 2023 04:29:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DDB011CB1; Sat, 16 Dec 2023 04:29:23 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 90AD811187; Sat, 16 Dec 2023 04:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 8967F68B05; Sat, 16 Dec 2023 05:29:16 +0100 (CET) Date: Sat, 16 Dec 2023 05:29:16 +0100 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: Andrew Morton , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH 03/14] fs: Reduce stack usage in __mpage_writepage Message-ID: <20231216042916.GC9284@lst.de> References: <20231215200245.748418-1-willy@infradead.org> <20231215200245.748418-4-willy@infradead.org> 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: <20231215200245.748418-4-willy@infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Dec 15, 2023 at 08:02:34PM +0000, Matthew Wilcox (Oracle) wrote: > Some architectures support a very large PAGE_SIZE, so instead of the 8 > pointers we see with a 4kB PAGE_SIZE, we can see 128 pointers with 64kB > or so many on Hexagon that it trips compiler warnings about exceeding > stack frame size. > > All we're doing with this array is checking for block contiguity, which we > can as well do by remembering the address of the first block in the page > and checking this block is at the appropriate offset from that address. Looks good: Reviewed-by: Christoph Hellwig