Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3573345ybl; Mon, 19 Aug 2019 22:04:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ6pgCD68UAO7QeLfmmCezMgOx62zkI1XCtv8emarvT7hf+KTbVI7VUi/JQPNoXyahuj4W X-Received: by 2002:a63:2264:: with SMTP id t36mr22089580pgm.87.1566277465009; Mon, 19 Aug 2019 22:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566277464; cv=none; d=google.com; s=arc-20160816; b=d6xrySIMeNq5W+73a44b0dnWo3VVZU9ZgyDClRr0LJrAhAxBhA6idfhbxV+kANuTK3 SsJ29YEN4Nh6aEo1GrxpDjCbEwNp+Cbl5FaqnU8z2GU5UyLBM8tHQnqE3PBfUYul7i4w xZtMwDXxDESd2mKFXXpuFBqfJFhZus9QNyF8fb9/A4m9xJmW9tRvnBhTD4aJ7AJC1aPy 2+iyCsV4UF67gdeSJ0p4nSJinbImd0ITfA6YmR/gFMrlWpDq2q63JOC15MgnmTOsbwtA tF6tn096SpgtSl0IMln0bKiB17LvyjF8lz9ZDsYeEosG5x+ItYQ/H8gACSPoXGJTbxRf gpRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:organization:date:subject:cc:to :from; bh=L3zhRs+p+so5AA0MBRHfJqElib8LYeeS1qWPatUvea0=; b=vef8crAb0I5fKIHDxiBOKNXKMkTiNKqtXMi5FpHqAaKwlOzSt7Q8h4NcUQKFSvdhoA g1/NkavaYGWMyikaQZl2xKIG0gBN50zkSDYoBStEbe8gS+4pRKPwBSAF3Gf+BJ9zI+Fz vIdB+zQ91+K2R7bIDYghnhgCoTXtBWcDHp63XSZoTtXLUBavkmFJ4sxsGYw0+eN9QPFC uuJ43rkaQllMB3LIHeAhH1zGsWNL/nix4z5pzcd/lgjH7ch5h576M4rqJo+85rl7DKhs lRw8B5grQcdqIiFi5DQACVStluKrUDNCFqsgYiuFQW6HVH4KlGjMjjSpPGp7co9KR/ry g3vw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si10199258pjq.21.2019.08.19.22.04.01; Mon, 19 Aug 2019 22:04:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728878AbfHTFEA (ORCPT + 99 others); Tue, 20 Aug 2019 01:04:00 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:14128 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727006AbfHTFEA (ORCPT ); Tue, 20 Aug 2019 01:04:00 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7K52KhS087566 for ; Tue, 20 Aug 2019 01:03:59 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ug8gb3m96-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 20 Aug 2019 01:03:58 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Aug 2019 06:03:56 +0100 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 20 Aug 2019 06:03:51 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x7K53U6o39322076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2019 05:03:30 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CE4E4A4040; Tue, 20 Aug 2019 05:03:50 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6610FA4055; Tue, 20 Aug 2019 05:03:48 +0000 (GMT) Received: from localhost.localdomain (unknown [9.199.62.92]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 20 Aug 2019 05:03:48 +0000 (GMT) From: Chandan Rajendra To: tytso@mit.edu, ebiggers@kernel.org Cc: 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 Date: Tue, 20 Aug 2019 10:35:29 +0530 Organization: IBM In-Reply-To: <20190816061804.14840-6-chandan@linux.ibm.com> References: <20190816061804.14840-1-chandan@linux.ibm.com> <20190816061804.14840-6-chandan@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-TM-AS-GCONF: 00 x-cbid: 19082005-0012-0000-0000-000003409143 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19082005-0013-0000-0000-0000217AB39E Message-Id: <1652707.8YmLLlegLt@localhost.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-20_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=927 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908200052 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. -- chandan