summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorWilliam A. Adamson <andros@thnk.citi.umich.edu>2004-10-19 18:45:03 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-19 18:45:03 -0700
commitd744ecf3d4b0ba6f3e13b5ae07087f44d6be6f7b (patch)
treedf2b0a85026fed6458d4dee455c0a0069d0ba5b3 /include/linux/fs.h
parent8a2b952d2d9b17501bdc28ce4600d658ca98b279 (diff)
[PATCH] nfs4 lease: export setlease
Export setlease(), a direct interface to __setlease() used by nfsd Signed-off-by: Andy Adamson <andros@citi.umich.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 9e9befdd0289..b6569ec04ff4 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -701,6 +701,7 @@ extern int posix_locks_deadlock(struct file_lock *, struct file_lock *);
extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl);
extern int __break_lease(struct inode *inode, unsigned int flags);
extern void lease_get_mtime(struct inode *, struct timespec *time);
+extern int setlease(struct file *, long, struct file_lock **);
extern int lock_may_read(struct inode *, loff_t start, unsigned long count);
extern int lock_may_write(struct inode *, loff_t start, unsigned long count);
extern void steal_locks(fl_owner_t from);