Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146862975
D49811.1781328776.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
773 B
Referenced Files
None
Subscribers
None
D49811.1781328776.diff
View Options
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
@@ -275,6 +275,12 @@
vm_page_wire(page);
}
+static inline void
+put_page(struct page *page)
+{
+ vm_page_unwire(page, PQ_ACTIVE);
+}
+
void linux_release_pages(struct page **pages, int nr);
#define release_pages(pages, nr) linux_release_pages((pages), (nr))
@@ -334,12 +340,6 @@
task, mm, start, nr_pages, gup_flags, pages, vmas);
}
-static inline void
-put_page(struct page *page)
-{
- vm_page_unwire(page, PQ_ACTIVE);
-}
-
#define unpin_user_page(page) put_page(page)
#define unpin_user_pages(pages, npages) release_pages(pages, npages)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 13, 5:32 AM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28896794
Default Alt Text
D49811.1781328776.diff (773 B)
Attached To
Mode
D49811: linuxkpi: Move `put_page()` closer to `get_page()`
Attached
Detach File
Event Timeline
Log In to Comment