From: David Howells Date: Tue, 29 Aug 2006 18:05:58 +0000 (+0100) Subject: [PATCH] BLOCK: Stop fallback_migrate_page() from using page_has_buffers() [try #6] X-Git-Tag: v2.6.19-rc1~640^2~21 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b398f6bff93a247d2a7099e92905374966e4558f;p=linux-2.6 [PATCH] BLOCK: Stop fallback_migrate_page() from using page_has_buffers() [try #6] Stop fallback_migrate_page() from using page_has_buffers() since that might not be available. Use PagePrivate() instead since that's more general. Signed-Off-By: David Howells Signed-off-by: Jens Axboe --- diff --git a/mm/migrate.c b/mm/migrate.c index 20a8c2687b..7f50e3ff54 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -525,7 +525,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_buffers(page) && + if (PagePrivate(page) && !try_to_release_page(page, GFP_KERNEL)) return -EAGAIN;