f2fs: call internal __write_data_page directly

This patch introduces __write_data_page to call it by f2fs_write_cache_pages
directly..

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim
2017-02-03 17:18:00 -08:00
parent ed0eee6788
commit 33f44e9f9c

View File

@@ -1343,7 +1343,7 @@ out_writepage:
return err;
}
static int f2fs_write_data_page(struct page *page,
static int __write_data_page(struct page *page,
struct writeback_control *wbc)
{
struct inode *inode = page->mapping->host;
@@ -1445,6 +1445,12 @@ redirty_out:
return err;
}
static int f2fs_write_data_page(struct page *page,
struct writeback_control *wbc)
{
return __write_data_page(page, wbc);
}
/*
* This function was copied from write_cche_pages from mm/page-writeback.c.
* The major change is making write step of cold data page separately from
@@ -1534,7 +1540,7 @@ continue_unlock:
if (!clear_page_dirty_for_io(page))
goto continue_unlock;
ret = mapping->a_ops->writepage(page, wbc);
ret = __write_data_page(page, wbc);
if (unlikely(ret)) {
/*
* keep nr_to_write, since vfs uses this to