[PATCH] BLOCK: Stop fallback_migrate_page() from using page_has_buffers() [try #6]
authorDavid Howells <dhowells@redhat.com>
Tue, 29 Aug 2006 18:05:58 +0000 (19:05 +0100)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Sat, 30 Sep 2006 18:31:20 +0000 (20:31 +0200)
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 <dhowells@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/migrate.c

index 20a8c2687b1efea5b7bb1ab23d6b9195a2e97453..7f50e3ff54cd35d3dc3baed922c39c29206d193a 100644 (file)
@@ -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;