mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04: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 <[email protected]> Cc: David Howells <[email protected]> (Needs testing, please). Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0f8053a509
commit
84097518d1
6 changed files with 11 additions and 28 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue