Unverified Commit 01f9633b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14085 ocfs2: uncache inode which has failed entering the group

parents f0c88450 dc1daeb3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -566,6 +566,8 @@ int ocfs2_group_add(struct inode *inode, struct ocfs2_new_group_input *input)
	ocfs2_commit_trans(osb, handle);

out_free_group_bh:
	if (ret < 0)
		ocfs2_remove_from_cache(INODE_CACHE(inode), group_bh);
	brelse(group_bh);

out_unlock: