Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp871785pxf; Wed, 7 Apr 2021 13:48:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfPw9WRTdlIpLrxRSpy9rW50oKIc2o79gsyB0cVlqcQYIgb/VW13IIEppJ6tYN7/MFfiNM X-Received: by 2002:a50:eb8f:: with SMTP id y15mr6879652edr.115.1617828525325; Wed, 07 Apr 2021 13:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828525; cv=none; d=google.com; s=arc-20160816; b=biee4apTs/O1ruNgJFFv2R6VeMkt4wuUVqILyvsHmQRzzgXwTiBd50sqtQfjZteKep 9QrwXGuX3iZroGSRH0oELJphPGdUTimexMKZf5Nijl+gUH0BFI1yd3h+g6UbCfBqyvoZ jDeJXi54vSkO6GCw7+hZQGpGytHfKNePpoMgw1CBZStZWST4bfdwLzkrPrHgyFkdcsgj Zt8JQ7TdBSAGiDesvilCEJIoKg0TvYb6ktWvdCAAja/k0NUQgnvSQ1AkxxCFgJ6pLrYg Vxzi7F4iOQhu6nLF9H8lvhd23iHseiZH0pP7FmE7lRgVimyBVJV+ZsGIfcKe6t6+1wtD b7Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pux/rCemv1tksd2MoaaFh8MmP6s+ALrFCia/3cagrfw=; b=X0zjLEbGADBkfYzucgwk+CnkFWBnLQI4OOHY9qcg0QEokTphqxj56bNX9l3TcZIveI R8icZ+hVT2iiNX17rN3Qqcv2pQa6t4jQ64hMHVY6o2zpQPMwfK1EFNUTG/ABLkci0ymP 8R+ELcS+FY+QtO5dwr/Qn0/OYtzxgmoKuF6fYLAjo4N7i1N7sbxyd4q9wJFzMMMvmqJ3 zeC7C752DO0Yapnw4+bjo9PXDOAJ4B2j5f2a0z/RpW+aVGUmRnkvRzzBtLsRXps0m32D SOy+uaTMY7GgylGfoL1+GjxxR01JgSsvB47NKf7kKAZjFZcN2P1fJhWhhuNmPA83AyNP pSrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=NjFekmsz; 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 b6si23265902ejb.254.2021.04.07.13.48.21; Wed, 07 Apr 2021 13:48:45 -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=NjFekmsz; 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 S1350923AbhDGKWP (ORCPT + 99 others); Wed, 7 Apr 2021 06:22:15 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39644 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235325AbhDGKWN (ORCPT ); Wed, 7 Apr 2021 06:22:13 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 137A3Okf194112; Wed, 7 Apr 2021 06:21:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=pp1; bh=Pux/rCemv1tksd2MoaaFh8MmP6s+ALrFCia/3cagrfw=; b=NjFekmszqeQQRsSTLvvmmaV+/v3RsQtjZgNeyMiE8ahLD8D2K02oxoLE15YQJk4Xfp0t Lw2y49gOHtlYDFriqDHTEMiuiED27Y2T2zhHiRgean7eEHIurle6I5b8M0UsepGihF5c pm/GZ9nRoCbhnLrSn/QLKM6/Ea092it7aAdkw6dtdEB1yVgWt/h97t/ZLPOhwHkr4xX1 Stcxae0dBGzAdWGh86en6+Uz0+LEYtN7sFGJrn99g5k+7KdiW0AAeo9auWBL3VQ5UB7a 5XVUBsfTbR5Psa6SPSn51btlbnWGQOHXwYCBxlvegagm+IuEL7EwboH3mjRTQjqb0UM3 wg== Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 37rvm4cuc8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 06:21:53 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 137AJ7jX014759; Wed, 7 Apr 2021 10:21:51 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma04fra.de.ibm.com with ESMTP id 37rvc5garq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 10:21:51 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 137ALnv246072090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Apr 2021 10:21:49 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 025CA52051; Wed, 7 Apr 2021 10:21:49 +0000 (GMT) Received: from localhost (unknown [9.85.69.78]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id AA53F5205F; Wed, 7 Apr 2021 10:21:48 +0000 (GMT) Date: Wed, 7 Apr 2021 15:51:48 +0530 From: riteshh To: Shiyang Ruan Cc: linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nvdimm@lists.01.org, linux-fsdevel@vger.kernel.org, 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, david@fromorbit.com, hch@lst.de, rgoldwyn@suse.de Subject: Re: [PATCH 2/3] fsdax: Factor helper: dax_fault_actor() Message-ID: <20210407102148.p2osxqohsthlrmxq@riteshh-domain> References: <20210407063207.676753-1-ruansy.fnst@fujitsu.com> <20210407063207.676753-3-ruansy.fnst@fujitsu.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210407063207.676753-3-ruansy.fnst@fujitsu.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 18TctFb1Simu9WH1e4RyqGDqfMUL6TDg X-Proofpoint-ORIG-GUID: 18TctFb1Simu9WH1e4RyqGDqfMUL6TDg X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-04-07_07:2021-04-06,2021-04-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 spamscore=0 phishscore=0 adultscore=0 mlxscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104070070 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/04/07 02:32PM, Shiyang Ruan wrote: > The core logic in the two dax page fault functions is similar. So, move > the logic into a common helper function. Also, to facilitate the > addition of new features, such as CoW, switch-case is no longer used to > handle different iomap types. > > Signed-off-by: Shiyang Ruan > Reviewed-by: Christoph Hellwig > --- > fs/dax.c | 294 ++++++++++++++++++++++++++++--------------------------- > 1 file changed, 148 insertions(+), 146 deletions(-) Thanks for addressing comments. A msg in cover letter acknowledging that the review comments mentioned here[1] were addressed is helpful for everyone. Please feel free to add. Reviewed-by: Ritesh Harjani [1]: https://patchwork.kernel.org/project/linux-nvdimm/patch/20210319015237.993880-3-ruansy.fnst@fujitsu.com/ -ritesh