Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
land portals part of b_hd_sec on HEAD.
[fs/lustre-release.git]
/
lnet
/
include
/
libcfs
/
portals_lib.h
diff --git
a/lnet/include/libcfs/portals_lib.h
b/lnet/include/libcfs/portals_lib.h
index
f6b12c2
..
8be849b
100644
(file)
--- a/
lnet/include/libcfs/portals_lib.h
+++ b/
lnet/include/libcfs/portals_lib.h
@@
-39,6
+39,11
@@
#define MAX(a,b) (((a)>(b)) ? (a): (b))
#define MKSTR(ptr) ((ptr))? (ptr) : ""
+static inline int size_round4 (int val)
+{
+ return (val + 3) & (~0x3);
+}
+
static inline int size_round (int val)
{
return (val + 7) & (~0x7);