mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] dlm: le32 vs le16
@ 2012-01-04  7:18 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2012-01-04  7:18 UTC (permalink / raw)
  To: Christine Caulfield
  Cc: David Teigland, cluster-devel, linux-kernel, kernel-janitors

->rf_our_slot and ->rf_num_slots are le16 so we should use cpu_to_le16()
here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c
index 8f5a1b2..ac5c616 100644
--- a/fs/dlm/rcom.c
+++ b/fs/dlm/rcom.c
@@ -89,8 +89,8 @@ static void set_rcom_config(struct dlm_ls *ls, struct rcom_config *rf,
 	rf->rf_lvblen = cpu_to_le32(ls->ls_lvblen);
 	rf->rf_lsflags = cpu_to_le32(ls->ls_exflags);
 
-	rf->rf_our_slot = cpu_to_le32(ls->ls_slot);
-	rf->rf_num_slots = cpu_to_le32(num_slots);
+	rf->rf_our_slot = cpu_to_le16(ls->ls_slot);
+	rf->rf_num_slots = cpu_to_le16(num_slots);
 	rf->rf_generation =  cpu_to_le32(ls->ls_generation);
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-04  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-04  7:18 [patch] dlm: le32 vs le16 Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®