Commit 788e96d1 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jaegeuk Kim

f2fs: code cleanup by removing unnecessary check

f2fs_seek_block() is only used for regular file,
so don't have to check inline dentry in it.
Signed-off-by: default avatarChengguang Xu <cgxu519@mykernel.net>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent ae284d87
...@@ -412,9 +412,8 @@ static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) ...@@ -412,9 +412,8 @@ static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence)
goto fail; goto fail;
/* handle inline data case */ /* handle inline data case */
if (f2fs_has_inline_data(inode) || f2fs_has_inline_dentry(inode)) { if (f2fs_has_inline_data(inode) && whence == SEEK_HOLE) {
if (whence == SEEK_HOLE) data_ofs = isize;
data_ofs = isize;
goto found; goto found;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment