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


Groups > linux.kernel > #1355583

[PATCH 6/8] f2fs: remove checing inline data flag for f2fs_fiemap

From Shawn Lin <shawn.lin@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH 6/8] f2fs: remove checing inline data flag for f2fs_fiemap
Date 2016-03-11 04:40 +0100
Message-ID <rbm5I-8y-15@gated-at.bofh.it> (permalink)
References <rbm5I-8y-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

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

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

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index d60d5f0..c88d79c 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -817,11 +817,9 @@ int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
 	if (ret)
 		return ret;
 
-	if (f2fs_has_inline_data(inode)) {
-		ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len);
-		if (ret != -EAGAIN)
-			return ret;
-	}
+	ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len);
+	if (ret != -EAGAIN)
+		return ret;
 
 	inode_lock(inode);
 
-- 
2.3.7

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 6/8] f2fs: remove checing inline data flag for f2fs_fiemap Shawn Lin <shawn.lin@rock-chips.com> - 2016-03-11 04:40 +0100

csiph-web