Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp701437rwl; Thu, 5 Jan 2023 03:25:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXuES1cgUzLtJCJddVev/No5h8KVc8yBvFpAutR8PXB5nUjIjN4wd3S3ztdgNBlgr0Pkn51n X-Received: by 2002:a17:906:92c4:b0:82d:e2a6:4b1e with SMTP id d4-20020a17090692c400b0082de2a64b1emr52766933ejx.47.1672917954568; Thu, 05 Jan 2023 03:25:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672917954; cv=none; d=google.com; s=arc-20160816; b=zXqq05iAVrXr8p7LjI22dk30Im5ZD+dPxu8IKdmA7OIwGskB+Q+F7LgFs6T8XFnjBe X7JG5PHSFvLUunJNkp5kWZIGoDAMZn8nCOCfYV7T8EELac+0jJfOUiOvRdvraOc/j86C ayfPtYULFjkTRM51rP9S4YIqKv8MqHye1VjyWwWABbzkNxoIPhDo9k7kdRvNOypqPtFI h9foNAjsQvW2uNFN1tKccQ8eFnpqy2b+cDYUry6ypI0yzQMQSxeSFWTlVc0dDc3ao7c4 CSHGGcX9qLt91EfXQE+v59leMnyumNZDFi1QUC4rU5cnORumNy9ZdvynAKKEMrr0BwBa sygw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LynWwuoBtbTAuC+gq6MIO5+/sTdrwQNrdj7hw7C9k5c=; b=BkN48sI3vx5mNGzVNPxk6mec8GLIYe3boF40IpWTqPGr/tME+DvJL49c6Tta0o8gC3 pYWgor/QOnVZeMvr8fFwVuR1BnikerjZeCH/EkeqlJaeUwuRqiNvFaE33N1MOmJwmGDX bHcUAolkdnMNydSVaxZCUzRs9h2b8OUhj7rtIBJfV9UFWfFy+SYmlwFb01spwiIuTx80 gYX5GmkXC9MgiDcf4WwblAv7heMjc7zsHTsGJn2LXP6mO7vVVYGCb+DbCyflZtGVkc8U cH2y27KwHW8hRj4BgdwIUgGTsvVzTmJaAdFyMYYbfgT+ohkm+iHyfXbs6ilAFthvpswj wjjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ZaHqwNGm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg40-20020a170907a42800b007c0db55679esi34959364ejc.361.2023.01.05.03.25.26; Thu, 05 Jan 2023 03:25:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ZaHqwNGm; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232926AbjAELZP (ORCPT + 99 others); Thu, 5 Jan 2023 06:25:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbjAELZF (ORCPT ); Thu, 5 Jan 2023 06:25:05 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64E994FD75; Thu, 5 Jan 2023 03:25:00 -0800 (PST) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 305BGe9v007451; Thu, 5 Jan 2023 11:24:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=LynWwuoBtbTAuC+gq6MIO5+/sTdrwQNrdj7hw7C9k5c=; b=ZaHqwNGmDgFaA2BCR/4TxIdHCatsD318PRNxFYCtffGxLPneSaGeF9l88ctbfwh1MGaT XAdBcCDBUEFPG4orWx1qoUB0wWzPhQ3Hs3dEO+wIkc9uyrLoe6AE9t3Sf5TmyHlJNcVv H9IqfGGONcpHYmLvgKjaSLcaUFBd51WQzUdSMQs4ucijcbgeqUKgdg18RB4IrsV7GBDC QplBGPQjjK+OZ5vCwt3PeSz/b31LpVoBaO0pV9O02qgWxZnaoGdsodES86MEXQB52MpH /F9m8s3S4+hJV+ZA2bkd62KQyWJc/BgbiJ3ueyHQQkzYZMCgrXlWuexs3HyDrobf/Rl9 GA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3mwwhng4f0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Jan 2023 11:24:36 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 305BM5qH025452; Thu, 5 Jan 2023 11:24:35 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3mwwhng4ep-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Jan 2023 11:24:35 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 305176xm010137; Thu, 5 Jan 2023 11:24:33 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma06fra.de.ibm.com (PPS) with ESMTPS id 3mtcbfmwqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Jan 2023 11:24:33 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 305BOVNF21823928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Jan 2023 11:24:31 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3107120040; Thu, 5 Jan 2023 11:24:31 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24D3220049; Thu, 5 Jan 2023 11:24:29 +0000 (GMT) Received: from li-bb2b2a4c-3307-11b2-a85c-8fa5c3a69313.ibm.com (unknown [9.109.253.169]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTPS; Thu, 5 Jan 2023 11:24:28 +0000 (GMT) Date: Thu, 5 Jan 2023 16:54:21 +0530 From: Ojaswin Mujoo To: Eric Biggers Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org, Andrey Albershteyn Subject: Re: [PATCH v2 00/11] fsverity: support for non-4K pages Message-ID: References: <20221223203638.41293-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 890KEnm2Wi9_d5p_zTlxhAtZQDq7bwHI X-Proofpoint-ORIG-GUID: 3AV4vqvnUNdNa4KL2nVnBiy8hfxXvknE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-05_04,2023-01-04_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 impostorscore=0 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301050089 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jan 03, 2023 at 11:25:18PM -0800, Eric Biggers wrote: > Hi Eric, > Thanks Ojaswin! That's a good point about generic/692. The right fix for it is > to make it use $FSV_BLOCK_SIZE instead of 4K in its calculations. Yes, that should fix the issue, I'll try to send in a patch for this when I find some time. > > I suppose you saw that issue by running the test on ext4 with fs_block_size == > page_size == 64K, causing xfstests to use merkle_tree_block_size == 64K by > default. Thanks for doing that; that's something I haven't been able to test > yet. My focus has been on merkle_tree_block_size < page_size. Correct, I was testing "everything = 64k" scenario when I noticed the slowdown. > merkle_tree_block_size > 4K should just work, though, assuming > merkle_tree_block_size <= min(fs_block_size, page_size). (Or > merkle_tree_block_size == fs_block_size == page_size before this patch series.) Yes true, I still tested them just in case :) Regards, Ojaswin