Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2403560pxb; Tue, 9 Mar 2021 01:24:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKeQMr8LOEzwDZjxyd8aqeSFTnTKmAg1uRUzX0/JEz+HHQqkX+znXTKoCigRzNTSxwP2c1 X-Received: by 2002:aa7:db53:: with SMTP id n19mr3069895edt.330.1615281851687; Tue, 09 Mar 2021 01:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615281851; cv=none; d=google.com; s=arc-20160816; b=VmOX/Wr9izUK1LUfve+zO46nUXTnURy0Ezi2YY22DMTZBms6AZkvS1v1F2sOev94m0 UrpVj7CftuE15DaebwSQtrpzP/XOvee3dTEZ1j4Lii/fbhginSeKTtSI8aWUgHYGtjoZ 68luDkKT2hPxItXSrEu5v+mSMP2XbEd2O720K2pvBm1TUgXN7hkg2s3bLlbkxX+g8Efe Xs/Y6UCAUD6+WRWc5n++SPDRetmMGkYW+r/O+b8p4i4csav+IuzfPwHZo+MMGsOoYAOr sIN1cpfzE0dXIpRBSkyiqK9Vq+IyDd9FZhzu4YUEbYv2GflB/oDinM+WYcqRbk083LlC MKAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=3Sdqj1CKiQxyk4whKqxWOPeGOC8weKmKa7JHlYP4P/U=; b=RsZC7+f8R5fHBJwiR0rma9nxdfrAqQ8uvrVrRa76hr3PCZBcBJsrvDbkeuJfU1FvpI ZKexSzx+qjI9iTBWfcSHA8sGKy+//IzwYtZrBoJfEzJ7SFIkFMr3OXTpfD0orL4YmFqb kBY3ED+S8WtyBe2EM6mkjYAdblSdp5rcOkYG6ZCIplw3AyknE4q/yLHKDs/0k4YmmOMV TImzES8KkZSLZwyb7bIkdr7DNrwNh81d+UEyiKOI52w84eGIx3C/2cr3BoWQ4U7UEJPm axZtkBuhK3FBKaN62umn8GUPgUwem6jyhtipXb4Bfpbk8wpOzhzaBHAtia43sYDvDQml mQ/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b17si9188863eds.443.2021.03.09.01.23.49; Tue, 09 Mar 2021 01:24:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229815AbhCIJWn (ORCPT + 99 others); Tue, 9 Mar 2021 04:22:43 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:13890 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhCIJW1 (ORCPT ); Tue, 9 Mar 2021 04:22:27 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DvqSp2rtgzkWPM; Tue, 9 Mar 2021 17:20:58 +0800 (CST) Received: from [10.136.110.154] (10.136.110.154) by smtp.huawei.com (10.3.19.201) with Microsoft SMTP Server (TLS) id 14.3.498.0; Tue, 9 Mar 2021 17:22:19 +0800 Subject: Re: [f2fs-dev] [PATCH v2] f2fs: add sysfs nodes to get accumulated compression info To: Daeho Jeong , , , CC: Daeho Jeong References: <20210305022402.2721974-1-daeho43@gmail.com> From: Chao Yu Message-ID: <2f2abc41-24d5-6795-44fe-b770ed8514df@huawei.com> Date: Tue, 9 Mar 2021 17:22:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20210305022402.2721974-1-daeho43@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.110.154] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/5 10:24, Daeho Jeong wrote: > From: Daeho Jeong > > Added acc_compr_inodes to show accumulated compressed inode count and > acc_compr_blocks to show accumulated secured block count with I noticed that these stat numbers are recorded in extra reserved area in hot node curseg journal, the journal will be persisted only for umount or fastboot checkpoint, so the numbers are not so accurate... does this satisfy your requirement? > compression in sysfs. These can be re-initialized to "0" by writing "0" > value in one of both. Why do we allow reset the stat numbers? Why not covering all code with macro CONFIG_F2FS_FS_COMPRESSION, since these numbers are only be updated when we enable compression. Thanks,