]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/locks.c
locks: don't call ->copy_lock methods on return of conflicting locks
[linux-2.6-omap-h63xx.git] / fs / locks.c
index 2e0fa661e4234d2ab9a5d3fae52af6882fcb2db3..e1ea2fe036811a7a4f68702655a39c28111e033a 100644 (file)
@@ -224,7 +224,7 @@ static void locks_copy_private(struct file_lock *new, struct file_lock *fl)
 /*
  * Initialize a new lock from an existing file_lock structure.
  */
-static void __locks_copy_lock(struct file_lock *new, const struct file_lock *fl)
+void __locks_copy_lock(struct file_lock *new, const struct file_lock *fl)
 {
        new->fl_owner = fl->fl_owner;
        new->fl_pid = fl->fl_pid;
@@ -833,7 +833,7 @@ static int __posix_lock_file(struct inode *inode, struct file_lock *request, str
                        if (!posix_locks_conflict(request, fl))
                                continue;
                        if (conflock)
-                               locks_copy_lock(conflock, fl);
+                               __locks_copy_lock(conflock, fl);
                        error = -EAGAIN;
                        if (!(request->fl_flags & FL_SLEEP))
                                goto out;