UBIFS: Add log overlap assertions
authorhujianyang <hujianyang@huawei.com>
Wed, 30 Jul 2014 02:37:53 +0000 (10:37 +0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 31 Jul 2014 12:52:51 +0000 (15:52 +0300)
We use a circle area to record the log nodes in ubifs. This log area
should not be overlapped. But after researching the code, I found
some conditions may lead log head wraps log ltail. Although we've
fixed the problems discovered, there may be some other issues still
left.

This patch adds assertions where lhead changes to next leb to make
sure ltail is not wrapped.

Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

No differences found