]> err.no Git - linux-2.6/blobdiff - include/linux/lockd/bind.h
knfsd: lockd: nfsd4: use same grace period for lockd and nfsd4
[linux-2.6] / include / linux / lockd / bind.h
index 246de1d84a2679c96436ce9601ed02183b8b6a87..6f1637c61e10eaef35f0a5e6a27145c273b5d95b 100644 (file)
@@ -27,6 +27,7 @@ struct nlmsvc_binding {
                                                struct nfs_fh *,
                                                struct file **);
        void                    (*fclose)(struct file *);
+       unsigned long           (*get_grace_period)(void);
 };
 
 extern struct nlmsvc_binding * nlmsvc_ops;
@@ -38,4 +39,12 @@ extern int   nlmclnt_proc(struct inode *, int, struct file_lock *);
 extern int     lockd_up(int proto);
 extern void    lockd_down(void);
 
+unsigned long get_nfs_grace_period(void);
+
+#ifdef CONFIG_NFSD_V4
+unsigned long get_nfs4_grace_period(void);
+#else
+static inline unsigned long get_nfs4_grace_period(void) {return 0;}
+#endif
+
 #endif /* LINUX_LOCKD_BIND_H */