diff options
| author | Chao Yu <chao2.yu@samsung.com> | 2015-12-23 17:51:35 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:39 +0200 |
| commit | 624783390e36a2a5e7b9ec8465f9e0933f687347 (patch) | |
| tree | f8d306cb4d72711d7e02369689edd9c3ec9f0c49 /fs/f2fs/inline.c | |
| parent | 0949cf5fe4cc3672ef4b970922d6be6ad56febf4 (diff) | |
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.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 30ff26955..6a77d7984 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; |
