* [PATCH] f2fs: enable fast symlink by utilizing inline data
@ 2015-03-19 5:23 Wanpeng Li
0 siblings, 0 replies; only message in thread
From: Wanpeng Li @ 2015-03-19 5:23 UTC (permalink / raw)
To: Jaegeuk Kim
Cc: Changman Lee, Chao Yu, linux-f2fs-devel, linux-fsdevel,
linux-kernel, Wanpeng Li
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>
---
fs/f2fs/inline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c
index d67bc0d..b7baad6 100644
--- a/fs/f2fs/inline.c
+++ b/fs/f2fs/inline.c
@@ -18,7 +18,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)
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-19 5:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 5:23 [PATCH] f2fs: enable fast symlink by utilizing inline data Wanpeng Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).