Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp596244ybp; Wed, 9 Oct 2019 00:51:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRdfB0izEV0zhIWoScgwhD54D5ErDwTN40mCMM+/f+gq2BNgucKS2tpl4884v05GfHhNEw X-Received: by 2002:a05:6402:503:: with SMTP id m3mr1723123edv.157.1570607466534; Wed, 09 Oct 2019 00:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570607466; cv=none; d=google.com; s=arc-20160816; b=hOgFgEfAFU0aiIK1rsI2vrQ7KpDzVvGYtJoBJEqc9NVnI4yJroqhDSMpj7bpgIzXc6 MwCczIAEXq2lwwmRjt9+PkXLqiqEExFwl8X+lGsT0n1EaEWwFr+Ho/hR/T9XGeYLr65y ZNyYWzN6WtehIqwmKvgebZAtGTQ6wS4YFurJmVc4VeOC4esNf+b/oZaoeLRsVCj6T/Pd F9BMk5t8j8oXhnJHBsOV+5aryPPS7gavHmyETQwt9VMtZ+wW+LvNOm/z46R8kcPBCqKB PjXvzPcEzyNnIYXtEsAQpT1bZzsjDpL2LxTq8TeLeR/RGrrxsbaGSDm61vJDJJHslByQ GOvg== 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 :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=elMRYm/eAwji8rk8pudFO/PMzd9ccjpMYSUzW5QXrAo=; b=iqKvzWvS/2D/cpta4HE8oOnB4xlAupnM5qAcY8d2X/UbGCuqA5h6u6p32VkmAcDsch zY3D/i7+7yekySjOr/YwV0wEAf/C2pzqg2UzwGa0s3F9SJZcN6etZXmynlA3qvg6Vnmi b/vBEuuj6iOe3t8TzHvmbMniYyy8pKQvwBRw34H6mvRgebS3/zY+oWXjIEy0YG2Kmgz2 SsToi3NsMHYEQ5uR/5mFSpSNU5saj3UXrbcGjFJ8mbmn1XKA9lawH4u498INcznhWuBh AEwbWr345yMXnZcZ0ENmrFpI+BjK9AjlqiUmU1NvIODZ/dVNwOA2DW6QQrwyG21tIgwl U1uQ== 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 j5si706501ejb.212.2019.10.09.00.50.35; Wed, 09 Oct 2019 00:51:06 -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 S1725440AbfJIHu3 (ORCPT + 99 others); Wed, 9 Oct 2019 03:50:29 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36310 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfJIHu3 (ORCPT ); Wed, 9 Oct 2019 03:50:29 -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 x997lN29058006 for ; Wed, 9 Oct 2019 03:50:28 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vha7c2p7s-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 09 Oct 2019 03:50:28 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 9 Oct 2019 08:50:26 +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) Wed, 9 Oct 2019 08:50:21 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x997oKmV47513758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Oct 2019 07:50:20 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 775FF4204C; Wed, 9 Oct 2019 07:50:20 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8BA0A4203F; Wed, 9 Oct 2019 07:50:18 +0000 (GMT) Received: from [9.199.159.72] (unknown [9.199.159.72]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 9 Oct 2019 07:50:18 +0000 (GMT) Subject: Re: [PATCH v4 1/8] ext4: move out iomap field population into separate helper To: Christoph Hellwig Cc: Matthew Bobrowski , tytso@mit.edu, jack@suse.cz, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, david@fromorbit.com, darrick.wong@oracle.com References: <8b4499e47bea3841194850e1b3eeb924d87e69a5.1570100361.git.mbobrowski@mbobrowski.org> <20191009060255.8055742049@d06av24.portsmouth.uk.ibm.com> <20191009070745.GA32281@infradead.org> From: Ritesh Harjani Date: Wed, 9 Oct 2019 13:20:17 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20191009070745.GA32281@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19100907-4275-0000-0000-000003705E19 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19100907-4276-0000-0000-000038836149 Message-Id: <20191009075018.8BA0A4203F@d06av24.portsmouth.uk.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-09_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=732 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910090073 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 10/9/19 12:37 PM, Christoph Hellwig wrote: > On Wed, Oct 09, 2019 at 11:32:54AM +0530, Ritesh Harjani wrote: >> We can also get rid of "first_block" argument here. > > That would just duplicate filling it out in all callers, so why? > What I meant is "first_block" is same as map->m_lblk. (unless ext4_map_blocks can change map->m_lblk, which AFAICT, it should not). So why pass an extra argument when we are already passing 'map' structure. So we can fill iomap->offset using map->m_lblk in ext4_set_iomap() function. -ritesh