Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp23408pxf; Tue, 23 Mar 2021 20:36:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKlBI9u4ZacamudDkv3uPH6imRtzbnsexdn8/vhb2AvqVvHbgXZDfCFpJEs4Icrjttct00 X-Received: by 2002:a05:6402:50ce:: with SMTP id h14mr1095051edb.279.1616556966126; Tue, 23 Mar 2021 20:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616556966; cv=none; d=google.com; s=arc-20160816; b=0EsNzb6Au5wLybdpHqUw2WRA90cIMCY7Zgi0QgZ45gRAf5YAs9VxDBVllWZbQUHyKs vqJqNPaG2plkcn1ES940IvxWu5znOuxcDSF8I9Agz2WrFtsRAf0hQHBNOqlzGeWzZRUV dQBlsbVENyfNi/SP/sI/GuMlT4Wu0UEI0CmOLlMQ3EFbYpPtTtSWtQ6GpLGZ1SB9pOw5 JwyTgFfUA7yfA65XwesWel1I2oA0+ZvtbJsTzcWN8H3R7ykL3V0WJ6R8y4jBHtYV7Jd1 rf4x2S5n/8EovxN53d92ytH3RGC9+LlRNaNNZNpyJ0Znf9cT81qSAabPMRHAW/PO2Ghb jSyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=YqS3na95Ho535in/dh2q3fs8bdKZ7R+TwkyLJxzgWbA=; b=K52BOJmaNV0gRBLKzzK0l8ToqlyKyyvhyM59kNQQtT6koZSWxQTTnhTnTnGFaurXKR pkIwRAJrcliEqtAVxWMBi1dMZ7m+elnbX9QAeV3G9hvU6YGg+CsfAuPm//aHm08skTvs xHxM/ynwvhvdZuedMmo40p1QReT8/mMYA7hQYZsoO9SguslzKMNeHq3E+GHAKeUP8oge Hdepz20MzJc2TeYIJg7mDo51dGppLhHDCUW02ZoDEVvlVn4vowP6F8sHegurdwH3k/G2 CKJdaFcpCWDKCERt8TF729pChGF18RY//thVmQcBrljgStVJBqwbr+/AMZm+w4KakyZH KvwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=pAeB6mwr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si710877ejf.626.2021.03.23.20.35.42; Tue, 23 Mar 2021 20:36:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=pAeB6mwr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232870AbhCWPeX (ORCPT + 99 others); Tue, 23 Mar 2021 11:34:23 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34962 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232853AbhCWPeB (ORCPT ); Tue, 23 Mar 2021 11:34:01 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12NFXcFP150155; Tue, 23 Mar 2021 11:33:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=YqS3na95Ho535in/dh2q3fs8bdKZ7R+TwkyLJxzgWbA=; b=pAeB6mwriUHnYO/APRkVbX4gPJ+/0hA5hMbejcsrUv7i0BxlDO3SaFzh2U37aVJ7mIDb SO2Y9C4DA4AvFiQ4ayiDepCsglS6bNPrl2wUWaG6Edouk5OV+wXBmVuUJ35YA38623U+ m7uxV8egq0HEj8BXL0Wc1eYpnT6j2oAducuCnisq04E9wkH6SZ92HBEdscLYE0Zshr/z zDpHinFveEAJ0paHO04H+oidt5wg9iXHxxSUpMeSRgBThkoYyiW97VQshHvAB8wGGjW9 TNZsRo0aYSN7/eO5csIuAWdnP790IPawqh/uG+Fmsgi+COGq9+BhwfQxASXnAR76rpTw Dg== Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com with ESMTP id 37fjp18rx1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Mar 2021 11:33:39 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 12NFNMUE014649; Tue, 23 Mar 2021 15:33:22 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma02fra.de.ibm.com with ESMTP id 37d9d8sthu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Mar 2021 15:33:22 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 12NFXKaZ19988922 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Mar 2021 15:33:20 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2EAB052051; Tue, 23 Mar 2021 15:33:20 +0000 (GMT) Received: from [9.199.34.65] (unknown [9.199.34.65]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9BB5C52057; Tue, 23 Mar 2021 15:33:15 +0000 (GMT) Subject: Re: [PATCH v3 01/10] fsdax: Factor helpers to simplify dax fault code To: Shiyang Ruan , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org Cc: darrick.wong@oracle.com, dan.j.williams@intel.com, willy@infradead.org, jack@suse.cz, viro@zeniv.linux.org.uk, linux-btrfs@vger.kernel.org, ocfs2-devel@oss.oracle.com, david@fromorbit.com, hch@lst.de, rgoldwyn@suse.de References: <20210319015237.993880-1-ruansy.fnst@fujitsu.com> <20210319015237.993880-2-ruansy.fnst@fujitsu.com> From: Ritesh Harjani Message-ID: Date: Tue, 23 Mar 2021 21:03:13 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210319015237.993880-2-ruansy.fnst@fujitsu.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-23_07:2021-03-22,2021-03-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 bulkscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103230114 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/19/21 7:22 AM, Shiyang Ruan wrote: > The dax page fault code is too long and a bit difficult to read. And it > is hard to understand when we trying to add new features. Some of the > PTE/PMD codes have similar logic. So, factor them as helper functions to > simplify the code. > > Signed-off-by: Shiyang Ruan > Reviewed-by: Christoph Hellwig > --- > fs/dax.c | 152 ++++++++++++++++++++++++++++++------------------------- > 1 file changed, 84 insertions(+), 68 deletions(-) > Refactoring & the changes looks good to me. Feel free to add. Reviewed-by: Ritesh Harjani