projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: compaction: use helper compound_nr in isolate_migratepages_block
[linux-block.git]
/
mm
/
compaction.c
diff --git
a/mm/compaction.c
b/mm/compaction.c
index 1fc912ec3a98e66de18abd1907df0513462af3cd..55013a2af817524d0ac2582fe49ab06a0911da58 100644
(file)
--- a/
mm/compaction.c
+++ b/
mm/compaction.c
@@
-908,7
+908,7
@@
isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn,
/* Do not report -EBUSY down the chain */
if (ret == -EBUSY)
ret = 0;
- low_pfn +=
(1UL << compound_order(page)
) - 1;
+ low_pfn +=
compound_nr(page
) - 1;
goto isolate_fail;
}