Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5663441rwb; Tue, 22 Nov 2022 03:17:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4VTh+VjVKhb0cBKFhqeZ0z0yi08p/1z5rNVQxt3CUjwG92RaS6Tp5vBlZmRBYBm5k5xcsh X-Received: by 2002:a17:906:2296:b0:78d:42b8:2dc2 with SMTP id p22-20020a170906229600b0078d42b82dc2mr18766487eja.608.1669115847432; Tue, 22 Nov 2022 03:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669115847; cv=none; d=google.com; s=arc-20160816; b=klulsKxHpOf65b4HPhAXUPJRDACU5nc8p/BPs8N7D0X6yZDYbELQY1DAnVNf1g0luU w6oL3pou/JqJ69g5jgorLyjUUcrRFgHrh61B4/FH86dLlhqAtfACQT4w7qjsNN0Lap9w m8JlsgAcQahrI7Ejsg4sMwDvAgR2kxAxXJD7SUYOXWEkqYVtGysL8K/adN5y8u4pIEvK hW5+r5kCPDZlMRm7f8fKaJ9wqnbi1o4tXuXkndCBSyVC9t9SRHOW7v+Bp01Nr54RbziN IncFP06ou6p7M/zRG61qSbxxH7f6LG40xeLKLXZUknHkNl6oWr5BGHfiKatB/IqwlwV6 Ktcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=SOJndy9oAQaULvL0DdDwPqbrgnyzProJoxd3/mKZ2aI=; b=hG5lXRHUuByZIzsqF8L82igiLp/jl/1yGdypp4ZNjWbvmsTUDJ1AYR+4Qwx0M4juoJ Z3kLfyHXXddBVVxZ5mOZ0o2J7QBEkbza+1oj79xSkMsHHZTdvrgWQok7UWwPYVu/rAxF 8Fg0P3ghTllqiXQMo5rAvpMoNAbPBjS516aDrsfO5Iqv/jSvT+USwGuQQBBEiGpPrvjJ KtcRBVbtctwdKfeMHCxf+hJGoibCslNIyLsPdl0GmCSb8ODksczrw5XH6S14sgqKdJvb tNREuTGDrP4gyhtJmbk5ato+baD8ROkZ52LI0uxZINIscNV/rDvqsC3R4IKwM4mzeWPH 9YGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PW904WXq; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs18-20020a170906dc9200b0078a4aad3141si6599353ejc.211.2022.11.22.03.16.53; Tue, 22 Nov 2022 03:17:27 -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=@kernel.org header.s=k20201202 header.b=PW904WXq; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbiKVLQ3 (ORCPT + 99 others); Tue, 22 Nov 2022 06:16:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232864AbiKVLQF (ORCPT ); Tue, 22 Nov 2022 06:16:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D58B5C771; Tue, 22 Nov 2022 03:14:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AA3F8B81991; Tue, 22 Nov 2022 11:14:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99661C433C1; Tue, 22 Nov 2022 11:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669115639; bh=bl116Cg89IGIZVG9NrRKWmlP6ed4aJACzNI0Wp3w7MQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=PW904WXq7B5dnjaE/n6/stkLttLw66q95uzaVXXfC57Gr8fGyA50W/Y+6YMHj6/Z6 C+bp2zR/HpD7AL2kDXCaUnJHLo0QYTjCM7B7srSBYzv9QSoZunuSXqgWz/eURLlX6f bkLmFZpbKLyi6RqKREvtIsB+vKfLjAYsE4lMeS50ONpsJGmxbLEBM8TI6eOVtcA0LK FmF5vJc1DjzHEZ764Fk6lm5yRoCPsh46VllB8mEkIzIHUVtq1E/Ip3Df/1o0TdNO5Q AIsD9dU2QJjYYPKYl3/NasVd/l9SRjkJBU0cAIKGCY06yaw8kwOzVXEKArpk5buENB HvI5i9aGVVUAA== Message-ID: Subject: Re: [PATCH] filelock: move file locking definitions to separate header file From: Jeff Layton To: Matthew Wilcox 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 Date: Tue, 22 Nov 2022 06:13:54 -0500 In-Reply-To: References: <20221120210004.381842-1-jlayton@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.1 (3.46.1-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, 2022-11-22 at 03:51 +0000, Matthew Wilcox wrote: > 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. >=20 > 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? >=20 > > + wait_queue_head_t fl_wait; > > + struct file *fl_file; >=20 > These two seem undefined at this point. >=20 > > + struct fasync_struct * fl_fasync; /* for lease break notifications */ >=20 > Likewise. >=20 Yeah, there is quite a bit missing. I think I'll have to add this at the head of filelock.h: #include ...as we need several definitions from fs.h for this header. --=20 Jeff Layton