[PATCH 2/2] f2fs: remove checing inline data flag for f2fs_write_data_page

From: Shawn Lin
Date: Thu Mar 10 2016 - 21:57:14 EST


Remove the f2fs_has_inline_data for f2fs_write_data_page,
and let f2fs_write_inline_data take over gatekeeper of
checking inline data flag.

Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
---

fs/f2fs/data.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index e5c762b..38c834e 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1192,8 +1192,7 @@ write:

err = -EAGAIN;
f2fs_lock_op(sbi);
- if (f2fs_has_inline_data(inode))
- err = f2fs_write_inline_data(inode, page);
+ err = f2fs_write_inline_data(inode, page);
if (err == -EAGAIN)
err = do_write_data_page(&fio);
f2fs_unlock_op(sbi);
--
2.3.7