Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2345011yba; Mon, 6 May 2019 04:34:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhqm3skwJmVKbM3bCXo4+WZ+iQ2zn0N6yaHhJqFY+QtZW8FpYJkvqKKINIf1M+uuaGdX17 X-Received: by 2002:a17:902:2a2b:: with SMTP id i40mr31315416plb.170.1557142465701; Mon, 06 May 2019 04:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557142465; cv=none; d=google.com; s=arc-20160816; b=bZdDf3K73207gv0CdPCgnCK8M8Yhqtj7iTVeWnz9HRxNSD+xJmR3AtH76IGirrIQrb vuajdAplGj0dzBDuj+DWcSVK1sVddgVt6MpyAUXRir8FeEvfTMlMjk/IgGLh6nLVLbYG TjbPR4fPnrqkDNsiA5/EmC63oe73vyMSrnnV8PGonFprskDphZSSD3VoGvpmYG/1dvdx V7WENtjaOpCUiu/8jVsFrt8PFZwZz8ObF1NxvZuiHeUR5JufxGHnAo/njVf7na8zmT+5 tiIKHQZ9fcyt0T7/gPrWsHiaStnaOO93EMp68sUxO0+dCuKF2G9Ptq14Mug4rB5Ypp9i C08w== 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=+KOPDlwtlG+bmRb6graAzISb/vjPBEXwEllWRyAuaTQ=; b=YPCDwpcw2YYy7pSE02cTL/4VkhxgaEJxsXyrAl8zCvTWWcpKQfViXYjpdD/gR8j5mx uxNdKjLnZof4fgl/7AuIVkKAT16dP5d5ETQ2aAiRU6WFl9wW25tQLTaNJP8KHgTp/gRW J5cGiKne0FrIi+pJmrMsrAdg56F94A6MxEmfd0cyFEM+e9Lo49Em161gD6z7oApyaY/m 4KR55khB3b76JZs70C7DMG6l1h7Y8Pl9TKO9iieWXXNiaxDkoaPXSHnJyH5K5Prp3rd4 4tcSlkoMDfd24MvnKSy5NmaVVMXbK3CBG5HLtov18bMLX2F1IpsIMAH4dwI8L4l5zJxl Dzmg== 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 h13si3575359plr.162.2019.05.06.04.34.11; Mon, 06 May 2019 04:34:25 -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 S1725883AbfEFLeF (ORCPT + 99 others); Mon, 6 May 2019 07:34:05 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51420 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfEFLeE (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 x46BXujt129276 for ; Mon, 6 May 2019 07:34:03 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sajd249gg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 May 2019 07:34:00 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 May 2019 12:33:44 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) 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:41 +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 x46BXeYe35651652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 May 2019 11:33:40 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3FBC0AE05D; Mon, 6 May 2019 11:33:40 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DE722AE058; Mon, 6 May 2019 11:33:38 +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:38 +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 07/13] fscrypt: handle blocksize < PAGE_SIZE in fscrypt_zeroout_range() Date: Mon, 06 May 2019 14:12:57 +0530 Organization: IBM In-Reply-To: <20190501224515.43059-8-ebiggers@kernel.org> References: <20190501224515.43059-1-ebiggers@kernel.org> <20190501224515.43059-8-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-0028-0000-0000-0000036ACDB3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19050611-0029-0000-0000-0000242A4225 Message-Id: <6183530.UoL3poR4K9@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=814 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:09 AM IST Eric Biggers wrote: > From: Eric Biggers > > Adjust fscrypt_zeroout_range() to encrypt a block at a time rather than > a page at a time, so that it works when blocksize < PAGE_SIZE. > > This isn't optimized for performance, but then again this function > already wasn't optimized for performance. As a future optimization, we > could submit much larger bios here. > > 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