mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
5970e15dbc
The file locking definitions have lived in fs.h since the dawn of time, but they are only used by a small subset of the source files that include it. 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. Reviewed-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Howells <dhowells@redhat.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Acked-by: Chuck Lever <chuck.lever@oracle.com> Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com> Acked-by: Steve French <stfrench@microsoft.com> Acked-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Jeff Layton <jlayton@kernel.org>
23 lines
423 B
C
23 lines
423 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LOCKD_NETNS_H__
|
|
#define __LOCKD_NETNS_H__
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/filelock.h>
|
|
#include <net/netns/generic.h>
|
|
|
|
struct lockd_net {
|
|
unsigned int nlmsvc_users;
|
|
unsigned long next_gc;
|
|
unsigned long nrhosts;
|
|
|
|
struct delayed_work grace_period_end;
|
|
struct lock_manager lockd_manager;
|
|
|
|
struct list_head nsm_handles;
|
|
};
|
|
|
|
extern unsigned int lockd_net_id;
|
|
|
|
#endif
|