From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4636AC48BCD for ; Wed, 9 Jun 2021 18:43:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2EDBE613E1 for ; Wed, 9 Jun 2021 18:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbhFISpe (ORCPT ); Wed, 9 Jun 2021 14:45:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:50014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbhFISp2 (ORCPT ); Wed, 9 Jun 2021 14:45:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BBE2613AC; Wed, 9 Jun 2021 18:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623264213; bh=vQ1SsFfCywlqRQRnaHRZ0AG6i982cLly1NBLPalQ438=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KNq0WJ0yN5xclxnJkMdACG3Nq7ICu17YRELK6TYkDFTbdsmlCv+C6JxITHWzlqi22 ZKw1TUCA62EdnA12aBTi+YKko9SRWAy3wKyrLQ6tCw5EJicYpB5pks9D1qK1vOMn17 FPKQ9mNwgC0IZA3FzV8Qw6Q368AlvIkeg65SFSHJim10xmlGe2URIopbZymCTEl3bm JGdcCCNIsR/LZcLmK+Lv8Cnr7aJZ8E9UDUJbCc0pr3NRvVZ40OZnN0rPS9TfziWNWg L/x90essw1KJFOjv4iCrSzKAJD1wP70/mdKFQmD10HuwiANoFbNbisicFaGDSf/Ocu LOSKgO+P8ufNw== Date: Wed, 9 Jun 2021 11:43:31 -0700 From: Jaegeuk Kim To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: introduce FI_COMPRESS_RELEASED instead of using IMMUTABLE bit Message-ID: References: <20210525204955.2512409-1-jaegeuk@kernel.org> <20210525204955.2512409-2-jaegeuk@kernel.org> <95b5669f-a521-5865-2089-320e2a2493de@kernel.org> <3f2c2543-c8a4-3477-76af-5c7614b643e8@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f2c2543-c8a4-3477-76af-5c7614b643e8@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/08, Chao Yu wrote: > On 2021/6/8 0:56, Jaegeuk Kim wrote: > > On 06/06, Chao Yu wrote: > > > On 2021/5/26 4:49, Jaegeuk Kim wrote: > > > > Once we release compressed blocks, we used to set IMMUTABLE bit. But it turned > > > > out it disallows every fs operations which we don't need for compression. > > > > > > > > Let's just prevent writing data only. > > > > > > > > Signed-off-by: Jaegeuk Kim > > > > > > Reviewed-by: Chao Yu > > > > > > BTW, we need to expose .i_inline field to userspace since there is no > > > way to check status of inode whether it has released blocks? > > > > Need to add some in F2FS_IOC_GET_COMPRESS_OPTION? > > We should not change this interface, in order to keep its compatibility for > userspace usage. How about adding it in F2FS_IOC_GET_COMPRESS_OPTION_EX? Hmm, or need to add it in getflags? > > Thanks, > > > > > > > > > Thanks,