Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9823242rwb; Thu, 24 Nov 2022 19:50:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MztUrNG0OrEvJUn7RUbc+LfpqvOWHHzMJYAdWlAmHIGd9BD+eEpbsgzNqhDXBKK40WTyg X-Received: by 2002:aa7:9150:0:b0:574:a3dd:d47f with SMTP id 16-20020aa79150000000b00574a3ddd47fmr3445587pfi.33.1669348247992; Thu, 24 Nov 2022 19:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669348247; cv=none; d=google.com; s=arc-20160816; b=ybr2qM2n6ru7So6y0WSxu49P9PoJ7bTzbtiAcuDVcpN1I5/o4ST32McUeXE2al5K5x P++ON6ZorDU5+H3NBNL+mYk2LzEQ+5Co47UfxtWp0yTnrLMoosTiBlz5MSqDhj2YiklZ hAhAdSjnjn0izxtYw6mfnYADYFg3+Eu2X8ISwyOQjqw4p4oa8raCFb1n874gJF/Jy1nJ oJ+4Pd+w5xIVU127HceMjOqBcBy9e9bULMswQ9uO+5YG9kvekoBPzx/A5VxFsyeCJJft WpScrLlC6SdAjcoO2BLczRighDy2XKbpUPufGoNNQ7c97dM1ry5qwhjlfr1zSZqD30oR thag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=I2TD8YnyUVRKaNNBGvfs3pUWZDwIFw5kNMaApqkurhc=; b=C0pvER/d8kK0xtnkyqDrH3JFepezAXPraMTqay2wWXQkurmD5zmW1wPCO6PwASuj8C fzeJGjIJDW3sfhPq9qAcdpHhE8aXqJ/mSThEFSHX1YqJVWPFw5Ii1FE23oRaDuwkGCFe hrkq58OT9nvIx89CPjdEUBecfBlRLbf8yzIoRtCZfp7pGriDnrrVc+nGO6jronbY0rGl ZPWgTt69EcZupEubQ4OvgmTjFcaxncAdFVsNGgeMe+cK7NSpuZtpXUgaHTLhJtkLlVAy n1OmAsD7qLD2rL7dPnbPkXAXxy4ZyKbMSWvR14iQ4zBHx88hOELaVNUY3KC5CoMX1xdI r8DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=LNV2e8Ub; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a17090332d100b00176bcd1ccf3si2723885plr.591.2022.11.24.19.50.30; Thu, 24 Nov 2022 19:50:47 -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=@linux.org.uk header.s=zeniv-20220401 header.b=LNV2e8Ub; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbiKYDtQ (ORCPT + 99 others); Thu, 24 Nov 2022 22:49:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiKYDtQ (ORCPT ); Thu, 24 Nov 2022 22:49:16 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D82B26117; Thu, 24 Nov 2022 19:49:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=I2TD8YnyUVRKaNNBGvfs3pUWZDwIFw5kNMaApqkurhc=; b=LNV2e8UbAEOQw/T25Fn0zcJFtt fNpKOR7AmYQmyKebyHLdQkC/VRgO+jC6IaDUeHAjw4EL0DsbkFM6Iqc2wV96JeHEovMJKBTXDZmhv ZBw2xsCMnqYGB42wL+ylBtaiFvmXn4+q48vjcw+DG90eOjgZU2/9rcOSLcqiIsrxuWaDw1SMMEzx7 t7JkkxZCAEJ97Erz/o4KvknT6QpkedMLh6PAKj8gLWbA+2hlrTJV8E/LgdR9rDoShxcJCoTpm912V ABkJ97xsSUr6RQZKyn8cXzXou9+2BUXYywgtCMyz0UPAL3QT8v6w4dSbpiqIhsoN4SGRxmTtMbclh leUGm6UQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1oyPhG-006aFN-28; Fri, 25 Nov 2022 03:48:14 +0000 Date: Fri, 25 Nov 2022 03:48:14 +0000 From: Al Viro To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Howells , Marc Dionne , Xiubo Li , Ilya Dryomov , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Christine Caulfield , David Teigland , Chuck Lever , Miklos Szeredi , Bob Peterson , Andreas Gruenbacher , Namjae Jeon , Sergey Senozhatsky , Trond Myklebust , Anna Schumaker , Mark Fasheh , Joel Becker , Joseph Qi , Mike Marshall , Martin Brandenburg , "Darrick J. Wong" , hch@lst.de, linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, ocfs2-devel@oss.oracle.com, devel@lists.orangefs.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH] filelock: move file locking definitions to separate header file Message-ID: References: <20221120210004.381842-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221120210004.381842-1-jlayton@kernel.org> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 Sun, Nov 20, 2022 at 03:59:57PM -0500, Jeff Layton wrote: > --- /dev/null > +++ b/include/linux/filelock.h > @@ -0,0 +1,428 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef _LINUX_FILELOCK_H > +#define _LINUX_FILELOCK_H > + > +#include > +#include Umm... I'd add a comment along the lines of "struct file_lock has a BS union by fs type; NFS side of things needs nfs_fs_i.h" > +struct lock_manager_operations { > + void *lm_mod_owner; > + fl_owner_t (*lm_get_owner)(fl_owner_t); Probably take fl_owner_t to some more neutral header... > +#define locks_inode(f) file_inode(f) Why do we still have that one, anyway? Separate patch, obviously, but I would take Occam's Razor to that entity... > +struct files_struct; > +extern void show_fd_locks(struct seq_file *f, > + struct file *filp, struct files_struct *files); If anything, that would be better off as fl_owner_t... Again, a separate patch.