Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80607
b: refs/heads/master
c: 550283e
h: refs/heads/master
i:
  80605: 0131631
  80603: 96ef94a
  80599: e638bbe
  80591: ca29d3e
  80575: 9c68d8b
v: v3
  • Loading branch information
Fabio M. Di Nitto authored and David Teigland committed Jan 30, 2008
1 parent 9de26d7 commit e7277ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7847d35ac39fe92c94540e88ac3d0e177f52d9e
refs/heads/master: 550283e30ccec5ddab9749a77b0022ebcaf0f3af
9 changes: 6 additions & 3 deletions trunk/fs/dlm/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void dlm_rcom_out(struct dlm_rcom *rc)
rc->rc_seq = cpu_to_le64(rc->rc_seq);
rc->rc_seq_reply = cpu_to_le64(rc->rc_seq_reply);

if (type == DLM_RCOM_LOCK)
if ((type == DLM_RCOM_LOCK) || (type == DLM_RCOM_LOCK_REPLY))
rcom_lock_out((struct rcom_lock *) rc->rc_buf);

else if (type == DLM_RCOM_STATUS_REPLY)
Expand All @@ -147,6 +147,7 @@ void dlm_rcom_out(struct dlm_rcom *rc)
void dlm_rcom_in(struct dlm_rcom *rc)
{
struct dlm_header *hd = (struct dlm_header *) rc;
int type;

header_in(hd);

Expand All @@ -156,10 +157,12 @@ void dlm_rcom_in(struct dlm_rcom *rc)
rc->rc_seq = le64_to_cpu(rc->rc_seq);
rc->rc_seq_reply = le64_to_cpu(rc->rc_seq_reply);

if (rc->rc_type == DLM_RCOM_LOCK)
type = rc->rc_type;

if ((type == DLM_RCOM_LOCK) || (type == DLM_RCOM_LOCK_REPLY))
rcom_lock_in((struct rcom_lock *) rc->rc_buf);

else if (rc->rc_type == DLM_RCOM_STATUS_REPLY)
else if (type == DLM_RCOM_STATUS_REPLY)
rcom_config_in((struct rcom_config *) rc->rc_buf);
}

0 comments on commit e7277ed

Please sign in to comment.