diff options
author | Marc Eshel <eshel@almaden.ibm.com> | 2007-01-18 15:08:55 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2007-05-06 18:08:49 -0400 |
commit | 7723ec9777d9832849b76475b1a21a2872a40d20 (patch) | |
tree | af712e690d1de0a2e693830f6e056455c1725a92 /include | |
parent | 3ee17abd14c728d4e0ca7a991c58f2250cb091af (diff) | |
download | op-kernel-dev-7723ec9777d9832849b76475b1a21a2872a40d20.zip op-kernel-dev-7723ec9777d9832849b76475b1a21a2872a40d20.tar.gz |
locks: factor out generic/filesystem switch from setlock code
Factor out the code that switches between generic and filesystem-specific lock
methods; eventually we want to call this from lock managers (lockd and nfsd)
too; currently they only call the generic methods.
This patch does that for all the setlk code.
Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 2a2a439..1d5ccdd 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -857,6 +857,7 @@ extern int posix_lock_file(struct file *, struct file_lock *); extern int posix_lock_file_wait(struct file *, struct file_lock *); extern int posix_unblock_lock(struct file *, struct file_lock *); extern int vfs_test_lock(struct file *, struct file_lock *); +extern int vfs_lock_file(struct file *, unsigned int, 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); |