Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422710AbWHXVdf (ORCPT ); Thu, 24 Aug 2006 17:33:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422686AbWHXVdG (ORCPT ); Thu, 24 Aug 2006 17:33:06 -0400 Received: from mx1.redhat.com ([66.187.233.31]:2788 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S1422689AbWHXVdA (ORCPT ); Thu, 24 Aug 2006 17:33:00 -0400 From: David Howells Subject: [PATCH 03/17] BLOCK: Stop fallback_migrate_page() from using page_has_buffers() [try #2] Date: Thu, 24 Aug 2006 22:32:58 +0100 To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dhowells@redhat.com Message-Id: <20060824213258.21323.94502.stgit@warthog.cambridge.redhat.com> In-Reply-To: <20060824213252.21323.18226.stgit@warthog.cambridge.redhat.com> References: <20060824213252.21323.18226.stgit@warthog.cambridge.redhat.com> Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit User-Agent: StGIT/0.10 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 29 From: David Howells 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 --- mm/migrate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 3f1e0c2..0227163 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -525,7 +525,7 @@ static int fallback_migrate_page(struct * 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/