f2fs: fix error path handling in truncate_dnode()
Chao Yu
maintainerPATCH 1/1 f2fs: fix error path handling in truncate_dnode()
If truncate_node() fails in truncate_dnode(), it missed to call f2fs_put_page(), fix it.
Fixes 7735730d39d7 ("f2fs: fix to propagate error from __get_meta_page()")
Signed-off-by Chao Yu <[email protected]>
--- fs/f2fs/node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/f2fs/node.c +3 -1
@@ -943,8 +943,10 @@ static int truncate_dnode(struct dnode_of_data *dn) dn->ofs_in_node =0 ;f2fs_truncate_data_blocks (dn); err =truncate_node (dn); -if (err) +if (err) { +f2fs_put_page (page,1 );return err; + }return 1 ; }
Signature · 1 line
2.40.1
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 8 lines · On Thu, 29 Jun 2023 09:41:02 +0800 you wrote:
If
truncate_node()fails intruncate_dnode(), it missed to callf2fs_put_page(), fix it.Fixes 7735730d39d7 ("f2fs: fix to propagate error from __get_meta_page()")Signed-off-by Chao Yu <[email protected]>--- fs/f2fs/node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Here is the summary with links:
- [f2fs-dev] f2fs: fix error path handling in truncate_dnode()
https://git.kernel.org/jaegeuk/f2fs/c/0135c482fa97
You are awesome, thank you!
Signature · 10 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel