]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/nfs/file.c
locks: give posix_test_lock same interface as ->lock
[net-next-2.6.git] / fs / nfs / file.c
index 8e66b5a2d490129bb918a10ecf5e811a7488783e..5eaee6dd040b95542cada17a8691e8b6b3b8fb85 100644 (file)
@@ -391,17 +391,12 @@ out_swapfile:
 
 static int do_getlk(struct file *filp, int cmd, struct file_lock *fl)
 {
-       struct file_lock cfl;
        struct inode *inode = filp->f_mapping->host;
        int status = 0;
 
        lock_kernel();
        /* Try local locking first */
-       if (posix_test_lock(filp, fl, &cfl)) {
-               fl->fl_start = cfl.fl_start;
-               fl->fl_end = cfl.fl_end;
-               fl->fl_type = cfl.fl_type;
-               fl->fl_pid = cfl.fl_pid;
+       if (posix_test_lock(filp, fl)) {
                goto out;
        }