Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2349031yba; Mon, 6 May 2019 04:39:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvhHEW1FuLNdeGrUEGSmVefvSEnxWY9/LVxhWNz01QYEGOq7HYpRmLBtuZkVDyt3Cn1JyA X-Received: by 2002:a63:5c5f:: with SMTP id n31mr31681443pgm.325.1557142753391; Mon, 06 May 2019 04:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557142753; cv=none; d=google.com; s=arc-20160816; b=JAZi36FQtJpC/MQIUqHWCRSduqzfgfRZFyDtZdwYxc3prCKcqq6ozcXnf0udRKR6CJ yxgNXlZpeaLpoEIR8cd/yI1L7EcBj0yw8jQLp98sYsBd9MNsnI5/rpTjZTDI2NDtUGeP FI7d/sNlfYAMlfC3OWuGkKkha6xBE5NruYEPaC9ap/GkW877aRaXwaoLwJDWivNylemD MukqBudBnT/0doNrGoWmcPcqHZPggCetYcrsw2lxGU7pw3tICi/uuV4B4vxLrSIOtrDK dvezkA44GFAAlT9pywB1X6AijZUdAOIRhE0uQLkYKPlOd/pvFv1brrGTpbiWaoJhHZrH 1f6w== 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=VFM3Gle3Vl0VdUE7eslPhUBRxh0R0rIoiKsJLg5Sw54=; b=1FD7dXPjPWiI3T3jW2K1Nri8o9f9Rm0V96eTL06mU+p8B/Iw0XrPDMdE1zKxdV6q7d kStE2XBs7yv1Pebf1PpdfKgFJb8zqKd70MIqtAvjaepdalouW76CGFz2u9ZDicai971D vhpsgIjnNPVFJetGNeMObU+hmfAfLklGDCFbA75CWONVaaQlXyc+WTRhfHyxC+KSUxmT D30Ilj3+1arMjAJM8QktlqwXbFsVd09KAdwZSX2zlHZXD51RbusdzAsKYLa6e4mSJFPT bWW1lVshRMaaVXfl8pFGpSEQoOQX3yicYXz/a3KeoMGcIezQTce+LCysdLxRqnEjmI9T 6l1A== 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 n8si13724290plk.108.2019.05.06.04.38.58; Mon, 06 May 2019 04:39:13 -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 S1725853AbfEFLim (ORCPT + 99 others); Mon, 6 May 2019 07:38:42 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54364 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfEFLil (ORCPT ); Mon, 6 May 2019 07:38:41 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x46BbFfc089183 for ; Mon, 6 May 2019 07:38:40 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2sagym00s3-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 06 May 2019 07:38:40 -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:37 +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:36 +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 x46BXZmQ46661742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 May 2019 11:33:35 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24205AE056; Mon, 6 May 2019 11:33:35 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A9C66AE045; Mon, 6 May 2019 11:33:33 +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:33 +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 05/13] fscrypt: introduce fscrypt_encrypt_block_inplace() Date: Mon, 06 May 2019 14:07:31 +0530 Organization: IBM In-Reply-To: <20190501224515.43059-6-ebiggers@kernel.org> References: <20190501224515.43059-1-ebiggers@kernel.org> <20190501224515.43059-6-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-0000036ACDAE X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19050611-0029-0000-0000-0000242A4220 Message-Id: <5212233.NpK8FDItVt@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=655 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905060103 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:07 AM IST Eric Biggers wrote: > From: Eric Biggers > > fscrypt_encrypt_page() behaves very differently depending on whether the > filesystem set FS_CFLG_OWN_PAGES in its fscrypt_operations. This makes > the function difficult to understand and document. It also makes it so > that all callers have to provide inode and lblk_num, when fscrypt could > determine these itself for pagecache pages. > > Therefore, move the FS_CFLG_OWN_PAGES behavior into a new function > fscrypt_encrypt_block_inplace(). Looks good to me, Reviewed-by: Chandan Rajendra -- chandan