* [Ocfs2-devel] ocfs2: Vote message and response structures packed
@ 2007-09-20 10:59 Sunil Mushran
2007-09-20 10:59 ` [Ocfs2-devel] [PATCH 1/1] " Sunil Mushran
0 siblings, 1 reply; 3+ messages in thread
From: Sunil Mushran @ 2007-09-20 10:59 UTC (permalink / raw)
To: ocfs2-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH 1/1] ocfs2: Vote message and response structures packed
2007-09-20 10:59 [Ocfs2-devel] ocfs2: Vote message and response structures packed Sunil Mushran
@ 2007-09-20 10:59 ` Sunil Mushran
2007-09-20 12:05 ` Mark Fasheh
0 siblings, 1 reply; 3+ messages in thread
From: Sunil Mushran @ 2007-09-20 10:59 UTC (permalink / raw)
To: ocfs2-devel
The ocfs2_vote_msg and ocfs2_response_msg structs needed to be
packed to ensure similar sizeofs in 32-bit and 64-bit arches.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
---
fs/ocfs2/vote.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/vote.c b/fs/ocfs2/vote.c
index 66a13ee..c053585 100644
--- a/fs/ocfs2/vote.c
+++ b/fs/ocfs2/vote.c
@@ -66,7 +66,7 @@ struct ocfs2_vote_msg
{
struct ocfs2_msg_hdr v_hdr;
__be32 v_reserved1;
-};
+} __attribute__ ((packed));
/* Responses are given these values to maintain backwards
* compatibility with older ocfs2 versions */
@@ -78,7 +78,7 @@ struct ocfs2_response_msg
{
struct ocfs2_msg_hdr r_hdr;
__be32 r_response;
-};
+} __attribute__ ((packed));
struct ocfs2_vote_work {
struct list_head w_list;
--
1.5.2.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Ocfs2-devel] [PATCH 1/1] ocfs2: Vote message and response structures packed
2007-09-20 10:59 ` [Ocfs2-devel] [PATCH 1/1] " Sunil Mushran
@ 2007-09-20 12:05 ` Mark Fasheh
0 siblings, 0 replies; 3+ messages in thread
From: Mark Fasheh @ 2007-09-20 12:05 UTC (permalink / raw)
To: ocfs2-devel
Thanks, applied.
--Mark
On Thu, Sep 20, 2007 at 10:59:48AM -0700, Sunil Mushran wrote:
> The ocfs2_vote_msg and ocfs2_response_msg structs needed to be
> packed to ensure similar sizeofs in 32-bit and 64-bit arches.
>
> Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
> ---
> fs/ocfs2/vote.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/ocfs2/vote.c b/fs/ocfs2/vote.c
> index 66a13ee..c053585 100644
> --- a/fs/ocfs2/vote.c
> +++ b/fs/ocfs2/vote.c
> @@ -66,7 +66,7 @@ struct ocfs2_vote_msg
> {
> struct ocfs2_msg_hdr v_hdr;
> __be32 v_reserved1;
> -};
> +} __attribute__ ((packed));
>
> /* Responses are given these values to maintain backwards
> * compatibility with older ocfs2 versions */
> @@ -78,7 +78,7 @@ struct ocfs2_response_msg
> {
> struct ocfs2_msg_hdr r_hdr;
> __be32 r_response;
> -};
> +} __attribute__ ((packed));
>
> struct ocfs2_vote_work {
> struct list_head w_list;
> --
> 1.5.2.5
>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel@oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh@oracle.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-20 12:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 10:59 [Ocfs2-devel] ocfs2: Vote message and response structures packed Sunil Mushran
2007-09-20 10:59 ` [Ocfs2-devel] [PATCH 1/1] " Sunil Mushran
2007-09-20 12:05 ` Mark Fasheh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.