f2fs: remove duplicated dquot_initialize and fix error handling
PATCH 1/1 f2fs: remove duplicated dquot_initialize and fix error handling
This patch removes duplicated dquot_initialize in recover_orphan_inode(), and fix the error handling if dquot_initialize fails.
Signed-off-by Sheng Yong <[email protected]>
--- fs/f2fs/checkpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
fs/f2fs/checkpoint.c +3 -2
@@ -589,10 +589,11 @@ static int recover_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino) } err =dquot_initialize (inode); -if (err) +if (err) { +iput (inode); goto err_out; + } -dquot_initialize (inode);clear_nlink (inode);/* truncate all the data during iput */
Signature · 6 lines
2.14.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 4 lines · Sheng Yong
This patch removes duplicated
dquot_initializeinrecover_orphan_inode(), and fix the error handling ifdquot_initializefails.Signed-off-by Sheng Yong <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot