Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755441AbbBPIUX (ORCPT ); Mon, 16 Feb 2015 03:20:23 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:14422 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754817AbbBPIUW (ORCPT ); Mon, 16 Feb 2015 03:20:22 -0500 X-AuditID: cbfee61b-f79d76d0000024d6-82-54e1a844c531 From: Chao Yu To: Jaegeuk Kim , Changman Lee Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] f2fs: use ->writepage in sync_meta_pages Date: Mon, 16 Feb 2015 16:19:22 +0800 Message-id: <006601d049c1$68710ee0$39532ca0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AdBJwRUQE5UzBVdMR0Kou/zIOolbHA== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsVy+t9jAV2XFQ9DDE5dU7C4tq+RyeLJ+lnM FpcWuVtc3jWHzYHFY9OqTjaP3Qs+M3n0bVnF6PF5k1wASxSXTUpqTmZZapG+XQJXxs7561gK XrNWnPyZ2cB4h6WLkYNDQsBE4tFHgy5GTiBTTOLCvfVsXYxcHEICixglFq7sZ4VwfjBKnHnw jxWkik1ARWJ5x38mEFtEwEti0v4TLCA2s4CHRGPHd7AaYQFbiQ3vdoPFWQRUJRqPL2MGsXkF LCXWPW1nh7AFJX5MvgfVqyWxfudxJghbXmLzmrfMEBcpSOw4+5oRYpeexPbOPmaIGnGJjUdu sUxgFJiFZNQsJKNmIRk1C0nLAkaWVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjBAf1Megfj qgaLQ4wCHIxKPLwfVB6GCLEmlhVX5h5ilOBgVhLhvdoKFOJNSaysSi3Kjy8qzUktPsQozcGi JM6rZN8WIiSQnliSmp2aWpBaBJNl4uCUamCcqr1/Divv7wlOHdfr/AX2MuZtDNr4fGrf1hm/ O3USu9dnLLki+9xPNGyaypnsvbeMrVf8XXlrwxkzSa0bM+u/zNjJ3r1LU5jVfO6GJuMVwgwc /nPPvnq0d8vlh2p7Fi69PffUVZcZE8uUGFRUs+aUnb++Yp2p06KSuZPZb7Euu378kf+xKTdj JimxFGckGmoxFxUnAgDCUSIDZAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 31 This patch uses ->writepage of meta mapping in sync_meta_pages instead of f2fs_write_meta_page, by this way, in its caller we can ignore any changes (e.g. changing name) of this registered function. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 7f794b7..6faffce 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -276,7 +276,7 @@ continue_unlock: if (!clear_page_dirty_for_io(page)) goto continue_unlock; - if (f2fs_write_meta_page(page, &wbc)) { + if (mapping->a_ops->writepage(page, &wbc)) { unlock_page(page); break; } -- 2.2.1 -- 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/