mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
[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>
This commit is contained in:
parent
0d67a46df0
commit
b398f6bff9
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ static int fallback_migrate_page(struct address_space *mapping,
|
||||||
* Buffers may be managed in a filesystem specific way.
|
* Buffers may be managed in a filesystem specific way.
|
||||||
* We must have no buffers or drop them.
|
* We must have no buffers or drop them.
|
||||||
*/
|
*/
|
||||||
if (page_has_buffers(page) &&
|
if (PagePrivate(page) &&
|
||||||
!try_to_release_page(page, GFP_KERNEL))
|
!try_to_release_page(page, GFP_KERNEL))
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue