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/linux/fs.h | |
parent | 3ee17abd14c728d4e0ca7a991c58f2250cb091af (diff) | |
download | linux-7723ec9777d9832849b76475b1a21a2872a40d20.tar.gz linux-7723ec9777d9832849b76475b1a21a2872a40d20.tar.bz2 linux-7723ec9777d9832849b76475b1a21a2872a40d20.zip |
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/linux/fs.h')
-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 2a2a43988f50..1d5ccdd7c68d 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); |