Skip to content

Commit

Permalink
[PATCH] BLOCK: Stop fallback_migrate_page() from using page_has_buffe…
Browse files Browse the repository at this point in the history
…rs() [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 <dhowells@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
dhowells authored and Jens Axboe committed Sep 30, 2006
1 parent 0d67a46 commit b398f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b398f6b

Please sign in to comment.