Skip to content

Commit

Permalink
dlm: fix plock dev_write return value
Browse files Browse the repository at this point in the history
The return value on writes to the plock device should be
the number of bytes written.  It was returning 0 instead
when an nfs lock callback was involved.

Reported-by: Nathan Straz <[email protected]>
Signed-off-by: David Teigland <[email protected]>
  • Loading branch information
teigland committed May 19, 2008
1 parent 0035a4b commit 817d10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dlm/plock.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,
struct plock_xop *xop;
xop = (struct plock_xop *)op;
if (xop->callback)
count = dlm_plock_callback(op);
dlm_plock_callback(op);
else
wake_up(&recv_wq);
} else
Expand Down

0 comments on commit 817d10b

Please sign in to comment.