Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp67231lqb; Tue, 16 Apr 2024 09:01:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWREBf6nUpl73ZQLlpHJdKl+v2eeVFGb5trEdbzTksKsPMJ6iMagd+uXTwjdtuf1wBhEN15luJjXSfusewMAg7NbePlDWP5C2X8/HxVrQ== X-Google-Smtp-Source: AGHT+IEpw/bqQN8vzYwzy5cTr7j5P334cY7aOVE6tw6XU4R0KowZaiAtGbX6tK5Uoz0dWRrJbEzy X-Received: by 2002:a05:6512:ea8:b0:519:1eba:8838 with SMTP id bi40-20020a0565120ea800b005191eba8838mr2634090lfb.35.1713283265750; Tue, 16 Apr 2024 09:01:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713283265; cv=pass; d=google.com; s=arc-20160816; b=Qk9TF7p8fICKWUkYX4BWkopa3+qfqr0agvlU0dgAQjFGgrRtVTDOZnpWnNquzNtJnf nZhki/DaHg2a5AQn4XstVZMekPDN9YHitmLhMHSajSEBRHLl0W9eUf+y/UGZiPJ2sFGB kkEOsIgVmwyHn9wkQ8HhbwIgbMAW1SzGwN23n8BJZjJW+SN5e9WQ4aw8lwSnr5qb5FfG FbnwlrKFDVr2YsWCEcgOnGQHqowmrfsnh8xLMVTE9uMv4HS4hWZVnm00VXQ+1RUS1/w6 w6iLwUxFxw1KAdclTfjrtiy7TGm/WzTfIGE/2rxNdtcMdqCFKy8GzRz05HVT3fdbRhvn +sYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=uZYilWKWnVXzXXBCofpUeXzd86A+3HM4I8K+JqnhkT8=; fh=jez7vKVPmzD6MHxHWS+9ln6AZqRmbR1MZhpqflNmQvM=; b=v4QViUQRz0Y3Zvx4ZhT8CCeKLCJ2RpHcpnH1aruL2D1nE2X0tAt6a0pvSDyQRXCmxQ ZRyHu6cELEDsTN5H2TyYxpexw4ls1AcAPNnwOtkvpdgzHvb1NsuZu94CzAU0nnRQWxRh iEHfzD4DNtc2WPXvo+llP9Qlr3mqj+VBePKKGgijif7gdjKpcZMamI3GjnzwuALfLuWn uWthSh8sgtQMyjQqLTogDGcIfFSpDSdwdVbti4qxJiufM0szcY4l7v24bcqHT+ZKViAh ooiPhbhbgsKchmvop0ky40VqRRqu7+GvlrprgZ0Rgf80CJv27WwrJ1vvLhjA/PPU3MXy OTWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PzG0c6gX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2104-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l7-20020a50d6c7000000b0056c4eeebe87si5566096edj.332.2024.04.16.09.01.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 09:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2104-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=@kernel.org header.s=k20201202 header.b=PzG0c6gX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2104-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 6F1D41F26425 for ; Tue, 16 Apr 2024 16:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D7B1131BC9; Tue, 16 Apr 2024 15:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PzG0c6gX" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8A863131756; Tue, 16 Apr 2024 15:56:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282989; cv=none; b=KvnL8NE5t+DM9E57D4gK8SVATy9fP0uNjs4qwv2QKPBPRjBWtR6Dap3yYy8SLxGyq7iYw/YfMLpDEc6s+DZOWWTysUSnoYnY5CT/jwoNzJaFai7auEBRX2PrLPjvH/It3ppwnfwHJg3XyfqZkqI18Xor/CjB4XW3Cm63YXQmV2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282989; c=relaxed/simple; bh=xj5oIWlYq20UZfWwDIb9TzDyZ90WyaHjoi8dkpzi3hY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=KNGXRcXEN5N6sk6sit5dCslNqB6WpfMvTZ5z4gigUfq1ciygg0lQX58UoJQSBfTMxij1ou8aMmsls0WzA4wJCJAIAjnJpR5Y4ABqNxb5WLLsyWb+MFl1/DKekdfdF5fXyVJPi8Heqzgzc/UyIVWB3+qHJ4s+1V1b+TvMbTShIew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PzG0c6gX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 792D7C113CE; Tue, 16 Apr 2024 15:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713282989; bh=xj5oIWlYq20UZfWwDIb9TzDyZ90WyaHjoi8dkpzi3hY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PzG0c6gXNNiSNW/OjmEVa1jcml2jIk4toUumXHj1PFWRlW2puT5qUARDvSSBmZTld GCIGfOAW1VrnjTIUNavavaDJSr1Gd6sgvwCnf1q1E4zJyQ0c/2xGB5qkqPuFUmSIP1 WV83tvTswwBRItV5wgDOF4QtZpNeolSypSzp89MKMt8qQE86rh4Q29J08tgh8oa8vy 8gNUYmIGxZIwan4Vu3AM5C0yy0H+O3SMqtkvl1DpLDRJDWwL9UuARjO2nZ4x38Sxtx RyRhgZY0gKSJaLestj4GkhWJgONsgLu4ePJn4xXcsB8Mbs8Dgr/UxuVimLexjZD4DM NWD56iIML/gfQ== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Nam Cao , Mike Rapoport Cc: Christian Brauner , Andreas Dilger , Al Viro , linux-fsdevel , Jan Kara , Linux Kernel Mailing List , linux-riscv@lists.infradead.org, Theodore Ts'o , Ext4 Developers List , Conor Dooley , "Matthew Wilcox (Oracle)" , Anders Roxell , Alexandre Ghiti Subject: Re: riscv32 EXT4 splat, 6.8 regression? In-Reply-To: <20240416173030.257f0807@namcao> References: <20240416-deppen-gasleitung-8098fcfd6bbd@brauner> <8734rlo9j7.fsf@all.your.base.are.belong.to.us> <20240416171713.7d76fe7d@namcao> <20240416173030.257f0807@namcao> Date: Tue, 16 Apr 2024 17:56:25 +0200 Message-ID: <87v84h2tee.fsf@all.your.base.are.belong.to.us> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nam Cao writes: > Fixed version: > > diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c > index fa34cf55037b..af4192bc51d0 100644 > --- a/arch/riscv/mm/init.c > +++ b/arch/riscv/mm/init.c > @@ -245,6 +245,7 @@ static void __init setup_bootmem(void) > * be done as soon as the kernel mapping base address is determined. > */ > if (!IS_ENABLED(CONFIG_64BIT)) { > + memblock_reserve(__pa(-PAGE_SIZE), PAGE_SIZE); > max_mapped_addr =3D __pa(~(ulong)0); > if (max_mapped_addr =3D=3D (phys_ram_end - 1)) > memblock_set_current_limit(max_mapped_addr - 4096); Nice! Can't we get rid of the if-statement, and max_mapped_address as well? Bj=C3=B6rn