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-13783 libcfs: support __vmalloc with only 2 args.
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
linux
/
linux-mem.h
diff --git
a/libcfs/include/libcfs/linux/linux-mem.h
b/libcfs/include/libcfs/linux/linux-mem.h
index
11d8fab
..
69d027f
100644
(file)
--- a/
libcfs/include/libcfs/linux/linux-mem.h
+++ b/
libcfs/include/libcfs/linux/linux-mem.h
@@
-131,4
+131,10
@@
static inline void mmap_read_unlock(struct mm_struct *mm)
}
#endif
+#ifdef HAVE_VMALLOC_2ARGS
+#define __ll_vmalloc(size, flags) __vmalloc(size, flags)
+#else
+#define __ll_vmalloc(size, flags) __vmalloc(size, flags, PAGE_KERNEL)
+#endif
+
#endif /* __LINUX_CFS_MEM_H__ */