Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5280005rwb; Mon, 21 Nov 2022 20:05:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gbaSc/A6qRxaCYk6QP0AzR1qD06L5Xl9HMX5+dBYyLFTENP+p9AKHN2KV1cZL4ptOVTEv X-Received: by 2002:aa7:8d5a:0:b0:562:7f16:7407 with SMTP id s26-20020aa78d5a000000b005627f167407mr24114571pfe.15.1669089903945; Mon, 21 Nov 2022 20:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669089903; cv=none; d=google.com; s=arc-20160816; b=BjJ5kwAoMxHUkI/9mH+T3onKae65LwmuxwRKfmCvsQTOAbdzYNc5ZebbXp2tE55kML aqSChbjWV5xhpg3L9KVFGkplAW9T7OXEUSiicaP4m4ImxK66cSjVgWuyXqDvVQ+38Vjm akhYfYoX8w27ls/sv0Ea8l4umV7lTPdve3cogS+U7C/ETCZnxcW7qYsPEMb0h575jwl/ nVg8nzYRvYp0QUaBpNCEZOBbafX8JPK+xbV3KXZRuRJxLdLuOcRcSC8w6vWjKj1Jvvsa HFWnfITS9H4GOJOvLx5u5rQZsFSj0ba7lIXdYRkaLLtpMOhYQymU7FSeTfKFI4/RN2sB HI+g== 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=Nf/bUURZpgL7+v01nDvViY+Mr2gn9Uq0Zv4IVJAqBIY=; b=OTeA6AZh+wxNdA2kRbIcW86vT9h0rFiqFhFGMSwtrctvNUUp5GxubzXK4aZhjApyRA SOuxQiNjQCD5IkJ79QVXtGV+E2fyOtf7lhbYH9G3oZ29B10wv7O8xsNzfVZp7FF7N6jk JboxoUQ/amrvFg2A/XTd+7cow4PvIhrYQDr7liNb4CBuyvYsZkxJaBc1AiQXolmTp0fH u2Wzpo/Ks4edMIANtk5kCaMcOYtW8xn0lD2hNxuPgcpv5yNHxmCKGDDDXSZpx2rE81V5 s/9fRxcjI7/aM5O6j4uBucbiuh/4HisdniHgplDcUHtdi3/V3MJjAqVXaLrL6b7dZ4+9 jMTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=pOnuFxI6; 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 t2-20020a170902bc4200b0017a0d1d072dsi13453070plz.336.2022.11.21.20.04.48; Mon, 21 Nov 2022 20:05:03 -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=casper.20170209 header.b=pOnuFxI6; 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 S232321AbiKVDwT (ORCPT + 99 others); Mon, 21 Nov 2022 22:52:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232242AbiKVDwQ (ORCPT ); Mon, 21 Nov 2022 22:52:16 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5AFE2B182; Mon, 21 Nov 2022 19:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=Nf/bUURZpgL7+v01nDvViY+Mr2gn9Uq0Zv4IVJAqBIY=; b=pOnuFxI6xpMtGusD1QKOmUNaiu 2G5WRi+pfuY2r1ILekGYfv+DmeMOEpo/9ZdfvtpgAw1Y1jnj/LcGblh8MiyfMovp8mLvKNdfUP/qI 8R/UAAI5nVvaOQ8pSKG/rbuZ0VicxWqV4T1YGGVkt/RUglsV4NUqDoSiw0gmoccxvMxcYQ+10mgyq 9B34ZIPM7+a/xi7vJHzDVB3NuDEFPfxL2tnCXZYEm1Px1iwHfqivbQNmLDdAhN6o8QmYRAyDENCDX RC3YVkPwPWNjGb/sgJLU0O4zrABPqKl4Vd/vL10iTc0IngH+XcCfs+tFpuOER1DxHIoO9jhrM1FLP 7+QDvHAQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxKJn-005uRS-KD; Tue, 22 Nov 2022 03:51:31 +0000 Date: Tue, 22 Nov 2022 03:51:31 +0000 From: Matthew Wilcox To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Howells , Marc Dionne , Alexander Viro , 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> 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 Sun, Nov 20, 2022 at 03:59:57PM -0500, Jeff Layton wrote: > Move the file locking definitions to a new header file, and add the > appropriate #include directives to the source files that need them. By > doing this we trim down fs.h a bit and limit the amount of rebuilding > that has to be done when we make changes to the file locking APIs. I'm in favour of this in general, but I think there's a few implicit includes. Can you create a test.c that only #include and see if there's anything missing? > + wait_queue_head_t fl_wait; > + struct file *fl_file; These two seem undefined at this point. > + struct fasync_struct * fl_fasync; /* for lease break notifications */ Likewise.