Whamcloud - gitweb
lctl flush command to flush the cache of idmap, lsd, and gss svc context
[fs/lustre-release.git] / lnet / include / lnet / types.h
index 0bada40..4f24b3a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "build_check.h"
 
-#include <linux/libcfs.h>
+#include <libcfs/libcfs.h>
 #include <portals/errno.h>
 
 /* This implementation uses the same type for API function return codes and
@@ -14,6 +14,7 @@ typedef ptl_err_t ptl_ni_fail_t;
 typedef __u32 ptl_uid_t;
 typedef __u32 ptl_jid_t;
 typedef __u64 ptl_nid_t;
+typedef __u32 ptl_netid_t;
 typedef __u32 ptl_pid_t;
 typedef __u32 ptl_pt_index_t;
 typedef __u32 ptl_ac_index_t;
@@ -46,6 +47,7 @@ static inline int PtlHandleIsEqual (ptl_handle_any_t h1, ptl_handle_any_t h2)
 #define PTL_JID_ANY      ((ptl_jid_t) -1)
 #define PTL_NID_ANY      ((ptl_nid_t) -1)
 #define PTL_PID_ANY      ((ptl_pid_t) -1)
+#define PTL_NETID_ANY    ((ptl_netid_t) -1)
 
 typedef struct {
         ptl_nid_t nid;
@@ -95,7 +97,7 @@ typedef struct {
 typedef struct iovec ptl_md_iovec_t;
 
 typedef struct {
-       struct page     *kiov_page;
+       cfs_page_t      *kiov_page;
        unsigned int     kiov_len;
        unsigned int     kiov_offset;
 } ptl_kiov_t;