Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1099485rwj; Fri, 23 Dec 2022 12:38:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXvQXUKYsfanCJfeykAqgTzA8SFHsxEBnfQEdcn8A7PXcD+0zWLfsMGJSjNl3t6ctmlJCGIf X-Received: by 2002:a05:6402:12d4:b0:46c:fe2d:a588 with SMTP id k20-20020a05640212d400b0046cfe2da588mr8886419edx.18.1671827894340; Fri, 23 Dec 2022 12:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671827894; cv=none; d=google.com; s=arc-20160816; b=sEtaLfTCWgtYKvHSSitgU3rYpDP3iyb+2GbX7grFEDxT7oGzfIkMh7hfhcIPzn/I8n ZOIVhZsTd9Nw2HRs8roZ+TLa0YW7VQCLFgh8NO5F6IW7Vk+fSoM0Plwsui/9CGfKWD1a lwsdetb3GOTXqKv9nRdEqEy7Kw2UB6meweTzNnYSIFrsuuwbXK3xTUelzE32JoPf7pn1 IMM09Vkcrtgub/EHCBqX9CnGjYG6IqUous2njxnLluHnAN0bVL4mPddl1AEt1ROgR98P tpVTQjKOTX6347+keEHdU0GFkmiJqSx3tYiJHKlS812ClDf+/R7RVeGJbd61qYBSTE6p yhCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XG80x8x7YhVHbVAAYLK4PlfjQVUCY66dtzWif2/0WXM=; b=CUpAOtZFsJBWBXro9HpXeQHsVHmALfXO9I5aO7aT9xme2DhneQCnKPIzqVTP/vEiQl Kvf9evrMAPiv6G86sbNDCv5p/UF4nqhp8F9WTgrN/OOUYZZ4l2HCSpZQhkxNYnZu1/Ql grzzxChWNRYuuRXhBV7Xkv7VwwQikQRk2R9B4uwyPKpZWQauV/uhuuTGT1PNuCbiWnJV 1pMEQ8woxwp5SVb45ND4kxExR+StaoUqQpv4dMV5dGNEehDytuKviN3AISAxuCz/weMW 7FG9ZCio65KumtsziUciejmseiDOO+dzbdOAi+7+wyVAamaHqp7qZeTUaPi6fiW3202u 6AEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CPWnTNgY; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce11-20020a170906b24b00b007c0a8ff3384si2666287ejb.763.2022.12.23.12.37.49; Fri, 23 Dec 2022 12:38:14 -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=@kernel.org header.s=k20201202 header.b=CPWnTNgY; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232874AbiLWUhK (ORCPT + 99 others); Fri, 23 Dec 2022 15:37:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233351AbiLWUhB (ORCPT ); Fri, 23 Dec 2022 15:37:01 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 877E51DA51; Fri, 23 Dec 2022 12:37:00 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 21E9461F10; Fri, 23 Dec 2022 20:37:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A262C433EF; Fri, 23 Dec 2022 20:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671827819; bh=4oD1V523N4OyxstVi41q9/FPJsjEFrEIUKGeeV0MTvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CPWnTNgYmt6CHb9BL1qsJSCqM3DzwpOukO6P/TF58fagSqhT4layB4JaIZgvDEsoa brZ/vkXQ0/N2NTvHV8gxSfrysKPIq8spCa7Klmpfw1m6Z5dGbmJhPf75v0RMwCfPHL iCDoakd4sHQgLNoYwCUBLXwxsZAfjtCkiwoBI771EW0whZ1URkj0PFxWZrH8mwPKEa U1lix5nDUvqRaQBXdiAmBReWIgaK7eubwfI1JD68dvWqj5YVohIxpUmiXT2soZvFDN YpdC0krtFjeEQaYvRSXplVkyNp1GHNIIl0sofW0z+53fYnX14aCYrjLkUFD//aOry/ IEHktE1X0geUg== From: Eric Biggers To: linux-fscrypt@vger.kernel.org Cc: 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: [PATCH v2 09/11] f2fs: simplify f2fs_readpage_limit() Date: Fri, 23 Dec 2022 12:36:36 -0800 Message-Id: <20221223203638.41293-10-ebiggers@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221223203638.41293-1-ebiggers@kernel.org> References: <20221223203638.41293-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,SUSPICIOUS_RECIPS 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 From: Eric Biggers Now that the implementation of FS_IOC_ENABLE_VERITY has changed to not involve reading back Merkle tree blocks that were previously written, there is no need for f2fs_readpage_limit() to allow for this case. Signed-off-by: Eric Biggers --- fs/f2fs/data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 6e43e19c7d1ca..6c403e22002de 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2053,8 +2053,7 @@ int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, static inline loff_t f2fs_readpage_limit(struct inode *inode) { - if (IS_ENABLED(CONFIG_FS_VERITY) && - (IS_VERITY(inode) || f2fs_verity_in_progress(inode))) + if (IS_ENABLED(CONFIG_FS_VERITY) && IS_VERITY(inode)) return inode->i_sb->s_maxbytes; return i_size_read(inode); -- 2.39.0