summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarc Eshel <eshel@almaden.ibm.com>2007-01-18 21:08:55 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2007-05-07 00:08:49 +0200
commit7723ec9777d9832849b76475b1a21a2872a40d20 (patch)
treeaf712e690d1de0a2e693830f6e056455c1725a92 /include
parentlocks: factor out generic/filesystem switch from test_lock (diff)
downloadlinux-7723ec9777d9832849b76475b1a21a2872a40d20.tar.xz
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')
-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 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);