diff options
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/clntproc.c | 9 | ||||
-rw-r--r-- | fs/lockd/svclock.c | 8 |
2 files changed, 10 insertions, 7 deletions
diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c index e374050a911..8392cb85bd5 100644 --- a/fs/lockd/clntproc.c +++ b/fs/lockd/clntproc.c | |||
@@ -302,7 +302,8 @@ nlmclnt_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc) | |||
302 | /* We appear to be out of the grace period */ | 302 | /* We appear to be out of the grace period */ |
303 | wake_up_all(&host->h_gracewait); | 303 | wake_up_all(&host->h_gracewait); |
304 | } | 304 | } |
305 | dprintk("lockd: server returns status %d\n", resp->status); | 305 | dprintk("lockd: server returns status %d\n", |
306 | ntohl(resp->status)); | ||
306 | return 0; /* Okay, call complete */ | 307 | return 0; /* Okay, call complete */ |
307 | } | 308 | } |
308 | 309 | ||
@@ -690,7 +691,8 @@ nlmclnt_unlock(struct nlm_rqst *req, struct file_lock *fl) | |||
690 | goto out; | 691 | goto out; |
691 | 692 | ||
692 | if (resp->status != nlm_lck_denied_nolocks) | 693 | if (resp->status != nlm_lck_denied_nolocks) |
693 | printk("lockd: unexpected unlock status: %d\n", resp->status); | 694 | printk("lockd: unexpected unlock status: %d\n", |
695 | ntohl(resp->status)); | ||
694 | /* What to do now? I'm out of my depth... */ | 696 | /* What to do now? I'm out of my depth... */ |
695 | status = -ENOLCK; | 697 | status = -ENOLCK; |
696 | out: | 698 | out: |
@@ -843,6 +845,7 @@ nlm_stat_to_errno(__be32 status) | |||
843 | return -ENOLCK; | 845 | return -ENOLCK; |
844 | #endif | 846 | #endif |
845 | } | 847 | } |
846 | printk(KERN_NOTICE "lockd: unexpected server status %d\n", status); | 848 | printk(KERN_NOTICE "lockd: unexpected server status %d\n", |
849 | ntohl(status)); | ||
847 | return -ENOLCK; | 850 | return -ENOLCK; |
848 | } | 851 | } |
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c index 6e31695d046..f0179c3745d 100644 --- a/fs/lockd/svclock.c +++ b/fs/lockd/svclock.c | |||
@@ -632,7 +632,7 @@ nlmsvc_cancel_blocked(struct nlm_file *file, struct nlm_lock *lock) | |||
632 | 632 | ||
633 | /* | 633 | /* |
634 | * This is a callback from the filesystem for VFS file lock requests. | 634 | * This is a callback from the filesystem for VFS file lock requests. |
635 | * It will be used if fl_grant is defined and the filesystem can not | 635 | * It will be used if lm_grant is defined and the filesystem can not |
636 | * respond to the request immediately. | 636 | * respond to the request immediately. |
637 | * For GETLK request it will copy the reply to the nlm_block. | 637 | * For GETLK request it will copy the reply to the nlm_block. |
638 | * For SETLK or SETLKW request it will get the local posix lock. | 638 | * For SETLK or SETLKW request it will get the local posix lock. |
@@ -719,9 +719,9 @@ static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2) | |||
719 | } | 719 | } |
720 | 720 | ||
721 | const struct lock_manager_operations nlmsvc_lock_operations = { | 721 | const struct lock_manager_operations nlmsvc_lock_operations = { |
722 | .fl_compare_owner = nlmsvc_same_owner, | 722 | .lm_compare_owner = nlmsvc_same_owner, |
723 | .fl_notify = nlmsvc_notify_blocked, | 723 | .lm_notify = nlmsvc_notify_blocked, |
724 | .fl_grant = nlmsvc_grant_deferred, | 724 | .lm_grant = nlmsvc_grant_deferred, |
725 | }; | 725 | }; |
726 | 726 | ||
727 | /* | 727 | /* |