Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2567992imw; Wed, 6 Jul 2022 08:08:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sloijlBnmHThhWm+M498sCPr7cGH0ACHQSexWRgnMgHy2HGb083ozXzjIbhoq6zZptL4m2 X-Received: by 2002:a17:907:7da1:b0:726:9562:b09f with SMTP id oz33-20020a1709077da100b007269562b09fmr42116513ejc.11.1657120121693; Wed, 06 Jul 2022 08:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657120121; cv=none; d=google.com; s=arc-20160816; b=kO36hDMOHRl16bjmL4ZnC31jQt/UVifgTKal9Q1FkMKaAuXm3RjbEa5cyOIWfMyRbZ DRHICeAUcIvqdgPhXuSEZWwnKIrladU1X9BeHkt5z/yq9bG9wQutM3/k7VM9aTa7ST39 /AXj8GeptADtv0tpHTgj37zc2obvxTlB8+VX5O6uPDNZv1/Z0l4mRcoZ5DPKKmBjEYCI qWl5Fq2GrESTc8tk1P4MCfhf2frZQ7kl+kcD0j6BxNFAOHjQl5/QbaOJ5TVkzttTsIm0 baaVdbvNrtGQqjp+rICi9AmhoJkEz6Yd7UakUGYM0GKUBGRMpbPrk7OEoogaOM93gyLB 9Rjw== 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=cPMKNqkAs2iYuaZXrVF5QfRwO7V1B42YDbJRQd+bDpI=; b=XYmN0iR1aSYH2uiVPTJJbpQJ8JgQamm0zinLbWDubgVyoKh/FxEOHq381jx9VbRyfQ WIjy8niV+PgFUFpbcfsZvrUGOTmWUZhy16/QmY/JZJA+/GXO3OV+mC0Oa0J3wJNSxeQG 7rgNheU450tQaAv10ngXa/Gd7Y3/0wIVtnHNrxEzeFXH65Bl/5bGOREsKVZ9hWqxdlhJ L44iPgEQAj838dyjtPg1CofucG/A+Co2NLgRJ/FAj5sRSxvBWs8AJVVYFmlI9778O717 Ho/zZtj6Rk53frlvkH7gZ6ajnNpmuhbB4eB7fyOkfZTbjyfTWUL4dXEJV5egRkUO6xau wCqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W+bHK5c2; 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 sb34-20020a1709076da200b00711f5622a37si10233136ejc.242.2022.07.06.08.08.16; Wed, 06 Jul 2022 08:08:41 -0700 (PDT) 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=W+bHK5c2; 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 S233456AbiGFO1u (ORCPT + 99 others); Wed, 6 Jul 2022 10:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbiGFO1t (ORCPT ); Wed, 6 Jul 2022 10:27:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9829021831 for ; Wed, 6 Jul 2022 07:27:47 -0700 (PDT) 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 31CF661EA6 for ; Wed, 6 Jul 2022 14:27:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A18A0C3411C; Wed, 6 Jul 2022 14:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657117666; bh=AqYKdoA9FLd1G1LCk3C1+7u1lQg7N8l1i5b7UcNhb2g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=W+bHK5c2gd9jzkU7diwCyrMzC+1smiCjHNYkX81108IqSzsZqkxt8iEAZc/UDg6Ts NFLzQBo+YZPexyYLaM/tBzCD7wZAY73J+7bYoosX8WRb24E2gxGnOr/D0uBIbU0DO6 mJjPkr2Igm8XxD6QDbNbZ+FVuhQxEG9dXLsz0JuDrwMjH1fi4XxOUFHUOtEn3PRSfQ ZOM+AWHotV5kFHBCoBAXPRi26zYUpfs0CYRyog3LA7H1L0wTVjS0mjqwatqGtKFQ5Y gOXMCW0BILY1HTanXIDSlv6dc9uBx98CPb/a7LtO1fZss5oYJGj/4NErbWcbTVydfE H98jg6lW5Od2g== Message-ID: Date: Wed, 6 Jul 2022 22:27:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] f2fs: allow compression of files without blocks Content-Language: en-US To: Chao Liu Cc: Jaegeuk Kim , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yue Hu , Wayne Zhang , Chao Liu References: <20220621064202.1078536-1-chaoliu719@gmail.com> <7fb689d9-11ba-a173-8ad4-a328a03298a8@kernel.org> 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.8 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,T_SCC_BODY_TEXT_LINE 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/6/23 12:24, Chao Liu wrote: > On Wed, Jun 22, 2022 at 08:50:33PM +0800, Chao Yu wrote: >> On 2022/6/21 14:42, Chao Liu wrote: >>> From: Chao Liu >>> >>> Files created by truncate have a size but no blocks, so >> >> I didn't get it, how can we create file by truncation... > > I'm sorry I didn't make it clear. We can create a file > by passing a FILE parameter that does not exist > to the user command truncate(1) [1]. > > How about using truncate(1) instead of truncate > in the description of the change? Fine to me, as f2fs_disable_compressed_file() uses the same check condition. ;) Thanks, > > Thanks, > > [1] truncate(1): https://man7.org/linux/man-pages/man1/truncate.1.html