From mboxrd@z Thu Jan 1 00:00:00 1970 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 7E22C5588F for ; Thu, 16 Jan 2025 08:28:17 +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=1737016098; cv=none; b=BhGI5FFfNZhquUiODG+2u6XcXH3wBMVQXI+36d5Ol4kyh4kf4pF4Vg92dtgkDLUSVyCPk3qxMd33gIgLMOXXzAzxoHstDRgXvZiBJRGqXziiRiIz4Nu+GAX+h6Q+Sok7WLzoxxPqtL1LmtxBil04ykKkQVeTi/lJ5wDjRKt1XX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737016098; c=relaxed/simple; bh=7pAdBD+u89J2faE2h+z1zYNtIVQQPHSKPJE0LgQAGcQ=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=WeZNEl9XcU+qo6xpBjWfagxNPv/pBMdstH6btsdSVqYMfjOk9KcIzOfDAlEL2dLyCQgZx3m1NKJjVdhgPKGqj2reOE5tIbFYR5EUtAkekxleYyh1MmfRRlzm5f52Iq4swPVf5uhTBkObdNqM4J5WV6ddhUSwD24FjD+fCNeaH+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iHeoRhPT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iHeoRhPT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 326D3C4CED6; Thu, 16 Jan 2025 08:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737016097; bh=7pAdBD+u89J2faE2h+z1zYNtIVQQPHSKPJE0LgQAGcQ=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=iHeoRhPTdLBYaoBiK1GW45QEuiyiLS4qBCiWB7bYFep2RuVMgp+3IkBmqo9by9yw/ cVE9o+lNj5z2R9QYzVJ99/Rcym7mkeknJVMtEhA68xxXLkyWf7y7gG79GnxxIzQOft 4IB1/yMvg9fAQYAP8WdsyFLGPzJTNFOIr35ramcpC8v74slF0lLYBY56Vww1/o/zT1 FTY6B+jPr3dgfaeiXGOD+KLrdFbtsWZF5r5tkhOKfJFKFIoyQ3VI0GHvlE6BteaV7z gH62p6ui/SRtCgVZUSsu/0d49GY1Ajh4fLpxxSIWNm28XCBSdN3CI1ZO31RW5bXmMe i//j71tqv2UGw== Message-ID: Date: Thu, 16 Jan 2025 16:28:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: chao@kernel.org, LKML Subject: Re: [PATCH RESEND] erofs: micro-optimize superblock checksum To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20241212023737.1138989-1-hsiangkao@linux.alibaba.com> <20241212023948.1143038-1-hsiangkao@linux.alibaba.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20241212023948.1143038-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/12/24 10:39, Gao Xiang wrote: > Just verify the remaining unknown on-disk data instead of allocating a > temporary buffer for the whole superblock and zeroing out the checksum > field since .magic(EROFS_SUPER_MAGIC_V1) is verified and .checksum(0) > is fixed. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,