Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6630209rwb; Tue, 15 Nov 2022 01:07:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7b3w3MAKe9mHLO/fJFGWZIu8ZGpOhTbnfx1HY9trj1H6p9+3MtxxiuSy/LDitzIAqN4QKr X-Received: by 2002:a62:6484:0:b0:56b:b838:a4de with SMTP id y126-20020a626484000000b0056bb838a4demr17341505pfb.73.1668503240665; Tue, 15 Nov 2022 01:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668503240; cv=none; d=google.com; s=arc-20160816; b=wwzBLHBeShrKzPav6dH8B9ZPZXk04uSIiztvKpxJOkhDbDPBEUzeMxYfZUEoUdrnT3 tPg3cKpL4RUeW8j/ERVRG7q0JCHUSVVFYnkuz7tXA0j8Tujw+DFINkrRAdMpQsNh7hzF EdcdkBq/z6/9gTftSsBwvkN3IlaHrT3EPSRobxrI4XsWC/X6RD03lHQmoDPUvUBu3zHn ACLXEOmhSh3HnhlyIUO54kDQwHh3aZhCa9np29kEonBs29jE5g6ZMdZK64m/BKpK7RX+ PkXbIWn7qTVceQIWMy2W11pjMXve1JhlekmeWfvu2M9Eo3DIZoh5r1ju+2N0dEBkmjIF afCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zRTnc192G555hOHtI3ujNPRHECrdactujURMebxrasQ=; b=IzshoDP69Bxe9F8awTl31xnfT8WBOIB8lDJB7ATLGImVcSDYCgVc7UwDKSvZAMXFCW tYJsc71L/1xCFfxKf7tDLDQKQGDq2K5pCy2PkHoUPJW5Prusd2+xYFAGdiZq0kuJA4ao WsoM/iRCIoLpbYGYq/OpWSQjCPAkc0bJJwWpw0I0s7Ah/vw/BcLUxdXxuV5vUZX3cZS7 uGYp31xOJLLX2njA1hiwAUuAUarYethexT/+er06X6I22WXt01XFTAKR33SRGRfcRlUp eBx00qe6DhkLG14cATG+Y27MT7rddMeGCvHVYNtONwM0G/dOyR1eZ/jz6DMQKZGh9VUL tyaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="I5xygQ/b"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a63ea4f000000b004701a08b72esi11723370pgk.258.2022.11.15.01.07.05; Tue, 15 Nov 2022 01:07:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="I5xygQ/b"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232388AbiKOI7L (ORCPT + 99 others); Tue, 15 Nov 2022 03:59:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232332AbiKOI7L (ORCPT ); Tue, 15 Nov 2022 03:59:11 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66CB9765E; Tue, 15 Nov 2022 00:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zRTnc192G555hOHtI3ujNPRHECrdactujURMebxrasQ=; b=I5xygQ/bmGDcN/Q478BUErg/aK mAYLTrD0B9ZyRJjEO4sd5wizRMtfRx8sJBOuZaO8quU7/lIEP+fsni+CzlDUce9U9FHxRnhvevJFV 4lmPDB0OGWfY7X9NK+oMZ4h3Gj5uDqUduii7yY1jaG8NVqlpgP5yC8KJMIFJtlZlCnKhyL6xX93I5 WLAi+ieVp5otPHF8b1LDC8ihvKbG1tfkW3aTcSnx+qoqUsh0c9S4Dy433UYcKK5KIld0HHXRBC443 gULYkMjPAf7dPbuIB0TPcXSDd1v3YsV6ApfjlvRRlOt79h2GR9PUMHElut3Jl/aMtL6VEIQZ2M5B1 4tugcdCg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ourme-00968E-Gi; Tue, 15 Nov 2022 08:59:08 +0000 Date: Tue, 15 Nov 2022 00:59:08 -0800 From: Christoph Hellwig To: Jeff Layton Cc: chuck.lever@oracle.com, linux-fsdevel@vger.kernel.org, trond.myklebust@hammerspace.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/3] filelock: remove redundant filp argument from vfs_lock_file Message-ID: References: <20221114150240.198648-1-jlayton@kernel.org> <20221114150240.198648-2-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114150240.198648-2-jlayton@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Nov 14, 2022 at 10:02:38AM -0500, Jeff Layton wrote: > -int vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf) > +int vfs_lock_file(unsigned int cmd, struct file_lock *fl, struct file_lock *conf) I'd pass fl as the first argument for a saner argument order here. Also can you please break the line at 80 characters? The previous version is insanely unreadable, and the new one just slightly less so. > +extern int vfs_lock_file(unsigned int, struct file_lock *, struct file_lock *); And please drop the pointless extern here. Otherwise looks good: Reviewed-by: Christoph Hellwig