summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inline.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-22 20:09:35 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 19:14:05 +0100
commitb9d777b85ff1ff79a1173190317b25bebc404ab4 (patch)
tree4dd136b8c0423360babeae2ea7eebb5ac049a4da /fs/f2fs/inline.c
parentf2fs: speed up shrinking extent tree entries (diff)
downloadlinux-b9d777b85ff1ff79a1173190317b25bebc404ab4.tar.xz
linux-b9d777b85ff1ff79a1173190317b25bebc404ab4.zip
f2fs: check inline_data flag at converting time
We can check inode's inline_data flag when calling to convert it. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/inline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index bda7126466c0..8090854dd29c 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -177,6 +177,9 @@ int f2fs_convert_inline_inode(struct inode *inode)
struct page *ipage, *page;
int err = 0;
+ if (!f2fs_has_inline_data(inode))
+ return 0;
+
page = grab_cache_page(inode->i_mapping, 0);
if (!page)
return -ENOMEM;