Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355582 > unrolled thread

[PATCH 4/8] f2fs: remove redundant checking of inline data flag

Started byShawn Lin <shawn.lin@rock-chips.com>
First post2016-03-11 04:40 +0100
Last post2016-03-11 04:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4/8] f2fs: remove redundant checking of inline data flag Shawn Lin <shawn.lin@rock-chips.com> - 2016-03-11 04:40 +0100

#1355582 — [PATCH 4/8] f2fs: remove redundant checking of inline data flag

FromShawn Lin <shawn.lin@rock-chips.com>
Date2016-03-11 04:40 +0100
Subject[PATCH 4/8] f2fs: remove redundant checking of inline data flag
Message-ID<rbm5I-8y-13@gated-at.bofh.it>
Remove the f2fs_has_inline_data for f2fs_read_data_page,
and let f2fs_read_inline_data take over gatekeeper of
checking inline data flag.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

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

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 38c834e..d60d5f0 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1047,9 +1047,9 @@ static int f2fs_read_data_page(struct file *file, struct page *page)
 
 	trace_f2fs_readpage(page, DATA);
 
-	/* If the file has inline data, try to read it directly */
-	if (f2fs_has_inline_data(inode))
-		ret = f2fs_read_inline_data(inode, page);
+	/* Firstly, let's try to read inline data directly */
+	ret = f2fs_read_inline_data(inode, page);
+
 	if (ret == -EAGAIN)
 		ret = f2fs_mpage_readpages(page->mapping, NULL, page, 1);
 	return ret;
-- 
2.3.7

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web