aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/locks.c b/fs/locks.c
index ee46584c1a40..242328e17f32 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2028,6 +2028,22 @@ posix_unblock_lock(struct file *filp, struct file_lock *waiter)
2028 2028
2029EXPORT_SYMBOL(posix_unblock_lock); 2029EXPORT_SYMBOL(posix_unblock_lock);
2030 2030
2031/**
2032 * vfs_cancel_lock - file byte range unblock lock
2033 * @filp: The file to apply the unblock to
2034 * @fl: The lock to be unblocked
2035 *
2036 * Used by lock managers to cancel blocked requests
2037 */
2038int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
2039{
2040 if (filp->f_op && filp->f_op->lock)
2041 return filp->f_op->lock(filp, F_CANCELLK, fl);
2042 return 0;
2043}
2044
2045EXPORT_SYMBOL_GPL(vfs_cancel_lock);
2046
2031static void lock_get_status(char* out, struct file_lock *fl, int id, char *pfx) 2047static void lock_get_status(char* out, struct file_lock *fl, int id, char *pfx)
2032{ 2048{
2033 struct inode *inode = NULL; 2049 struct inode *inode = NULL;