Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2344953yba; Mon, 6 May 2019 04:34:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFLMhHuHpAuJQnMEJu7BA3LpO3/cqQPxQOgh6PkPdL0/qv2Vjuvc35LSJMOunRMGrhhzOm X-Received: by 2002:a63:5c25:: with SMTP id q37mr32036435pgb.263.1557142461161; Mon, 06 May 2019 04:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557142461; cv=none; d=google.com; s=arc-20160816; b=g3l3Sc8HJnxZTLwn0DSR1w9w5S7Z96OfR2GwGAZXnlrbXdUAYIJU9NrYYQ/yf5DI1l Bf8lSRdVZ9xsAAMZIN3HcD5Mkbs23paCRCtbzDHmUoHmpq6FKBdlVtNvXSyBE1kDc8J/ ElMM6J+NZWW+PuOi0S/oZaT98aDn8mEk4V1UKNjB4+VO/jLW4QLfj1Ry1CBI7tVzLEi6 XJNcrrUlb97RFXovqU902be3chab/DnQySPsRqJNF7D2zivhUse0AGJQRT1FO7WNNGf8 t/3e5tn/gHmblfBa//EkUqxvXenlKFgQe9YL5Nh2hnUl5DFGZDR8QkV7M9jFrywykjHH EOOQ== 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=TbGUNVB1aU8ynRGYFI1fnjze6fMsrwXhbDjI4i39Fy4=; b=EFFKrBM8ieBwfAClgRPpaLcfxsWN9A6764FYBfe8pg5x9ztSv5YSboVEix/bHmsiiN cfPApwkwMyHeQwqUuA3rYXi5FW1sfssBOtqfFnVTdqKxRJs/HQPApVbFhPkl3pkrwW+m SW1RCxQMM2jgvAZUksgCj5hsQLMB4bCJEEbkIVI7GJ6++xmDxb94OdvJHmgcu9/UkUV1 tfxrPfyuhGEq74q8QzG/D1BCvi70+rsuO4r5SgWk+5jsk08XljfG0VXQK6NBnZm0TpL9 5OyF2XiWg+haDm9si1zbkXX7EDMhTN0HfldPkjxBd7VJ4Zo4WNMCp9cmR+lLHNMUc97R bitQ== 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 e14si14235251pgh.270.2019.05.06.04.33.57; Mon, 06 May 2019 04:34:21 -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 S1725856AbfEFLdx (ORCPT + 99 others); Mon, 6 May 2019 07:33:53 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60562 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfEFLdw (ORCPT ); Mon, 6 May 2019 07:33:52 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x46BWvUg037126 for ; Mon, 6 May 2019 07:33:51 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sajd1cb0v-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 May 2019 07:33:51 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 May 2019 12:33:49 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) 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) Mon, 6 May 2019 12:33:46 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x46BXjD750331788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 May 2019 11:33:45 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8F2B8AE057; Mon, 6 May 2019 11:33:45 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 08F4AAE055; Mon, 6 May 2019 11:33:44 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.70.42]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 6 May 2019 11:33:43 +0000 (GMT) From: Chandan Rajendra To: Eric Biggers Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 09/13] fscrypt: support decrypting multiple filesystem blocks per page Date: Mon, 06 May 2019 14:39:22 +0530 Organization: IBM In-Reply-To: <20190501224515.43059-10-ebiggers@kernel.org> References: <20190501224515.43059-1-ebiggers@kernel.org> <20190501224515.43059-10-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-TM-AS-GCONF: 00 x-cbid: 19050611-0012-0000-0000-00000318CA53 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19050611-0013-0000-0000-0000215142F6 Message-Id: <2349515.8nsl4jZa1H@dhcp-9-109-212-164> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-06_07:,, 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905060102 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thursday, May 2, 2019 4:15:11 AM IST Eric Biggers wrote: > From: Eric Biggers > > Rename fscrypt_decrypt_page() to fscrypt_decrypt_pagecache_blocks() and > redefine its behavior to decrypt all filesystem blocks in the given > region of the given page, rather than assuming that the region consists > of just one filesystem block. Also remove the 'inode' and 'lblk_num' > parameters, since they can be retrieved from the page as it's already > assumed to be a pagecache page. > > This is in preparation for allowing encryption on ext4 filesystems with > blocksize != PAGE_SIZE. > > This is based on work by Chandan Rajendra. Looks good to me, Reviewed-by: Chandan Rajendra -- chandan