]> Git Repo - linux.git/commitdiff
f2fs: code cleanup by removing unnecessary check
authorChengguang Xu <[email protected]>
Mon, 12 Oct 2020 22:49:21 +0000 (06:49 +0800)
committerJaegeuk Kim <[email protected]>
Wed, 14 Oct 2020 20:23:41 +0000 (13:23 -0700)
f2fs_seek_block() is only used for regular file,
so don't have to check inline dentry in it.

Signed-off-by: Chengguang Xu <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
fs/f2fs/file.c

index 7ceb6e30fc8c2584ab1f85b708a3e16337cde7b5..ee861c6d9ff026c3313e96f388d34c8cf74e5683 100644 (file)
@@ -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;
        }
 
This page took 0.062205 seconds and 4 git commands to generate.