Page MenuHomeFreeBSD

D38240.diff
No OneTemporary

D38240.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -41,6 +41,7 @@
#include <linux/list.h>
#include <linux/mmap_lock.h>
#include <linux/shrinker.h>
+#include <linux/page.h>
#include <asm/pgtable.h>
@@ -151,6 +152,13 @@
uint32_t mem_unit; /* Memory unit size in bytes */
};
+static inline struct page *
+virt_to_head_page(const void *p)
+{
+
+ return (virt_to_page(p));
+}
+
/*
* Compute log2 of the power of two rounded up count of pages
* needed for size bytes.

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 8, 7:48 PM (2 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15725757
Default Alt Text
D38240.diff (644 B)

Event Timeline