aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inline.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-12-23 17:51:35 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-30 10:14:10 -0800
commitfba48a8b14f405afc5c80a93ed64a12607dd52c4 (patch)
tree0ad50ea3dfbba5b514c2828850ba544ccb9082ca /fs/f2fs/inline.c
parentf2fs: report error of do_checkpoint (diff)
downloadlinux-dev-fba48a8b14f405afc5c80a93ed64a12607dd52c4.tar.xz
linux-dev-fba48a8b14f405afc5c80a93ed64a12607dd52c4.zip
f2fs: don't convert inline inode when inline_data option is disable
If inline_data option is disable, when truncating an inline inode with size which is not exceed maxinum inline size, we should not convert inline inode to regular one to avoid the overhead of synchronizing conversion. Signed-off-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.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index c24e5d93720d..5ffbd169b719 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -16,9 +16,6 @@
bool f2fs_may_inline_data(struct inode *inode)
{
- if (!test_opt(F2FS_I_SB(inode), INLINE_DATA))
- return false;
-
if (f2fs_is_atomic_file(inode))
return false;