Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8991486rwb; Thu, 24 Nov 2022 06:49:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf4OI80ZWQ2OieyRrXtkwFKcWyIraW+jQr+00uKmhqJBSEvFg2FYztW2jPfh5kuBwRC1VZIx X-Received: by 2002:a63:5d0e:0:b0:470:537c:1091 with SMTP id r14-20020a635d0e000000b00470537c1091mr15687895pgb.282.1669301343392; Thu, 24 Nov 2022 06:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669301343; cv=none; d=google.com; s=arc-20160816; b=UKhqbVbQZdzkKkXj+VlAcYs3/nGRFz0Etjopb3LOTFxVBNOxqS4jnDgyYdj2wE/PFC +H9/wa4WhfDSfPO8qQEn57tGwQ/QeoHPLteUNag+jYGFXwwqFdipCIaBE0v/G1heWtlw OKlZFYKjbIEfUC4t82+4g3jLUNWjvETRnye9JsNmiIWBjR5z2fRKO2FOcK7MKbua9xQm gK3HsK48N4b48fwaliDu7JtxVWyVTmc3Rdfka0iXAYjJo79mOKRDjQ3VzZfTOc1NSqJ9 ywhrpzxK8LQrjEeSaVLGcqLVAYkGeCZiCbDGaIAeaHiA7CVzxbfbIsvv5xtqzWGdMHE4 Rsww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2ajU8wIUL5WZrrKilrbwaXvL9AGqmcyNMj/UHdQvdhM=; b=MoP8CWSjRn/0VoApW7aFIwp7K97/drbB6FUarUORjoXZqrY8EZqGGIQW4rSb151TC6 3dSdcFF14YP2tLLDswpHj3u0CpDcRGPCHFVQ7kzMei2tDkVWpUv1II3pZbX4uX29+YpK 3npTLUSFqLof4FNRVmDWFtE3xpR/6JuYThLqfvqR5MiYct1OPDW/+UKdZFgJlqLvsdap yDpaBTe7RoZs2ewjwh8vNuIZedFAAFVk6VikB5EFzeckL2jOAjXVBd4sYJGpov0DN4Fx HeJgxojdW2C21eQuoHtxytVICLwZ5jT1KyQ1ChojmEDy94n9fGQn+nfin3y2z6euCao5 nveg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MkY1vANK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 il13-20020a17090b164d00b00218a9f90590si5539953pjb.2.2022.11.24.06.48.50; Thu, 24 Nov 2022 06:49:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=MkY1vANK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229748AbiKXO1Y (ORCPT + 86 others); Thu, 24 Nov 2022 09:27:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiKXO1V (ORCPT ); Thu, 24 Nov 2022 09:27:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFBEE9172 for ; Thu, 24 Nov 2022 06:27:19 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9D91FB82834 for ; Thu, 24 Nov 2022 14:27:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39214C433B5; Thu, 24 Nov 2022 14:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669300037; bh=NwnLbZ+fYIFT1sQNHNWPNuDrG0lF0nQj3aZpm7ljHUs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=MkY1vANKSNMc9/l6jC5yLRxz0sBj3WTo6WPTv9hQLEPkuKFgHuXzfeBw9W2Rx25c3 Ye6cDWlfsj9DuKU8wlrcGXiVC4wsX904paUzDJLWUtnmvB4iWDNUa1mq6nsVybe0qB hndf3p6S8AaZ/18vc/8Zz+ikrQginnRiNiEr4J4ALfIzX9VypS2yK1XMIG8driR4UJ OgPsXlUpa1IfttFM/Abgxg9FXVzn21aDdzGmarOEjGZPVeFWAFyBgjFRue6uIL0ieu yXnXnV8uGTueuwcWcnLCGlItCsumIhE1aQjkM1d8L0NpCx+B+Z3S6RPhK8BI+kg/yN cH4eVAkwsjAag== Message-ID: <121c8fec-6194-b9de-5019-205c448e9f62@kernel.org> Date: Thu, 24 Nov 2022 22:27:14 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [f2fs-dev] [PATCH v5] f2fs: fix to enable compress for newly created file if extension matches Content-Language: en-US To: Jaegeuk Kim , Sheng Yong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20221115160155.1037163-1-shengyong@oppo.com> From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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-kernel@vger.kernel.org On 2022/11/24 5:46, Jaegeuk Kim wrote: > If compress_extension is set, and a newly created file matches the > extension, the file could be marked as compression file. However, > if inline_data is also enabled, there is no chance to check its > extension since f2fs_should_compress() always returns false. > > This patch moves set_compress_inode(), which do extension check, in > f2fs_should_compress() to check extensions before setting inline > data flag. > > Fixes: 7165841d578e ("f2fs: fix to check inline_data during compressed inode conversion") > Signed-off-by: Sheng Yong > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,