Skip to contentSkip to conversation

f2fs: file: drop useless initializer in expand_inode_data()

PATCH Yangtao Li 3 participants 5 messages Dec 21, 2022

lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

Hi Sergey,

Quoted 4 lines

In expand_inode_data(), the 'new_size' local variable is initialized to the result of i_size_read(), however this value isn't ever used, so we can drop this initializer...

Quoted 8 lines

Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

---
This patch is against the 'dev' branch of Jaegeuk Kim's F2FS repo... Reposting with ISP RAS mailing lists CC'ed now...

Why do you repeatedly send a patch that cannot be applied, and this does not have a CC on linux-kernel.vger.kernel.org.

Otherwise, code modification looks good to me.

Thx,
Yangtao

#1 lore raw

Hi all,

Quoted 9 lines · Yangtao Li

Hi Sergey,

Quoted 7 lines

In expand_inode_data(), the 'new_size' local variable is initialized to the result of i_size_read(), however this value isn't ever used, so we can drop this initializer...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Quoted 7 lines
Quoted 5 lines

---
This patch is against the 'dev' branch of Jaegeuk Kim's F2FS repo... Reposting with ISP RAS mailing lists CC'ed now...

Why do you repeatedly send a patch that cannot be applied, and this does not have

The format is weired, but still I can apply this into my git repo...

Quoted 1 line

a CC on linux-kernel.vger.kernel.org.

I guess linux-kernel.vger.kernel.org is not mandatory, feel free to Cc this mailing list.

Thanks,

Quoted 5 lines

Otherwise, code modification looks good to me.

Thx,
Yangtao

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

#2 lore raw

On 12/21/22 3:34 PM, Chao Yu wrote:

[...]

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

In expand_inode_data(), the 'new_size' local variable is initialized to the result of i_size_read(), however this value isn't ever used,  so we can drop this initializer...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

---
This patch is against the 'dev' branch of Jaegeuk Kim's F2FS repo... Reposting with ISP RAS mailing lists CC'ed now...

Why do you repeatedly send a patch that cannot be applied, and this does not have

The format is weired, but still I can apply this into my git repo...

This is just the quilt's format. I normally use quilt for development
and then import my patch seies to git in order to prepare it for posting. If I post a single patch, I just skip the git step and post with my MTA...

[...]

Quoted 2 lines
Quoted 2 lines

Thx,
Yangtao

MBR, Sergey

#3 lore raw
In reply to Yangtao Li

Hello!

Quoted 7 lines · Yangtao Li
Quoted 7 lines

In expand_inode_data(), the 'new_size' local variable is initialized to the result of i_size_read(), however this value isn't ever used, so we can drop this initializer...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Quoted 7 lines
Quoted 5 lines

---
This patch is against the 'dev' branch of Jaegeuk Kim's F2FS repo... Reposting with ISP RAS mailing lists CC'ed now...

Why do you repeatedly send a patch that cannot be applied,

Why (it does apply to your 'dev' branch)? Because of the merge window?

Quoted 1 line

and this does not have a CC on linux-kernel.vger.kernel.org.

I normnally avoid CCing LKML as my patches are not generally interesting
to the wide public (I think)...

Quoted 1 line

Otherwise, code modification looks good to me.

Thanx!

Quoted 2 lines

Thx,
Yangtao

MBR, Sergey

#4 lore raw
Quoted 7 lines · Sergey Shtylyov
Quoted 7 lines
Quoted 7 lines

In expand_inode_data(), the 'new_size' local variable is initialized to the result of i_size_read(), however this value isn't ever used, so we can drop this initializer...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

---
This patch is against the 'dev' branch of Jaegeuk Kim's F2FS repo... Reposting with ISP RAS mailing lists CC'ed now...

Why do you repeatedly send a patch

Sorry, 1st time I forgot to do the internal CC dance -- CCing couple SVACE
(static analyzer) specific mailing lists...

[...]

Quoted 2 lines
Quoted 2 lines

Thx,
Yangtao

MBR, Sergey