Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38386
b: refs/heads/master
c: 460f5ca
h: refs/heads/master
v: v3
  • Loading branch information
Olaf Kirch authored and Linus Torvalds committed Oct 4, 2006
1 parent 996250b commit 88abccc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39be4502cb75dc26007fe1659735b26c8e63fcc6
refs/heads/master: 460f5cac1e24e947509b6112c99c5bc9ff687b45
2 changes: 1 addition & 1 deletion trunk/fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static struct rpc_program nsm_program;
/*
* Local NSM state
*/
u32 nsm_local_state;
int nsm_local_state;

/*
* Common procedure for SM_MON/SM_UNMON calls
Expand Down
9 changes: 9 additions & 0 deletions trunk/fs/lockd/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/sunrpc/svcsock.h>
#include <net/ip.h>
#include <linux/lockd/lockd.h>
#include <linux/lockd/sm_inter.h>
#include <linux/nfs.h>

#define NLMDBG_FACILITY NLMDBG_SVC
Expand Down Expand Up @@ -404,6 +405,14 @@ static ctl_table nlm_sysctls[] = {
.mode = 0644,
.proc_handler = &proc_dointvec,
},
{
.ctl_name = CTL_UNNUMBERED,
.procname = "nsm_local_state",
.data = &nsm_local_state,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &proc_dointvec,
},
{ .ctl_name = 0 }
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/lockd/sm_inter.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ struct nsm_res {

int nsm_monitor(struct nlm_host *);
int nsm_unmonitor(struct nlm_host *);
extern u32 nsm_local_state;
extern int nsm_local_state;

#endif /* LINUX_LOCKD_SM_INTER_H */

0 comments on commit 88abccc

Please sign in to comment.