Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp388617rwr; Thu, 27 Apr 2023 02:50:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Xa4CVHDCPyY0jdnAuDK3ZiB99W0bP1OeCdC0UYsPUo+A1hbW6HLqJPUJRQlW9qbwRuN2t X-Received: by 2002:a05:6a20:748a:b0:f1:c0a1:8035 with SMTP id p10-20020a056a20748a00b000f1c0a18035mr1457391pzd.0.1682589003414; Thu, 27 Apr 2023 02:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682589003; cv=none; d=google.com; s=arc-20160816; b=FT9jkm4Feos9IzcVfJe6b5c1qsmkRYPmONGUDsOYSemNbNtlKbj+HJbvf6mctP0g0s DrnvAlzg2amYvrbgAxvKTlhu7OBnourBrZJ6k8bXzAaqRc7+Cm1VwFoQW2pFY22gaSOi Q8Er2yLOOm/QNfYRv5YAzP9ewTS8b1GAGtqfQtKY59iXhCO5i3nYe9+sAGf6fY4EMnVm 6nSlZMfNAUfIIk49dvk4WH5EbYM4aWi6FlLb+WaZOJkbBUPyUN1yzTcPolMVeNURLE8b /ESktKpzBDzrKfa1ehYWGjLf4ljdKvsXjSp8usc+rXrSZVZ+prlH5/eW+H/7dSbUMwYx 5QKw== 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=vwN93UCyAE/H9idQu4OabnuUQFCql1F6iI9eLuzlMqA=; b=LWCb3m1bjcV1fh0oOJcTRZmUef6hm2UT0oSLNAzuUzGl90X3y+z82I1ELnVvukbFcW b4XihkMy+OoFMlhsyXd40nPwMy6ZoE6CHounZ6LnYj35AU2e0Lf2WUixoX8neLZusrob ocxdQB6Vh+l2CiGFQz41S6ldaJNJvuqZCJw0dO88uF5f0IPOAkjG/juiss3iR4z4v8m5 lrmSFT+Y05E28azUjnzGOLZcTX25HDi+jJoDceqVIBO1soU1+Fnub/J8Y9UFKafKBC9i j7XoWHRrmfT+E1fs/It2m5iC5guZaxK5VePylVpPiDtQY7Wyt4nTHZIBnju0GskIz6F8 qoSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g8R58B66; 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 l69-20020a638848000000b0051a788417e3si19638868pgd.466.2023.04.27.02.49.49; Thu, 27 Apr 2023 02:50:03 -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=g8R58B66; 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 S243204AbjD0Jqz (ORCPT + 99 others); Thu, 27 Apr 2023 05:46:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243326AbjD0Jqn (ORCPT ); Thu, 27 Apr 2023 05:46:43 -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 32F2340F5 for ; Thu, 27 Apr 2023 02:46:42 -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 AF6BC63C1A for ; Thu, 27 Apr 2023 09:46:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAF1CC433D2; Thu, 27 Apr 2023 09:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682588801; bh=faO1Iiushfs5WZXOoTBrEe2Q8A6BFQcPbVG1Q2MeGEQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=g8R58B66hbkMv+pphipwP7OoCK6NoAbYBVvkBypg/Ts2a5kqUgkS/ovd/cmy2C2VT zdcSKs8cDo9qMw6WYSuI82iBpNYZV6HLTldJqt2BI7dbR/6gjwkyNXIV7fwyKN9xGD B2Gk7htoBwg6Fpdm8S+xNJDgaUO15IFjrPbJto3TUiwDLAqZVxHNaXLqkV2pM6j4Xs becs6xwX8UwjLL9BhBZT4djDy+9gNUMgY9DJl57ZA0AbmvMiHVGZM1Z9/k/WIzitOU WUmRlCkmX/XGLYblF7SnNU5y9ERvux08nWTHxDSUdRgD0n7+xmx6XX0w3V7Qcd8R8L FKRip5qFNEaVw== Message-ID: <1a602371-d9b0-7148-c916-a02c40649d53@kernel.org> Date: Thu, 27 Apr 2023 17:46:38 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2] f2fs: do not allow to defragment files have FI_COMPRESS_RELEASED Content-Language: en-US To: Yangtao Li , Jaegeuk Kim , Daeho Jeong Cc: Qi Han , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20230425164711.19826-1-frank.li@vivo.com> From: Chao Yu In-Reply-To: <20230425164711.19826-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 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_MED,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 2023/4/26 0:47, Yangtao Li wrote: > If a file has FI_COMPRESS_RELEASED, all writes for it should not be > allowed. > > Fixes: 5fdb322ff2c2 ("f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE") > Signed-off-by: Qi Han > Signed-off-by: Yangtao Li Oh, I just see v2. Reviewed-by: Chao Yu Thanks,