diff options
Diffstat (limited to 'mm/migrate.c')
| -rw-r--r-- | mm/migrate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 20a8c2687b1e..ba2453f9483d 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
| @@ -409,6 +409,7 @@ int migrate_page(struct address_space *mapping, | |||
| 409 | } | 409 | } |
| 410 | EXPORT_SYMBOL(migrate_page); | 410 | EXPORT_SYMBOL(migrate_page); |
| 411 | 411 | ||
| 412 | #ifdef CONFIG_BLOCK | ||
| 412 | /* | 413 | /* |
| 413 | * Migration function for pages with buffers. This function can only be used | 414 | * Migration function for pages with buffers. This function can only be used |
| 414 | * if the underlying filesystem guarantees that no other references to "page" | 415 | * if the underlying filesystem guarantees that no other references to "page" |
| @@ -466,6 +467,7 @@ int buffer_migrate_page(struct address_space *mapping, | |||
| 466 | return 0; | 467 | return 0; |
| 467 | } | 468 | } |
| 468 | EXPORT_SYMBOL(buffer_migrate_page); | 469 | EXPORT_SYMBOL(buffer_migrate_page); |
| 470 | #endif | ||
| 469 | 471 | ||
| 470 | /* | 472 | /* |
| 471 | * Writeback a page to clean the dirty state | 473 | * Writeback a page to clean the dirty state |
| @@ -525,7 +527,7 @@ static int fallback_migrate_page(struct address_space *mapping, | |||
| 525 | * Buffers may be managed in a filesystem specific way. | 527 | * Buffers may be managed in a filesystem specific way. |
| 526 | * We must have no buffers or drop them. | 528 | * We must have no buffers or drop them. |
| 527 | */ | 529 | */ |
| 528 | if (page_has_buffers(page) && | 530 | if (PagePrivate(page) && |
| 529 | !try_to_release_page(page, GFP_KERNEL)) | 531 | !try_to_release_page(page, GFP_KERNEL)) |
| 530 | return -EAGAIN; | 532 | return -EAGAIN; |
| 531 | 533 | ||
