X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fnfs%2Ffile.c;h=9eb8eb4e4a08df9db62c8301d8c4622df45bf10c;hb=ecd27b92fbb41f779d857632a69bd45dbaf0f915;hp=8e66b5a2d490129bb918a10ecf5e811a7488783e;hpb=ef29498655b18d2bfd69048e20835d19333981ab;p=linux-2.6 diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 8e66b5a2d4..9eb8eb4e4a 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -391,17 +392,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; }