提交 545f7fdf 编写于 作者: A Artem Bityutskiy

UBIFS: add a log overlap assertion

Add an assertion which checkes that the head of the log never overlaps with the
tail of the log.
Suggested-by: Nhujianyang <hujianyang@huawei.com>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 f1cb705a
......@@ -297,6 +297,7 @@ static inline int ubifs_next_log_lnum(const struct ubifs_info *c, int lnum)
if (lnum > c->log_last)
lnum = UBIFS_LOG_LNUM;
ubifs_assert(lnum != c->ltail_lnum);
return lnum;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册