From: Chao Yu Date: Mon, 16 Feb 2015 08:19:22 +0000 (+0800) Subject: f2fs: use ->writepage in sync_meta_pages X-Git-Tag: v4.1-rc1~87^2~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=97dc3fd2cbbf6dac239333083a8a005bf50c96e8;p=karo-tx-linux.git f2fs: use ->writepage in sync_meta_pages 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 7f794b72b3b7..6faffce01869 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; }