Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7461215ybi; Mon, 22 Jul 2019 13:41:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlcWVck51ROaOxeb8JY1U6mmp4GXh5mMcKLmxTzWyTBH2LBKucPNEOi2RMGxevVZKmb5L6 X-Received: by 2002:a63:904:: with SMTP id 4mr2851235pgj.19.1563828083414; Mon, 22 Jul 2019 13:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563828083; cv=none; d=google.com; s=arc-20160816; b=GzWdcPPVEVYnsF4hpbOXZNZl0JxInMMRrv1PjBd1W24QXulreWxZgPK/lLMxkCadtq IxDHYIoJPDo7Tow6i4GNgJyhvLB6QMQkSD+7K9KWBRxuh2KktyEWGe46N5ha6DNxPVkj LU38MtP7h413eqbBGHdzfCrPLQxR8RCIr5EAjJg2qSaKKnY8HCc5c9vIE3fDQU0RUig7 cRTQLozrX4bkr6y52Ag7wE5BXLZC+LPFyG3J4YJMG/oE/8uoGKpKJZL5wnM84AcNFz3f UF6bJZRj0gGlqP7WXDROrUPoFMuYKtRZJf2CYAUy0FNoKUTh0VTfjgwKIrVvYwqNoxsr ITmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:dkim-signature; bh=4tmyXeIY4oqFIVBQrFKdjj4C+ZBVcIroyn01PfQ/hHM=; b=xuXkaVrHWRYo+oc1d0tPegEhrO7iKwL2w0qNLIj9Tn3zKxa2tErBpPpsMSYAYKFI+7 TDTNPK/vR27y4TKBv3Od6kETxk5dS3trkev1q50wXDQiYVAjR/s3FVFDiqXtHzFKgtp7 57bBj3rDyNGx5XxM6eqAZuaADyF4Kqe2ZQMfTJY31YPg7MRcilEiJu1/ok+iUPYU2Ow7 EgObAgOIFUJakliV17TO/0iaxl0CXt97oNk/NK6PxY6U1LMSLJOE+r1D/z3DprZIdztn btiKeMSnUCDvqwwI2TSa2z5e3Hmmbe/VSvPME8jP9WIIF/GdmFOY0qp/ttevBCtLfbho Fj3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=PDoIL05i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si10994929pjv.50.2019.07.22.13.41.06; Mon, 22 Jul 2019 13:41:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=PDoIL05i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730793AbfGVQ1h (ORCPT + 99 others); Mon, 22 Jul 2019 12:27:37 -0400 Received: from sonic313-20.consmr.mail.ir2.yahoo.com ([77.238.179.187]:40750 "EHLO sonic313-20.consmr.mail.ir2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730077AbfGVQ1h (ORCPT ); Mon, 22 Jul 2019 12:27:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1563812854; bh=4tmyXeIY4oqFIVBQrFKdjj4C+ZBVcIroyn01PfQ/hHM=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=PDoIL05iiWF7UEY97RncX2mn5BEWGfVbh0EBTCk+45qefwCsQ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F6AvrOJE48TVytuKrJId0nuO9rzH9DgTIWOYCrS_2zTfg4wx0JJES eWpnGNG7zMPhfp2nVTqchZ0EpsWiLlITLbmW482a3NNarNeXIlZlmniBMarD6ogDqVA9qhrbWeBF CGkMFZUucrpZbUY.gBPxxdJjiCnrmdAyIL5h5XV9TyWvZjt4QodE9g8iv0NBnS_Auej3beTB7L06 RA9M8eaKOrqGb96ad_um_DaY43jI08vs8MOrpIJrKms2MDOJGJBtOhWB8LZ4TFZ_oGz2DI6XcFID qF_4caa_d3B5OUL9LK4ovobNaOEH4js3T9nOIx92H4yJxzxYbiytPbr9T8dzgi_PBdD43zDA5GDL 95qStHVJx7L.Mhqt31dJX.hnzthMVcuBOg3ekPH4ogu4uBh0Ux_F0xYTkTs6ESPA1vqkYyeIB0eg GGo3CZH2oGWdDwcfjbxNpINjZWASZbLgkk5ViHqc5k3821Ds0hZ8X77Q- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Mon, 22 Jul 2019 16:27:34 +0000 Received: by smtp420.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0f3571226556d2a71ae3b00089e7ff33; Mon, 22 Jul 2019 16:27:30 +0000 (UTC) Subject: Re: [PATCH v3 23/24] erofs: introduce cached decompression To: "Theodore Y. Ts'o" References: <20190722025043.166344-1-gaoxiang25@huawei.com> <20190722025043.166344-24-gaoxiang25@huawei.com> <20190722101818.GN20977@twin.jikos.cz> <41f1659a-0d16-4316-34fc-335b7d142d5c@aol.com> <20190722132513.GA5172@mit.edu> <20190722151226.GC5172@mit.edu> Cc: dsterba@suse.cz, Gao Xiang , Alexander Viro , Greg Kroah-Hartman , Andrew Morton , Stephen Rothwell , Linus Torvalds , linux-fsdevel@vger.kernel.org, devel@driverdev.osuosl.org, LKML , linux-erofs@lists.ozlabs.org, Chao Yu , Miao Xie , Li Guifu , Fang Wei From: Gao Xiang Message-ID: Date: Tue, 23 Jul 2019 00:27:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190722151226.GC5172@mit.edu> Content-Type: text/plain; charset=gbk Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/22 ????11:12, Theodore Y. Ts'o wrote: > On Mon, Jul 22, 2019 at 10:16:44PM +0800, Gao Xiang wrote: >> OK, I will give a try. One point I think is how to deal with the case >> if there is already cached information when remounting as well as you said. >> >> As the first step, maybe the mount option can be defined as >> allowing/forbiding caching from now on, which can be refined later. > > Yes; possible solutions include ignoring the issue (assuming that > cached data structures that "shouldn't" be in the cache given the new > cache strategy will fall out of the cache over time), forcibly > flushing the cache when the caching strategy has changed, and of > course, forbidding caching strategy change at remount time. Okay, thanks for your kindly suggestion :) will do, hopefully resend this week (I agree less bugs with less kernel configs.). Thanks, Gao Xiang > > Cheers, > > - Ted >