Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7be5b04 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: fix to avoid tagging SBI_QUOTA_NEED_REPAIR incorrectly



On a quota disabled image, with fault injection, SBI_QUOTA_NEED_REPAIR
will be set incorrectly in error path of f2fs_evict_inode(), fix it.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d7895f79
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -695,6 +695,7 @@ void f2fs_evict_inode(struct inode *inode)


	if (err) {
	if (err) {
		f2fs_update_inode_page(inode);
		f2fs_update_inode_page(inode);
		if (dquot_initialize_needed(inode))
			set_sbi_flag(sbi, SBI_QUOTA_NEED_REPAIR);
			set_sbi_flag(sbi, SBI_QUOTA_NEED_REPAIR);
	}
	}
	sb_end_intwrite(inode->i_sb);
	sb_end_intwrite(inode->i_sb);