Skip to content

Commit

Permalink
ocfs2: Pack vote message and response structures
Browse files Browse the repository at this point in the history
The ocfs2_vote_msg and ocfs2_response_msg structs needed to be
packed to ensure similar sizeofs in 32-bit and 64-bit arches. Without this,
we had inadvertantly broken 32/64 bit cross mounts.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Sunil Mushran authored and Mark Fasheh committed Sep 20, 2007
1 parent 5c26a7b commit 813d974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ocfs2/vote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;
Expand Down

0 comments on commit 813d974

Please sign in to comment.