Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0A20C17447 for ; Wed, 13 Nov 2019 15:13:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FE33222D3 for ; Wed, 13 Nov 2019 15:13:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="eTmzu/Wd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbfKMPNI (ORCPT ); Wed, 13 Nov 2019 10:13:08 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:52684 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727550AbfKMPNI (ORCPT ); Wed, 13 Nov 2019 10:13:08 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xADF918C104149; Wed, 13 Nov 2019 15:12:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=GW5YeGp/HNwoGC5rK+LrH0ZSV7lgEXI61G3NOmB5OfA=; b=eTmzu/Wdv8575rlgdWpuxFDzkV01OaHfqCYePUWftXbp9bHUxUWfU4Oj2dOH/FoqejwL xcbtx0jTTApw4OdGL+5qy4r09xFl3Cp72V4wGxVgDo2nwmgNmoV0xBTZ3NMUY9ym8Y0p k+Fj5eeEgYA1mFdVs+jp34u/MprPPvhj7z3GGHq5hKhA5zVJtnQwphtzd+FsreHCt8sS 7A9bdws1ODvwNjHwVNdeXMS0EgEUmnyXbD8Fi83vgza/+2u9EBx3oT07ws0KUru+rfur phDtVh6kKDJOubUgIubfJUSNrvHZ/HXJ88CchfBLgncZf3mHJ+sUce9fLHcv+ayeU8Ce Gg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2w5p3qvxxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Nov 2019 15:12:53 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xADF8YOB138193; Wed, 13 Nov 2019 15:12:53 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2w7vppe5x2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Nov 2019 15:12:53 +0000 Received: from abhmp0022.oracle.com (abhmp0022.oracle.com [141.146.116.28]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id xADFCp4F003590; Wed, 13 Nov 2019 15:12:51 GMT Received: from [192.168.1.9] (/67.1.205.161) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 13 Nov 2019 07:12:51 -0800 Subject: Re: [PATCH v4 02/17] xfs: Replace attribute parameters with struct xfs_name From: Allison Collins To: Christoph Hellwig Cc: linux-xfs@vger.kernel.org, Dave Chinner References: <20191107012801.22863-1-allison.henderson@oracle.com> <20191107012801.22863-3-allison.henderson@oracle.com> <20191111174924.GB28708@infradead.org> Message-ID: Date: Wed, 13 Nov 2019 08:12:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9439 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911130141 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9439 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1910280000 definitions=main-1911130141 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On 11/11/19 1:07 PM, Allison Collins wrote: > > > On 11/11/19 10:49 AM, Christoph Hellwig wrote: >> On Wed, Nov 06, 2019 at 06:27:46PM -0700, Allison Collins wrote: >>> This patch replaces the attribute name and length parameters with a >>> single struct xfs_name parameter.  This helps to clean up the numbers of >>> parameters being passed around and pre-simplifies the code some. >> >> Does it?  As-is the patch doesn't look too bad, although it adds more >> lines than it removes.  But together with the next patch that embedds >> an xfs_name into the xfs_da_args structure and the now added memcpys >> it doesn't really look very helpful to me. >> > It has evolved a bit since its initial proposition.  Maybe it would help > to raise the question of: is patch 2 or 3 alone more helpful than the > combination of them?  I think initially Dave had suggested the clean up > in one of the earlier reviews a while ago, so he may have an opinion here. > > Personally I'm not super opinionated about it if people have strong > feelings toward keeping or pitching it.  I will say after having worked > with it as it is, I'm not sure I'm particularly fond of having a name > struct in the param, and another in the args.  I think eventually > someones going to forget that args supersedes the param after the init > routine.  People will probably figure it out pretty quick if they get > bit I suppose, but I do think it's a sort of wart to consider. > > Allison What if I added an xfs_name_init to reduce LOC. and then dropped patch 3? What would people think of that? Allison