diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-22 20:09:35 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-30 19:14:05 +0100 |
commit | b9d777b85ff1ff79a1173190317b25bebc404ab4 (patch) | |
tree | 4dd136b8c0423360babeae2ea7eebb5ac049a4da /fs/f2fs/inline.c | |
parent | f2fs: speed up shrinking extent tree entries (diff) | |
download | linux-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.c | 3 |
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; |