Skip to content

Commit 788e96d

Browse files
cgxu519Jaegeuk Kim
authored andcommitted
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>
1 parent ae284d8 commit 788e96d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/f2fs/file.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,8 @@ static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence)
412412
goto fail;
413413

414414
/* handle inline data case */
415-
if (f2fs_has_inline_data(inode) || f2fs_has_inline_dentry(inode)) {
416-
if (whence == SEEK_HOLE)
417-
data_ofs = isize;
415+
if (f2fs_has_inline_data(inode) && whence == SEEK_HOLE) {
416+
data_ofs = isize;
418417
goto found;
419418
}
420419

0 commit comments

Comments
 (0)