Skip to content

Commit

Permalink
ocfs2: trivial endianness misannotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 30, 2012
1 parent 66f8f50 commit 8515841
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fs/ocfs2/dlm/dlmast.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data,
struct dlm_proxy_ast *past = (struct dlm_proxy_ast *) msg->buf;
char *name;
struct list_head *iter, *head=NULL;
u64 cookie;
__be64 cookie;
u32 flags;
u8 node;

Expand Down
6 changes: 3 additions & 3 deletions fs/ocfs2/dlm/dlmcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ struct dlm_query_join_packet {
};

union dlm_query_join_response {
u32 intval;
__be32 intval;
struct dlm_query_join_packet packet;
};

Expand Down Expand Up @@ -755,8 +755,8 @@ struct dlm_query_region {
struct dlm_node_info {
u8 ni_nodenum;
u8 pad1;
u16 ni_ipv4_port;
u32 ni_ipv4_address;
__be16 ni_ipv4_port;
__be32 ni_ipv4_address;
};

struct dlm_query_nodeinfo {
Expand Down
2 changes: 1 addition & 1 deletion fs/ocfs2/dlm/dlmdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static void dlm_query_join_packet_to_wire(struct dlm_query_join_packet *packet,
union dlm_query_join_response response;

response.packet = *packet;
*wire = cpu_to_be32(response.intval);
*wire = be32_to_cpu(response.intval);
}

static void dlm_query_join_wire_to_packet(u32 wire,
Expand Down

0 comments on commit 8515841

Please sign in to comment.