Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3580894ybl; Mon, 19 Aug 2019 22:13:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJgzQXkFa6W2cmvwb64p6dBC/pOC9X/iTgTAE0eGZ+39kwOslnqUegb5K0dkRewK0cMoe5 X-Received: by 2002:a17:90a:17e2:: with SMTP id q89mr24690978pja.8.1566278019245; Mon, 19 Aug 2019 22:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566278019; cv=none; d=google.com; s=arc-20160816; b=ouv63lCHE3UZlnF79SjNBQhNrWGppbJ+EXC8oE2Q1htx8gnZSbQGgy14AJDYS8KTwi /10d/6POuzE8yWx10nyzyHDwj08g//DWRdCtBfZajg30guiypZTZhKfkuf6mW2/y7dOy 0zntW0j4uiYOxyuG7gqnqcXwT8lid1DMlKVRYoE1MdU4aCUmDijHo9j5rS3I8iWoPSwQ jWeJlmIY8/PKTUZRqEMR/ioUhee7PD6bzWh4gPMdSgwuAYqmpyD+CO8V3eFdhSjLsbr4 kaJdm017O1hSXenvSA5GQ2LUsIl1K6r8HlT1uJQzzEbOavORSj2W2k6LCChfatBod1ko xW/A== 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; bh=UXlC6+DG13IOlVWaSThwgREZIBM71FMQSPutHMCpLxE=; b=U8PcR6N85lFnvvndbdk7lkikCAR9w08ft3KVfx8mGlvLqYXP3Tv1JYww376/NlWm93 f68Kw5OShCujwsuJjxgp419PY/hvfDBryWGL2szJaidGMJeWVV7HKFSMRVaBYo0uQtyM KvGeA7V1azOhCU62CxhmXFVB3D5+hS9wgc4qHw98fgd2yR/RNN5O6a7fbDTJAF8UxGJy 4RvKn2MVX8CSXrZjNi8lrWj7AF+/8XA3qF7zpiZQwUhpOhyOTZIQB2SiNItSoYnDv37y PK/61ovrV0n8EOMfJ3mJ+sNvMN7OwSA3VxJ6gLXU6V3WbcHWexY47xUJGI4B7+6f6Gxi kOXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j97si11499086plb.5.2019.08.19.22.13.21; Mon, 19 Aug 2019 22:13:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729024AbfHTFNT (ORCPT + 99 others); Tue, 20 Aug 2019 01:13:19 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3095 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728960AbfHTFNT (ORCPT ); Tue, 20 Aug 2019 01:13:19 -0400 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id 30C0D55AD62F7D7E5F5A; Tue, 20 Aug 2019 13:13:16 +0800 (CST) Received: from dggeme762-chm.china.huawei.com (10.3.19.108) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 20 Aug 2019 13:13:15 +0800 Received: from architecture4 (10.140.130.215) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 20 Aug 2019 13:13:15 +0800 Date: Tue, 20 Aug 2019 13:12:36 +0800 From: Gao Xiang To: Chandan Rajendra CC: , , , , , , , , , , Subject: Re: [PATCH V4 5/8] f2fs: Use read_callbacks for decrypting file data Message-ID: <20190820051236.GE159846@architecture4> References: <20190816061804.14840-1-chandan@linux.ibm.com> <20190816061804.14840-6-chandan@linux.ibm.com> <1652707.8YmLLlegLt@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1652707.8YmLLlegLt@localhost.localdomain> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme715-chm.china.huawei.com (10.1.199.111) To dggeme762-chm.china.huawei.com (10.3.19.108) X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Chandan, On Tue, Aug 20, 2019 at 10:35:29AM +0530, Chandan Rajendra wrote: > On Friday, August 16, 2019 11:48 AM Chandan Rajendra wrote: > > F2FS has a copy of "post read processing" code using which encrypted > > file data is decrypted. This commit replaces it to make use of the > > generic read_callbacks facility. > > > > Signed-off-by: Chandan Rajendra > > Hi Eric and Ted, > > Looks like F2FS requires a lot more flexiblity than what can be offered by > read callbacks i.e. > > 1. F2FS wants to make use of its own workqueue for decryption, verity and > decompression. > 2. F2FS' decompression code is not an FS independent entity like fscrypt and > fsverity. Hence they would need Filesystem specific callback functions to > be invoked from "read callbacks". > > Hence I would suggest that we should drop F2FS changes made in this > patchset. Please let me know your thoughts on this. 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... Thanks, Gao Xiang > > -- > chandan > > >