提交 e3408ad4 编写于 作者: A Artem Bityutskiy

UBIFS: fix assertion warning

This patch fixes the following false assertion warning:

UBIFS assert failed in data_nodes_cmp at 130 (pid 15107)

The assertion was wrong because it did not take into account that the
node can be an xentry.
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 efe1881f
......@@ -178,7 +178,8 @@ int nondata_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
if (typeb == UBIFS_INO_KEY)
return 1;
ubifs_assert(typea == UBIFS_DENT_KEY && typeb == UBIFS_DENT_KEY);
ubifs_assert(typea == UBIFS_DENT_KEY || typea == UBIFS_XENT_KEY);
ubifs_assert(typeb == UBIFS_DENT_KEY || typeb == UBIFS_XENT_KEY);
inuma = key_inum(c, &sa->key);
inumb = key_inum(c, &sb->key);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册