Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84713
b: refs/heads/master
c: 8b5f688
h: refs/heads/master
i:
  84711: 577d7b6
v: v3
  • Loading branch information
Marcin Slusarz authored and Linus Torvalds committed Feb 8, 2008
1 parent 54b475e commit 183d543
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 79 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2004dc8eec1b4f0692b3be87ea80c70faa44d619
refs/heads/master: 8b5f6883683c91ad7e1af32b7ceeb604d68e2865
30 changes: 0 additions & 30 deletions trunk/fs/ocfs2/cluster/endian.h

This file was deleted.

1 change: 0 additions & 1 deletion trunk/fs/ocfs2/cluster/nodemanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <linux/sysctl.h>
#include <linux/configfs.h>

#include "endian.h"
#include "tcp.h"
#include "nodemanager.h"
#include "heartbeat.h"
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/ocfs2/dlm/dlmast.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include "cluster/heartbeat.h"
#include "cluster/nodemanager.h"
#include "cluster/tcp.h"
#include "cluster/endian.h"

#include "dlmapi.h"
#include "dlmcommon.h"
Expand Down
45 changes: 0 additions & 45 deletions trunk/fs/ocfs2/endian.h

This file was deleted.

1 change: 0 additions & 1 deletion trunk/fs/ocfs2/ocfs2.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include "dlm/dlmapi.h"

#include "ocfs2_fs.h"
#include "endian.h"
#include "ocfs2_lockid.h"

/* Most user visible OCFS2 inodes will have very few pieces of
Expand Down
30 changes: 30 additions & 0 deletions trunk/include/linux/byteorder/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,36 @@
#define htons(x) ___htons(x)
#define ntohs(x) ___ntohs(x)

static inline void le16_add_cpu(__le16 *var, u16 val)
{
*var = cpu_to_le16(le16_to_cpu(*var) + val);
}

static inline void le32_add_cpu(__le32 *var, u32 val)
{
*var = cpu_to_le32(le32_to_cpu(*var) + val);
}

static inline void le64_add_cpu(__le64 *var, u64 val)
{
*var = cpu_to_le64(le64_to_cpu(*var) + val);
}

static inline void be16_add_cpu(__be16 *var, u16 val)
{
*var = cpu_to_be16(be16_to_cpu(*var) + val);
}

static inline void be32_add_cpu(__be32 *var, u32 val)
{
*var = cpu_to_be32(be32_to_cpu(*var) + val);
}

static inline void be64_add_cpu(__be64 *var, u64 val)
{
*var = cpu_to_be64(be64_to_cpu(*var) + val);
}

#endif /* KERNEL */

#endif /* _LINUX_BYTEORDER_GENERIC_H */

0 comments on commit 183d543

Please sign in to comment.