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
LU-3963 libcfs: remove last of cfs list wrappers
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
user-mem.h
diff --git
a/libcfs/include/libcfs/user-mem.h
b/libcfs/include/libcfs/user-mem.h
index
8ab9c25
..
af0e4b0
100644
(file)
--- a/
libcfs/include/libcfs/user-mem.h
+++ b/
libcfs/include/libcfs/user-mem.h
@@
-38,18
+38,18
@@
#define LIBLUSTRE_HANDLE_UNALIGNED_PAGE
struct page {
#define LIBLUSTRE_HANDLE_UNALIGNED_PAGE
struct page {
-
void
*addr;
-
unsigned long
index;
-
cfs_list_t
list;
-
unsigned long
private;
-
-
/* internally used by liblustre file i/o */
-
int _offset;
-
int _count;
+
void
*addr;
+
unsigned long
index;
+
struct list_head
list;
+
unsigned long
private;
+
+ /* internally used by liblustre file i/o */
+ int _offset;
+ int _count;
#ifdef LIBLUSTRE_HANDLE_UNALIGNED_PAGE
#ifdef LIBLUSTRE_HANDLE_UNALIGNED_PAGE
-
int _managed;
+ int _managed;
#endif
#endif
-
cfs_list_t
_node;
+
struct list_head
_node;
};
};
@@
-70,6
+70,9
@@
void kunmap(struct page *pg);
#define page_cache_get(page) do { } while (0)
#define page_cache_release(page) do { } while (0)
#define page_cache_get(page) do { } while (0)
#define page_cache_release(page) do { } while (0)
+#define inc_zone_page_state(page, state) do {} while (0)
+#define dec_zone_page_state(page, state) do {} while (0)
+
/*
* Memory allocator
* Inline function, so utils can use them without linking of libcfs
/*
* Memory allocator
* Inline function, so utils can use them without linking of libcfs