Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2344987yba; Mon, 6 May 2019 04:34:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1hVris88z08nZhjsYP8uZAw3fxRgsFOnifB3UuAD8qNxShs7yfSUkDCXUDdGQswkLZd+O X-Received: by 2002:a65:534b:: with SMTP id w11mr31286346pgr.210.1557142463767; Mon, 06 May 2019 04:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557142463; cv=none; d=google.com; s=arc-20160816; b=my6pVo7WvqPnRGp0l+TD10wfQEGHmLMnwGPXqRWLsX8s50+J9tnzMt7Itovc2oyfbF jAo/rLiXue7+EDQlkwREc09Mji7gi/OkEjvY1EinXylORY3OxxZMO8+uMuuKoVHWiWGO 7hVntasBF7Dgf4J+4f8+LZ3zOfIFlTketwRrvR9lEmXEHbI51nn0kbZ5U+Fsg4f4ZBDE HdOSTFpFKTf8gumD0ABV8hgzauuKQp+0JvwiOwwiK7bTaVM4i1Tajg9b0Kg8RplvnQ+r Bu2H48stev/aAW2lBsin9eWB9HmToE5qwKIwnlwToM4vcYa9kuM1fb8510VHGh/8FJB3 X39g== 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=ju0zib9sF6Rbj5XFT6h+9pHOlJPZKvaCGe4DtQFq76E=; b=J3XtFMcecRtUlR1hgJPTLJiqukwcqCC+jJAo0f3dplo/jZUYo3rGBD2UgeOyY3e1Cf /xG9QIf2azwE06BNU2y6pDvs1V8oN5kxZ6KoY2MXipOpevSc3OLVTZ/LJfwl0SLNA9oI lkqjj+nnfMd/PiI8GLRd6J4KiulWNygRfUXAMPkY9ewSO627M1EkvEVCgtcY4M8GZ3xz x+CUB/oYOaPhcJp43Sc7OC6B3LrEwwYEXvLY24+Th+YDzMdqp5MVWVleXDzY6QslCG0a Jo7rjBZVWKOMnvW3i/WvskmigiZ/wHlSwXarC5pL0GV8+cw6DRc60HKmynPtRT6TLJhc KsMg== 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 i33si15098298pld.374.2019.05.06.04.34.09; Mon, 06 May 2019 04:34: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; 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 S1726250AbfEFLeE (ORCPT + 99 others); Mon, 6 May 2019 07:34:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51182 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfEFLeE (ORCPT ); Mon, 6 May 2019 07:34:04 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x46BXt2a129155 for ; Mon, 6 May 2019 07:34:03 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sajd249fe-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 May 2019 07:33:58 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 May 2019 12:33:40 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) 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:38 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x46BXbHx29163602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 May 2019 11:33:37 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C1F7AAE055; Mon, 6 May 2019 11:33:37 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 55B6CAE051; Mon, 6 May 2019 11:33:36 +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:36 +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 06/13] fscrypt: support encrypting multiple filesystem blocks per page Date: Mon, 06 May 2019 14:08:21 +0530 Organization: IBM In-Reply-To: <20190501224515.43059-7-ebiggers@kernel.org> References: <20190501224515.43059-1-ebiggers@kernel.org> <20190501224515.43059-7-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-4275-0000-0000-00000331DF55 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19050611-4276-0000-0000-000038414616 Message-Id: <2173142.gu81EOElhA@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:08 AM IST Eric Biggers wrote: > From: Eric Biggers > > Rename fscrypt_encrypt_page() to fscrypt_encrypt_pagecache_blocks() and > redefine its behavior to encrypt all filesystem blocks from 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