|
@@ -548,7 +548,7 @@ static int __collapse_huge_page_isolate(struct vm_area_struct *vma,
|
|
|
* The page must only be referenced by the scanned process
|
|
|
* and page swap cache.
|
|
|
*/
|
|
|
- if (page_count(page) != 1 + !!PageSwapCache(page)) {
|
|
|
+ if (page_count(page) != 1 + PageSwapCache(page)) {
|
|
|
unlock_page(page);
|
|
|
result = SCAN_PAGE_COUNT;
|
|
|
goto out;
|
|
@@ -1181,7 +1181,7 @@ static int khugepaged_scan_pmd(struct mm_struct *mm,
|
|
|
* The page must only be referenced by the scanned process
|
|
|
* and page swap cache.
|
|
|
*/
|
|
|
- if (page_count(page) != 1 + !!PageSwapCache(page)) {
|
|
|
+ if (page_count(page) != 1 + PageSwapCache(page)) {
|
|
|
result = SCAN_PAGE_COUNT;
|
|
|
goto out_unmap;
|
|
|
}
|