Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4322256ybl; Tue, 20 Aug 2019 10:08:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDNEIo9JceAhNe55MtBxbWvoO47dlsTHpoTpFog+2vJTAVtSuVbDqPPpTaJshxZjsfW4q0 X-Received: by 2002:a62:8246:: with SMTP id w67mr31840109pfd.226.1566320903445; Tue, 20 Aug 2019 10:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566320903; cv=none; d=google.com; s=arc-20160816; b=HGNHDkADASe4v2PCzDkrkDPcbIhbImUcY6yM+yezLoHKwRzZYnrnCl1ClY5qFLokMF Wyskey4QVSvC/T5aqYPA280X8yeTtYSTcFvA5cxW7K37DWXGEzciuairi1B435i/MWDi UV6CnQqMBVPz55NCsoh2QThMqcr6UVuheajD5pO2PeOtYvzGV0DKOd37yHdwKKuUGany QNRqnAJ6y/weAQcpjYJq9ZA7rCNiKOMyYP3C/vhzttr7yW7mvrIpDkJ0h+A8g32YA5HB 9ovRzaUK9m/c1/Lkm9Jda7GuD1Y/khTTwKbFHvuF9EiSIl+jWLu9U+NQF03EbZCHuTiY qOlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uMe6Ni541x/tMuArILRS79nFePqtfX01dZSfF3dkEYU=; b=pkzVe5MRrSw3wJU0cbpBoZBvCUv+2OLcQD8lqqbWKwb6sQ4qOHlQGxCgdTXNqfA9+Z scP2xabbvjjU6KIn/5qF1zdcwm9496FOHpqDE2QWPNQYRaJs9V93ZgUzVQe2eg6IyQvF AyS2ua2R6upMxdAVKXVarbONc24C00kRSmaQ0H7ahH87OBreLGGgHN2HwA0tOKk85JfP OlfF7nKuayf2RzaAU2eXKULIYHWKhR2AjAtihj0irvvGJStrYph6+ledjt3hGNV1rBGj sDYKx4yPMvLBEeo4p6XrQVKUVyMfrNi4FrYBWrDqB37krzzSbRjAOkb1CH0mNXRM+yma kA/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=bD9GkUx5; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 o29si12420514pgm.380.2019.08.20.10.08.04; Tue, 20 Aug 2019 10:08:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=bD9GkUx5; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 S1729810AbfHTRHy (ORCPT + 99 others); Tue, 20 Aug 2019 13:07:54 -0400 Received: from sonic315-54.consmr.mail.gq1.yahoo.com ([98.137.65.30]:37487 "EHLO sonic315-54.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbfHTRHx (ORCPT ); Tue, 20 Aug 2019 13:07:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566320872; bh=uMe6Ni541x/tMuArILRS79nFePqtfX01dZSfF3dkEYU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=bD9GkUx5D1V4K/A+hD22iVhlchUOmHYjcVfa9nsuvVDxHnJGuJv/BEPmWYgObrCCvLHWLOnWeJTwLQbcob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0KugMTc33QKGuvJb JaF53yehXvKJlgRzKanZOwhAB_eCX0yDXlVOTsLxsD0q4CM1PWzAKWCO6Rh6SPsClLF8KKIF3eLt 0PRtwX6FggsM5eL4iAqnNqvIrm.eojNybSnao8WJvd7_BI0oAQxJ3u2xNY5Y8Cc1T9ZmAtRZDRQm oUeRocJWdRthyDzkynb10lpPnT_lSOWWfzndkfyed01Gb4r7YV9CUajWgTBm0gaLMjk5eJEQiBzl rqu9zn.YWrRETYxkIYQQWS9z.Ual_KwuTUwHUXOIJnH.Uc6VB2y5NoLzhBYM1fVqDWr3_7fSHzH1 HXROqzGjsMRlP9p0Gs2FVD3Z_qIiDYQs3_jqllGN1cpuuuTEYu3SjW4lxtRgwZcWB.a8ZY5gmQqA TOeIDAP5DSJNEXqbCCOSQq5LMvIK.7QQD.rIF4ylq1u_iVDm.O.CZF.pxyztQft8oWYItnv13Q69 rrCg92XTZ4eWNT4UO86Y2AvAgDaarEM.O Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Tue, 20 Aug 2019 17:07:52 +0000 Received: by smtp414.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 338a11c40dd48f03e306532b9b1c5f14; Tue, 20 Aug 2019 17:07:51 +0000 (UTC) Date: Wed, 21 Aug 2019 01:07:43 +0800 From: Gao Xiang To: "Theodore Y. Ts'o" Cc: Gao Xiang , Chandan Rajendra , ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fscrypt@vger.kernel.org, chandanrmail@gmail.com, adilger.kernel@dilger.ca, jaegeuk@kernel.org, yuchao0@huawei.com, hch@infradead.org Subject: Re: [PATCH V4 5/8] f2fs: Use read_callbacks for decrypting file data Message-ID: <20190820170738.GA8402@hsiangkao-HP-ZHAN-66-Pro-G1> References: <20190816061804.14840-1-chandan@linux.ibm.com> <20190816061804.14840-6-chandan@linux.ibm.com> <1652707.8YmLLlegLt@localhost.localdomain> <20190820051236.GE159846@architecture4> <20190820162510.GC10232@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820162510.GC10232@mit.edu> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Ted, On Tue, Aug 20, 2019 at 12:25:10PM -0400, Theodore Y. Ts'o wrote: > On Tue, Aug 20, 2019 at 01:12:36PM +0800, Gao Xiang wrote: > > Add a word, I have some little concern about post read procession order > > a bit as I mentioned before, because I'd like to move common EROFS > > decompression code out in the future as well for other fses to use > > after we think it's mature enough. > > > > It seems the current code mainly addresses eliminating duplicated code, > > therefore I have no idea about that... > > Actually, we should chat. I was actually thinking about "borrowing" > code from erofs to provide ext4-specific compression. I was really > impressed with the efficiency goals in the erofs design[1] when I > reviewed the Usenix ATC paper, and as the saying goes, the best > artists know how to steal from the best. :-) > > [1] https://www.usenix.org/conference/atc19/presentation/gao I also guessed it's you reviewed our work as well from some written words :) (even though it's analymous...) and I personally think there are some useful stuffs in our EROFS effort. > > My original specific thinking was to do code reuse by copy and paste, > simply because it was simpler, and I have limited time to work on it. > But if you are interested in making the erofs pipeline reusable by > other file systems, and have the time to do the necessary code > refactoring, I'd love to work with you on that. Yes, I have interest in making the erofs pipeline for generic fses. Now I'm still investigating sequential read on very high speed NVME (like SAMSUNG 970pro, one thread seq read >3GB/s), it seems it still has some optimization space. And then I will do that work for generic fses as well... (but the first thing I want to do is getting erofs out of staging, as Greg said [1]) Metadata should be designed for each fs like ext4, but maybe not flexible and compacted as EROFS, therefore it could be some extra metadata overhead than EROFS. [1] https://lore.kernel.org/lkml/20190618064523.GA6015@kroah.com/ > > It should be noted that the f2fs developers have been working on their > own compression scheme that was going to be f2fs-specific, unlike the > file system generic approach used with fsverity and fscrypt. > > My expectation is that we will need to modify the read pipeling code > to support compression. That's true whether we are looking at the > existing file system-specific code used by ext4 and f2fs or in some > combined work such as what Chandan has proposed. I think either form is fine with me. :) But it seems that is some minor which tree we will work on (Maybe Chandan's work will be merged then). The first thing I need to do is to tidy up the code, and making it more general, and then it will be very easy for fses to integrate :) Thanks, Gao Xiang > > Cheers, > > - Ted