Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2212e28
)
fld: 0: use typedefs instead of #defines, 1: kill unused stuff
author
nikita
<nikita>
Mon, 19 Jun 2006 12:45:11 +0000
(12:45 +0000)
committer
nikita
<nikita>
Mon, 19 Jun 2006 12:45:11 +0000
(12:45 +0000)
lustre/fld/fld_internal.h
patch
|
blob
|
history
diff --git
a/lustre/fld/fld_internal.h
b/lustre/fld/fld_internal.h
index
56cd638
..
cdc0978
100644
(file)
--- a/
lustre/fld/fld_internal.h
+++ b/
lustre/fld/fld_internal.h
@@
-26,14
+26,10
@@
#ifndef _FLD_INTERNAL_H
#define _FLD_INTERNAL_H
-#define mdsno_t __u64
-#define fidseq_t __u64
+#include <linux/types.h>
-#define key_cmp(e1, e2) ({ \
- typeof(e1) __e1 = (e1); \
- typeof(e2) __e2 = (e2); \
- __e1 > __e2 ? +1 : (__e1 < __e2 ? -1 : 0); \
-})
+typedef __u64 mdsno_t;
+typedef __u64 fidseq_t;
struct fld_cache {
struct hlist_node fld_list;