From: Dan Carpenter <dan.carpenter@oracle.com>
To: Christine Caulfield <ccaulfie@redhat.com>
Cc: David Teigland <teigland@redhat.com>,
cluster-devel@redhat.com, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: [patch] dlm: le32 vs le16
Date: Wed, 4 Jan 2012 10:18:42 +0300 [thread overview]
Message-ID: <20120104071842.GB30978@elgon.mountain> (raw)
->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);
}
reply other threads:[~2012-01-04 7:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120104071842.GB30978@elgon.mountain \
--to=dan.carpenter@oracle.com \
--cc=ccaulfie@redhat.com \
--cc=cluster-devel@redhat.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=teigland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®