aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/rcom.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-01-25 02:08:26 -0500
committerDavid Teigland <teigland@redhat.com>2008-02-04 02:23:14 -0500
commit163a1859ec6c4c33547bf4613efabf52031566aa (patch)
tree04a6dc1c69f726c6686d2a731692fddfdf47d2f2 /fs/dlm/rcom.c
parenteef7d739c218cb2546cf95686db77de0d76e4122 (diff)
dlm: do not byteswap rcom_lock
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/rcom.c')
-rw-r--r--fs/dlm/rcom.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c
index 026824cd3acb..86c1ab99208e 100644
--- a/fs/dlm/rcom.c
+++ b/fs/dlm/rcom.c
@@ -299,22 +299,22 @@ static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb,
299{ 299{
300 memset(rl, 0, sizeof(*rl)); 300 memset(rl, 0, sizeof(*rl));
301 301
302 rl->rl_ownpid = lkb->lkb_ownpid; 302 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid);
303 rl->rl_lkid = lkb->lkb_id; 303 rl->rl_lkid = cpu_to_le32(lkb->lkb_id);
304 rl->rl_exflags = lkb->lkb_exflags; 304 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags);
305 rl->rl_flags = lkb->lkb_flags; 305 rl->rl_flags = cpu_to_le32(lkb->lkb_flags);
306 rl->rl_lvbseq = lkb->lkb_lvbseq; 306 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq);
307 rl->rl_rqmode = lkb->lkb_rqmode; 307 rl->rl_rqmode = lkb->lkb_rqmode;
308 rl->rl_grmode = lkb->lkb_grmode; 308 rl->rl_grmode = lkb->lkb_grmode;
309 rl->rl_status = lkb->lkb_status; 309 rl->rl_status = lkb->lkb_status;
310 rl->rl_wait_type = lkb->lkb_wait_type; 310 rl->rl_wait_type = cpu_to_le16(lkb->lkb_wait_type);
311 311
312 if (lkb->lkb_bastaddr) 312 if (lkb->lkb_bastaddr)
313 rl->rl_asts |= AST_BAST; 313 rl->rl_asts |= AST_BAST;
314 if (lkb->lkb_astaddr) 314 if (lkb->lkb_astaddr)
315 rl->rl_asts |= AST_COMP; 315 rl->rl_asts |= AST_COMP;
316 316
317 rl->rl_namelen = r->res_length; 317 rl->rl_namelen = cpu_to_le16(r->res_length);
318 memcpy(rl->rl_name, r->res_name, r->res_length); 318 memcpy(rl->rl_name, r->res_name, r->res_length);
319 319
320 /* FIXME: might we have an lvb without DLM_LKF_VALBLK set ? 320 /* FIXME: might we have an lvb without DLM_LKF_VALBLK set ?