diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 8 | ||||
-rw-r--r-- | include/linux/lockd/bind.h | 9 |
2 files changed, 8 insertions, 9 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 9f540165a078..27cfa723b92a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -942,6 +942,14 @@ struct lock_manager_operations { | |||
942 | int (*fl_change)(struct file_lock **, int); | 942 | int (*fl_change)(struct file_lock **, int); |
943 | }; | 943 | }; |
944 | 944 | ||
945 | struct lock_manager { | ||
946 | struct list_head list; | ||
947 | }; | ||
948 | |||
949 | void locks_start_grace(struct lock_manager *); | ||
950 | void locks_end_grace(struct lock_manager *); | ||
951 | int locks_in_grace(void); | ||
952 | |||
945 | /* that will die - we need it for nfs_lock_info */ | 953 | /* that will die - we need it for nfs_lock_info */ |
946 | #include <linux/nfs_fs_i.h> | 954 | #include <linux/nfs_fs_i.h> |
947 | 955 | ||
diff --git a/include/linux/lockd/bind.h b/include/linux/lockd/bind.h index 3d25bcd139d1..1f0465c374dc 100644 --- a/include/linux/lockd/bind.h +++ b/include/linux/lockd/bind.h | |||
@@ -27,7 +27,6 @@ struct nlmsvc_binding { | |||
27 | struct nfs_fh *, | 27 | struct nfs_fh *, |
28 | struct file **); | 28 | struct file **); |
29 | void (*fclose)(struct file *); | 29 | void (*fclose)(struct file *); |
30 | unsigned long (*get_grace_period)(void); | ||
31 | }; | 30 | }; |
32 | 31 | ||
33 | extern struct nlmsvc_binding * nlmsvc_ops; | 32 | extern struct nlmsvc_binding * nlmsvc_ops; |
@@ -56,12 +55,4 @@ extern int nlmclnt_proc(struct nlm_host *host, int cmd, | |||
56 | extern int lockd_up(int proto); | 55 | extern int lockd_up(int proto); |
57 | extern void lockd_down(void); | 56 | extern void lockd_down(void); |
58 | 57 | ||
59 | unsigned long get_nfs_grace_period(void); | ||
60 | |||
61 | #ifdef CONFIG_NFSD_V4 | ||
62 | unsigned long get_nfs4_grace_period(void); | ||
63 | #else | ||
64 | static inline unsigned long get_nfs4_grace_period(void) {return 0;} | ||
65 | #endif | ||
66 | |||
67 | #endif /* LINUX_LOCKD_BIND_H */ | 58 | #endif /* LINUX_LOCKD_BIND_H */ |