diff options
author | Marc Eshel <eshel@almaden.ibm.com> | 2007-01-18 16:15:35 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2007-05-06 19:23:24 -0400 |
commit | 150b393456e5a23513cace286a019e87151e47f0 (patch) | |
tree | 91599ec9b759f7e3c5defcb8dd361acd7288154c /include/linux | |
parent | 7723ec9777d9832849b76475b1a21a2872a40d20 (diff) |
locks: allow {vfs,posix}_lock_file to return conflicting lock
The nfsv4 protocol's lock operation, in the case of a conflict, returns
information about the conflicting lock.
It's unclear how clients can use this, so for now we're not going so far as to
add a filesystem method that can return a conflicting lock, but we may as well
return something in the local case when it's easy to.
Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 1d5ccdd7c68d..c92d0bdff39f 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -852,12 +852,11 @@ extern void locks_copy_lock(struct file_lock *, struct file_lock *); | |||
852 | extern void locks_remove_posix(struct file *, fl_owner_t); | 852 | extern void locks_remove_posix(struct file *, fl_owner_t); |
853 | extern void locks_remove_flock(struct file *); | 853 | extern void locks_remove_flock(struct file *); |
854 | extern int posix_test_lock(struct file *, struct file_lock *); | 854 | extern int posix_test_lock(struct file *, struct file_lock *); |
855 | extern int posix_lock_file_conf(struct file *, struct file_lock *, struct file_lock *); | 855 | extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *); |
856 | extern int posix_lock_file(struct file *, struct file_lock *); | ||
857 | extern int posix_lock_file_wait(struct file *, struct file_lock *); | 856 | extern int posix_lock_file_wait(struct file *, struct file_lock *); |
858 | extern int posix_unblock_lock(struct file *, struct file_lock *); | 857 | extern int posix_unblock_lock(struct file *, struct file_lock *); |
859 | extern int vfs_test_lock(struct file *, struct file_lock *); | 858 | extern int vfs_test_lock(struct file *, struct file_lock *); |
860 | extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *); | 859 | extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *); |
861 | extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl); | 860 | extern int flock_lock_file_wait(struct file *filp, struct file_lock *fl); |
862 | extern int __break_lease(struct inode *inode, unsigned int flags); | 861 | extern int __break_lease(struct inode *inode, unsigned int flags); |
863 | extern void lease_get_mtime(struct inode *, struct timespec *time); | 862 | extern void lease_get_mtime(struct inode *, struct timespec *time); |