forked from luck/tmp_suning_uos_patched
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: Chengguang Xu <cgxu519@mykernel.net> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
ae284d87ab
commit
788e96d1d3
|
@ -412,9 +412,8 @@ 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) || f2fs_has_inline_dentry(inode)) {
|
||||
if (whence == SEEK_HOLE)
|
||||
data_ofs = isize;
|
||||
if (f2fs_has_inline_data(inode) && whence == SEEK_HOLE) {
|
||||
data_ofs = isize;
|
||||
goto found;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user