[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1457664538-2900-1-git-send-email-shawn.lin@rock-chips.com>
Date: Fri, 11 Mar 2016 10:48:58 +0800
From: Shawn Lin <shawn.lin@...k-chips.com>
To: Jaegeuk Kim <jaegeuk@...nel.org>
Cc: linux-kernel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net,
Shawn Lin <shawn.lin@...k-chips.com>
Subject: [PATCH 2/2] f2fs: remove checing inline data flag for f2fs_write_data_page
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@...k-chips.com>
---
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
Powered by blists - more mailing lists