diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-22 11:09:35 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-30 10:14:05 -0800 |
commit | b9d777b85ff1ff79a1173190317b25bebc404ab4 (patch) | |
tree | 4dd136b8c0423360babeae2ea7eebb5ac049a4da /fs/f2fs/inline.c | |
parent | 74fd8d9927ef08db30a85f131a124152aeba66c7 (diff) | |
download | linux-b9d777b85ff1ff79a1173190317b25bebc404ab4.tar.gz linux-b9d777b85ff1ff79a1173190317b25bebc404ab4.tar.bz2 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 'fs/f2fs/inline.c')
-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; |