[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:

committed by
Linus Torvalds

parent
0f8053a509
commit
84097518d1
@@ -87,8 +87,7 @@ static int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
|
||||
xpages = 1UL << order;
|
||||
npages = (newsize + PAGE_SIZE - 1) >> PAGE_SHIFT;
|
||||
|
||||
for (loop = 0; loop < npages; loop++)
|
||||
set_page_count(pages + loop, 1);
|
||||
split_page(pages, order);
|
||||
|
||||
/* trim off any pages we don't actually require */
|
||||
for (loop = npages; loop < xpages; loop++)
|
||||
|
Reference in New Issue
Block a user