Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7274121ybi; Mon, 22 Jul 2019 10:06:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+vVVbt0SE2ljHXgSlVd2sHLdtTxmvoRd2SXh4z5L6tsVFWTbgp1g+XNCVJ0MUMuoGaPY2 X-Received: by 2002:a17:902:4aa3:: with SMTP id x32mr73150607pld.119.1563815162524; Mon, 22 Jul 2019 10:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563815162; cv=none; d=google.com; s=arc-20160816; b=nMHI+d8w2ztkTb5KcjecGTppHjkxSiheWttfgKF+4cugCumx0CUorCUvlxJKldakjW EzKGT84DEv4+hkZW6n1G6XXYP+x/7hb+49up5ey96Ok1sGHbPmarcEDQ0qOY/5fQUqrf +nq3iD1H6+ZpvGmqIB9AVl8hucznqaGjRDYPvYV7FeOkd2Tj0kVgbDsV69Ncv3TasW2d kT0WxAnYj4KQi/zMf/wr1B6kJCFAKjY14eVV7N01x+SorqyycOY/LDIkIWjOgrVE73T0 nFyeTssrddmP3bGMLHVjz7dKVCZe5vKkDaQc4vvFSb+w6BP3KTmfZhYMlfyZAwpV5caP yjcA== 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:cc:from:references:to:subject:dkim-signature; bh=xECj9m2xLSVUpudrwyR6+luhiAWEZ0tY/RvhMhV/bZQ=; b=wREHNyvzaMOL2DplBx1rUe6/8lSlF4JlsSX+MPhJ+FTXL7zb4fcONwwet+py59Z/PI aNbFr1CpZSfy1R8lrG/O/bIFfXlZRuWtgp/ithLLF5yY4nE6eMmUNxrkDnp+DThsSxKF VIEeNt6g3VYbbsE+8uKQh3pFjpb0tCQ3pQFTkDMMcd8q/t1NDDcw+2pgm0G686CR6Cum Ym3zWAh2UJP1Pxh+H3qxrzuF5Kf+xs/AhLtarYxQL87eOWZ7c/ZHIyql/zLCoOM8DOW+ MoWW+LilxqJPk0RziezLLaEW0sr/Y2+D2wPIi6rEPHyGmKSJz3SYS26ti9THYRTg0p5/ iFWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=qYB90E9n; 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 o4si8884936pgv.157.2019.07.22.10.05.46; Mon, 22 Jul 2019 10:06:02 -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=qYB90E9n; 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 S1730818AbfGVORJ (ORCPT + 99 others); Mon, 22 Jul 2019 10:17:09 -0400 Received: from sonic317-20.consmr.mail.gq1.yahoo.com ([98.137.66.146]:42769 "EHLO sonic317-20.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730810AbfGVORI (ORCPT ); Mon, 22 Jul 2019 10:17:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1563805023; bh=xECj9m2xLSVUpudrwyR6+luhiAWEZ0tY/RvhMhV/bZQ=; h=Subject:To:References:From:Cc:Date:In-Reply-To:From:Subject; b=qYB90E9n9p2hxZA0lEfH/3+0P3CXOotPsRediTaJtnxRq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ro0rulZ3cyLrlQczLrV0cNkZ0mxaJggRaFnekjy.3Wo87wS .c.iEQfKP0Iy3QCR.ncEBd2t0meT1xzXtXPBSuCMzkntXiJhpB08vTX_vvdnZRd0PCDGU7lHiY0x D1oqCQA2kTK0XjqzjSs3QXiLWscRb6qoJUsNpRKzg70YDMsmpzUySjxHcKk4AxSE8Uzaxgsb6mV7 yD2xECQ56Ln6ogsx6pNFVewDSl3s.WnSrg.94IsYLIrKYwzUnELlNev9aaC_Ln6eaWFZfudS4Qsg swka882uKsWuYoaxWR1boPTytRoNqgmNKZ0UTHudEkDFBqvOOxamSY7ar5_FpTaW7Sp7AEzyhS0F pW6c_6jmAxUWcSiXK_t6sBXTwuAyBb7AI2DYphKjPe.j6jJUobyHkSPyAi.Vkve0W1fMbwwRkGof PUhAMEvlKm0rhLQsm_SnAx4sgaAMGCWQ.psCllwsv4F8tC2Bc3YOlLiNWdu.ncQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Mon, 22 Jul 2019 14:17:03 +0000 Received: by smtp411.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 947e087edc5dc48dc717612cdbe533da; Mon, 22 Jul 2019 14:16:59 +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> From: Gao Xiang 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 Message-ID: Date: Mon, 22 Jul 2019 22:16:44 +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: <20190722132513.GA5172@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 Hi Ted, On 2019/7/22 ????9:25, Theodore Y. Ts'o wrote, > On Mon, Jul 22, 2019 at 06:58:59PM +0800, Gao Xiang wrote: >>> The number of individual Kconfig options is quite high, are you sure you >>> need them to be split like that? >> >> You mean the above? these are 3 cache strategies, which impact the >> runtime memory consumption and performance. I tend to leave the above >> as it-is... > > Unless cache strategies involve a huge amount of kernel code, I'd > recommend always compiling all of the cache strategies, and then have > a way to change the cache strategy via a mount option (and possibly > remount, although that can get tricky if there is already cached > information). You could also specify a default in the erofs > superblock, you think that would be useful. 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. Thanks, Gao Xiang > > - Ted >