diff options
author | David Howells <dhowells@redhat.com> | 2006-08-29 14:05:58 -0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 14:31:20 -0400 |
commit | b398f6bff93a247d2a7099e92905374966e4558f (patch) | |
tree | 6cdd20fcb8764f8222f6cf1bacbd95eeeaaf3d56 /mm/migrate.c | |
parent | 0d67a46df0125e20d14f12dbd3646f1f1bf23e8c (diff) |
[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 <dhowells@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 20a8c2687b1e..7f50e3ff54cd 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -525,7 +525,7 @@ static int fallback_migrate_page(struct address_space *mapping, | |||
525 | * Buffers may be managed in a filesystem specific way. | 525 | * Buffers may be managed in a filesystem specific way. |
526 | * We must have no buffers or drop them. | 526 | * We must have no buffers or drop them. |
527 | */ | 527 | */ |
528 | if (page_has_buffers(page) && | 528 | if (PagePrivate(page) && |
529 | !try_to_release_page(page, GFP_KERNEL)) | 529 | !try_to_release_page(page, GFP_KERNEL)) |
530 | return -EAGAIN; | 530 | return -EAGAIN; |
531 | 531 | ||