summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@linux.intel.com>2015-03-19 06:23:48 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-11 00:08:48 +0200
commit368a0e40b5aedb036de3d78333571c8689869490 (patch)
tree62219fe0f52a60b9b1219b0ea20cfef1604f7aef /fs/f2fs
parentf2fs: add some tracepoints to debug volatile and atomic writes (diff)
downloadlinux-368a0e40b5aedb036de3d78333571c8689869490.tar.xz
linux-368a0e40b5aedb036de3d78333571c8689869490.zip
f2fs: enable fast symlink by utilizing inline data
Fast symlink can utilize inline data flow to avoid using any i_addr region, since we need to handle many cases such as truncation, roll-forward recovery, and fsck/dump tools. Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/inline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index d3e0599ffab7..375d2c797f4c 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -21,7 +21,7 @@ bool f2fs_may_inline(struct inode *inode)
if (f2fs_is_atomic_file(inode))
return false;
- if (!S_ISREG(inode->i_mode))
+ if (!S_ISREG(inode->i_mode) && !S_ISLNK(inode->i_mode))
return false;
if (i_size_read(inode) > MAX_INLINE_DATA)