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 <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
937f4ef79e
commit
23d00b0287
1 changed files with 3 additions and 2 deletions
|
@ -593,10 +593,11 @@ static int recover_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = dquot_initialize(inode);
|
err = dquot_initialize(inode);
|
||||||
if (err)
|
if (err) {
|
||||||
|
iput(inode);
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
}
|
||||||
|
|
||||||
dquot_initialize(inode);
|
|
||||||
clear_nlink(inode);
|
clear_nlink(inode);
|
||||||
|
|
||||||
/* truncate all the data during iput */
|
/* truncate all the data during iput */
|
||||||
|
|
Loading…
Add table
Reference in a new issue