hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/lockd/lockd.h
....@@ -10,8 +10,6 @@
1010 #ifndef LINUX_LOCKD_LOCKD_H
1111 #define LINUX_LOCKD_LOCKD_H
1212
13
-#ifdef __KERNEL__
14
-
1513 #include <linux/in.h>
1614 #include <linux/in6.h>
1715 #include <net/ipv6.h>
....@@ -70,6 +68,7 @@
7068 struct nsm_handle *h_nsmhandle; /* NSM status handle */
7169 char *h_addrbuf; /* address eyecatcher */
7270 struct net *net; /* host net */
71
+ const struct cred *h_cred;
7372 char nodename[UNX_MAXNODENAME + 1];
7473 const struct nlmclnt_operations *h_nlmclnt_ops; /* Callback ops for NLM users */
7574 };
....@@ -229,7 +228,8 @@
229228 const u32 version,
230229 const char *hostname,
231230 int noresvport,
232
- struct net *net);
231
+ struct net *net,
232
+ const struct cred *cred);
233233 void nlmclnt_release_host(struct nlm_host *);
234234 struct nlm_host *nlmsvc_lookup_host(const struct svc_rqst *rqstp,
235235 const char *hostname,
....@@ -280,6 +280,7 @@
280280 nlm_host_match_fn_t match);
281281 void nlmsvc_grant_reply(struct nlm_cookie *, __be32);
282282 void nlmsvc_release_call(struct nlm_rqst *);
283
+void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
283284
284285 /*
285286 * File handling for the server personality
....@@ -287,6 +288,7 @@
287288 __be32 nlm_lookup_file(struct svc_rqst *, struct nlm_file **,
288289 struct nfs_fh *);
289290 void nlm_release_file(struct nlm_file *);
291
+void nlmsvc_release_lockowner(struct nlm_lock *);
290292 void nlmsvc_mark_resources(struct net *);
291293 void nlmsvc_free_host_resources(struct nlm_host *);
292294 void nlmsvc_invalidate_all(void);
....@@ -368,7 +370,5 @@
368370 }
369371
370372 extern const struct lock_manager_operations nlmsvc_lock_operations;
371
-
372
-#endif /* __KERNEL__ */
373373
374374 #endif /* LINUX_LOCKD_LOCKD_H */