Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp113751iog; Sun, 12 Jun 2022 20:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6pgef02YQ50DFVPuE/ZCoXU9GNIBBOwzi1aTv7CXnnZL5AD/nSmvZIdeFFalD9FiBYjko X-Received: by 2002:a65:6b8a:0:b0:3fc:4c06:8a8d with SMTP id d10-20020a656b8a000000b003fc4c068a8dmr50872725pgw.83.1655092545458; Sun, 12 Jun 2022 20:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655092545; cv=none; d=google.com; s=arc-20160816; b=aXvxa3LoSU4cw4fMWuhsm3F7zIn22KjqBPv4UoafxPWrPw8c81zYQzR/uMJ5qL5d8G 6cZGPrIZJCtX4POBbKsvkqRDZYJo7KaxHnVV5wn5HzrsJ00efuylgoIQySFxpDvW6PUm 4BqGbVaZ8CYlXLF3dzongHXi0tY83oidE06Hfe2Lv/rwieNNF1/lAyA+/bTlVwndHMo3 3BVI8x4wrncQ2PNL+C7B89zfTJyXVzPQx2uGB5nQ9ka7Rw2JGyGMH5u3k2IQuOiiCgEW luSYInwfQNV4LA9Ty+542TMQ2eHi1iDuznCCCuE4noWXMgw3s8jtsbWInTYplMPjIaL9 2CmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Bm4ARRt1HNB10/2s2wOYEo//lZze1cTnCnGg9flh8L4=; b=wOSjb7k5xr84wpgVQ2iarrox4vY99f62St59KiHePU5YHAzYV/tW25OiXSuB8qQIrY M+s3SFbVF/tATNgEIg6cRncYE5UsTmEs3Xz5Ym+wewBmqwINTvy9YSHsXZrKceNjmTbR P8uNjr9J/2SJQBPN+WCltrhexMHYJa1QHgsI3yXmok3KpXWLTqqAqR7K029Jn0D6Te0A NVCI0mBw2QvEKmA1iYVMJ73QcH+34TzV1qAhcV76kAnDBQrcQRBK75Eb4U4jHzZHoVEe k2TqY+gl0RJotiGQi7KhkDprUEhpdgfT4xzONvx9Zku/Fr3Gk6pUWfpLnc5B67A8NXZv UmAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=twFTjyvm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a17090a08c600b001dceae99b8bsi12570201pjn.102.2022.06.12.20.55.33; Sun, 12 Jun 2022 20:55:45 -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=@infradead.org header.s=casper.20170209 header.b=twFTjyvm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232892AbiFMDhR (ORCPT + 99 others); Sun, 12 Jun 2022 23:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbiFMDhP (ORCPT ); Sun, 12 Jun 2022 23:37:15 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E7651EEE5; Sun, 12 Jun 2022 20:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Bm4ARRt1HNB10/2s2wOYEo//lZze1cTnCnGg9flh8L4=; b=twFTjyvmQkRTeLKn7bTrmtOcux WIkklfU8g2svsuj6mS0XaT2EHZt+VSHSi2g5WFl+fjjcZifI5loA62Kc9bEaCvnlATGNSvClM/ekR hn8YYeAYl+HN8ZTYM3U9IFazKu4WBvl5kglt2H5a1WwChJ74r/nz/DafUuttwJKEY+jHfoCsalEep Q9Mfk1IPsyNPJaeRkcLsd4F7mnsEjTTOnTvm85cIJOYOkPKrlivLyo6tW0bVzP6J+gsVjSdXLYvjc HdaeQuoFtwOmG7IhlqLZxMQruQf8B/P7mfoARgBlsNlljFSrjk/dwAIPexy7PqKy0fOrecoGjgjBF L9H+xsHQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0asv-00GU6J-Iv; Mon, 13 Jun 2022 03:37:01 +0000 Date: Mon, 13 Jun 2022 04:37:01 +0100 From: Matthew Wilcox To: Chao Liu Cc: Jaegeuk Kim , Chao Yu , Jonathan Corbet , linux-f2fs-devel@lists.sourceforge.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Yue Hu , Wayne Zhang , Chao Liu Subject: Re: [PATCH v2] docs: filesystems: f2fs: fix description about compress ioctl Message-ID: References: <20220613020800.3379482-1-chaoliu719@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220613020800.3379482-1-chaoliu719@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Mon, Jun 13, 2022 at 10:08:00AM +0800, Chao Liu wrote: > v2: > - s/file size/filesize/ Why would you change it to be wrong? > Documentation/filesystems/f2fs.rst | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/Documentation/filesystems/f2fs.rst b/Documentation/filesystems/f2fs.rst > index ad8dc8c040a2..531b0f8a3946 100644 > --- a/Documentation/filesystems/f2fs.rst > +++ b/Documentation/filesystems/f2fs.rst > @@ -818,10 +818,11 @@ Compression implementation > Instead, the main goal is to reduce data writes to flash disk as much as > possible, resulting in extending disk life time as well as relaxing IO > congestion. Alternatively, we've added ioctl(F2FS_IOC_RELEASE_COMPRESS_BLOCKS) > - interface to reclaim compressed space and show it to user after putting the > - immutable bit. Immutable bit, after release, it doesn't allow writing/mmaping > - on the file, until reserving compressed space via > - ioctl(F2FS_IOC_RESERVE_COMPRESS_BLOCKS) or truncating filesize to zero. > + interface to reclaim compressed space and show it to user after setting a > + special flag to the inode. Once the compressed space is released, the flag > + will block writing data to the file until either the compressed space is > + reserved via ioctl(F2FS_IOC_RESERVE_COMPRESS_BLOCKS) or the filesize is > + truncated to zero. > > Compress metadata layout:: > > @@ -830,12 +831,12 @@ Compress metadata layout:: > | cluster 1 | cluster 2 | ......... | cluster N | > +-----------------------------------------------+ > . . . . > - . . . . > + . . . . > . Compressed Cluster . . Normal Cluster . > +----------+---------+---------+---------+ +---------+---------+---------+---------+ > |compr flag| block 1 | block 2 | block 3 | | block 1 | block 2 | block 3 | block 4 | > +----------+---------+---------+---------+ +---------+---------+---------+---------+ > - . . > + . . > . . > . . > +-------------+-------------+----------+----------------------------+ > -- > 2.36.1 >