Created
March 16, 2016 22:36
-
-
Save kiryl/efd0e0725453a62943b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mm/migrate.c b/mm/migrate.c | |
index 5c9cd90334ea..2e4fa4716de5 100644 | |
--- a/mm/migrate.c | |
+++ b/mm/migrate.c | |
@@ -733,7 +733,7 @@ static int fallback_migrate_page(struct address_space *mapping, | |
* Buffers may be managed in a filesystem specific way. | |
* We must have no buffers or drop them. | |
*/ | |
- if (page_has_private(page) && | |
+ if ((PagePrivate(page) || page_has_private(page)) && | |
!try_to_release_page(page, GFP_KERNEL)) | |
return -EAGAIN; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment