mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] knfsd: consolidate common code for statd->lockd notification
Common code from nlm4svc_proc_sm_notify and nlmsvc_proc_sm_notify is moved into a new nlm_host_rebooted. This is in preparation of a patch that will change the reboot notification handling entirely. Signed-off-by: Olaf Kirch <okir@suse.de> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
977faf392f
commit
cf712c24d7
4 changed files with 35 additions and 36 deletions
|
@ -161,15 +161,16 @@ int nlmclnt_reclaim(struct nlm_host *, struct file_lock *);
|
|||
/*
|
||||
* Host cache
|
||||
*/
|
||||
struct nlm_host * nlmclnt_lookup_host(struct sockaddr_in *, int, int);
|
||||
struct nlm_host * nlmclnt_lookup_host(const struct sockaddr_in *, int, int);
|
||||
struct nlm_host * nlmsvc_lookup_host(struct svc_rqst *);
|
||||
struct nlm_host * nlm_lookup_host(int server, struct sockaddr_in *, int, int);
|
||||
struct nlm_host * nlm_lookup_host(int server, const struct sockaddr_in *, int, int);
|
||||
struct rpc_clnt * nlm_bind_host(struct nlm_host *);
|
||||
void nlm_rebind_host(struct nlm_host *);
|
||||
struct nlm_host * nlm_get_host(struct nlm_host *);
|
||||
void nlm_release_host(struct nlm_host *);
|
||||
void nlm_shutdown_hosts(void);
|
||||
extern struct nlm_host *nlm_find_client(void);
|
||||
extern void nlm_host_rebooted(const struct sockaddr_in *, const struct nlm_reboot *);
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue