diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-09-24 18:19:10 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-03 16:07:32 -0800 |
commit | 622f28ae9ba4fa89b4ff0f4a6cf75d153ea838ce (patch) | |
tree | b91404e9b6f9061fb0ab2b31cff1799bd71e7c52 /fs/f2fs/file.c | |
parent | 201a05be9628ae58efe7638e0c7ae3937ec85273 (diff) |
f2fs: enable inline dir handling
Add inline dir functions into normal dir ops' function to handle inline ops.
Besides, we enable inline dir mode when a new dir inode is created if
inline_data option is on.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 80d9a0482e7..d054e0ebfe2 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -314,7 +314,7 @@ static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) goto fail; /* handle inline data case */ - if (f2fs_has_inline_data(inode)) { + if (f2fs_has_inline_data(inode) || f2fs_has_inline_dentry(inode)) { if (whence == SEEK_HOLE) data_ofs = isize; goto found; |