]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/lockd/svcsubs.c
m32r: build fix of arch/m32r/kernel/smpboot.c
[linux-2.6-omap-h63xx.git] / fs / lockd / svcsubs.c
index c0df00c74ce38b9ac77f7c9e85bfc6d119f367c1..dbbefbcd671255935c61783e5cf73d4122346cd7 100644 (file)
@@ -87,7 +87,7 @@ nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result,
        unsigned int    hash;
        __be32          nfserr;
 
-       nlm_debug_print_fh("nlm_file_lookup", f);
+       nlm_debug_print_fh("nlm_lookup_file", f);
 
        hash = file_hash(f);
 
@@ -182,7 +182,7 @@ again:
                        lock.fl_type  = F_UNLCK;
                        lock.fl_start = 0;
                        lock.fl_end   = OFFSET_MAX;
-                       if (posix_lock_file(file->f_file, &lock) < 0) {
+                       if (vfs_lock_file(file->f_file, F_SETLK, &lock, NULL) < 0) {
                                printk("lockd: unlock failure in %s:%d\n",
                                                __FILE__, __LINE__);
                                return 1;