From patchwork Mon Aug 14 18:29:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 13353173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E89AC001DB for ; Mon, 14 Aug 2023 18:29:51 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1qVcK4-0004be-VI; Mon, 14 Aug 2023 18:29:48 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qVcK3-0004bY-Pl for linux-f2fs-devel@lists.sourceforge.net; Mon, 14 Aug 2023 18:29:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rkCnp4KOoLwAbXnFYftAgei+R6f5fxGMthYg+FOfHlw=; b=ALBMF6TW8Tzrqbw/9tVSE0Z9Oz q1Frm9jQuA3VZb1iYOFpe1s8BG6ew/Ge/Fd0ifnjVfs94OUS+QebOI8gGfokcb37nOBELMoJWko6i +9ZGyMjJF/iDjlygmf3xLEQGj6O7uWx/MMMk43euZPqmd+szY7nM6Zn0Pd3Iv4Nho9CM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=rkCnp4KOoLwAbXnFYftAgei+R6f5fxGMthYg+FOfHlw=; b=c bRdJaXibQbNvcTr/4024JMN9CpC9jOnCGRPsWpAVv9UkEjOnHVAIiXV3hQL+ghv1UdLVxuztIerzt uUzW8iJYHbXMKffu/JKlJ4Mma17A6HNkMdiR+SS3RfCzU+TJDQcJOKW+Zdc58IoxhsgQLNliZ8tEO bq6pfePX4zpSBMpA=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1qVcJy-0007zd-GI for linux-f2fs-devel@lists.sourceforge.net; Mon, 14 Aug 2023 18:29:47 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF24D63FC8; Mon, 14 Aug 2023 18:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E5FEC433C8; Mon, 14 Aug 2023 18:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692037776; bh=uVYR89LUMO78W0VjDkqutMqUi2s1NDJcRATsUgnL4s0=; h=From:To:Cc:Subject:Date:From; b=ZwvgHI6vwkmlHBBx4WcXoMviO24OlBy7Z5cuSa+qxtYZOp878FhM3EK9pO7T355Dh SCXTJUF5wK/mC50r3jun/n5+2gEuTgixGwlJocA2kptuuld1sDDNm0EKfoTRdAusEg Yn+vGGEIx1hv3qbCr7msdkNvYLNe+KQJef6USeD+TOlXyG6JocFHyyI4i7f+KmszTS 8qBYH25ngGeEeuaE9XLcN0co1wKA6WF4Eh7oNF5KHxphMeg/WUinY82m9TF3xT5s5N JNPccRxQoOftx6FW6v24sf8aTwCibDK7SL2nbezyI8MSqRBFmmkXqrAz2O6k6Oxkor ToYEhz9Q5YY4g== From: Eric Biggers To: linux-ext4@vger.kernel.org, Theodore Ts'o Date: Mon, 14 Aug 2023 11:29:00 -0700 Message-ID: <20230814182903.37267-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Headers-End: 1qVcJy-0007zd-GI Subject: [f2fs-dev] [PATCH 0/3] Simplify rejection of unexpected casefold inode flag X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net This series makes unexpected casefold flags on inodes be consistently rejected early on so that additional validation isn't needed later on during random filesystem operations. For additional context, refer to the discussion on patch 1 of https://lore.kernel.org/linux-fsdevel/20230812004146.30980-1-krisman@suse.de/T/#u Applies to v6.5-rc6 Eric Biggers (3): ext4: reject casefold inode flag without casefold feature ext4: remove redundant checks of s_encoding libfs: remove redundant checks of s_encoding fs/ext4/hash.c | 2 +- fs/ext4/inode.c | 5 ++++- fs/ext4/namei.c | 6 +++--- fs/libfs.c | 14 ++------------ 4 files changed, 10 insertions(+), 17 deletions(-) base-commit: 2ccdd1b13c591d306f0401d98dedc4bdcd02b421