aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-02-03 17:18:00 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:34:51 +0200
commit29e7249fde52d8fb90de65ce9186d172fdced11c (patch)
tree7a30761c36199500d15277021bac499fa1ce5b5d
parent6b70a1234d7b3e0db8ab557c0b193786357c2ab9 (diff)
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>
-rw-r--r--fs/f2fs/data.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 4c6a1472c..e1c8746fc 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1341,7 +1341,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;
@@ -1443,6 +1443,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
@@ -1532,7 +1538,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