Skip to content

Instantly share code, notes, and snippets.

@kiryl
Created March 16, 2016 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiryl/efd0e0725453a62943b2 to your computer and use it in GitHub Desktop.
Save kiryl/efd0e0725453a62943b2 to your computer and use it in GitHub Desktop.
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