mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
[PATCH] mm: nommu use compound pages
Now that compound page handling is properly fixed in the VM, move nommu over to using compound pages rather than rolling their own refcounting. nommu vm page refcounting is broken anyway, but there is no need to have divergent code in the core VM now, nor when it gets fixed. Signed-off-by: Nick Piggin <npiggin@suse.de> Cc: David Howells <dhowells@redhat.com> (Needs testing, please). Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0f8053a509
commit
84097518d1
6 changed files with 11 additions and 28 deletions
|
@ -327,11 +327,7 @@ static inline void get_page(struct page *page)
|
|||
|
||||
void put_page(struct page *page);
|
||||
|
||||
#ifdef CONFIG_MMU
|
||||
void split_page(struct page *page, unsigned int order);
|
||||
#else
|
||||
static inline void split_page(struct page *page, unsigned int order) {}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Multiple processes may "see" the same page. E.g. for untouched
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue