f2fs: use ->writepage in sync_meta_pages
authorChao Yu <chao2.yu@samsung.com>
Mon, 16 Feb 2015 08:19:22 +0000 (16:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 3 Mar 2015 17:58:44 +0000 (09:58 -0800)
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 <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c

index 7f794b7..6faffce 100644 (file)
@@ -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;
                        }