commit | 545f7fdf6db866c26ac92346b35bc6489fb926d1 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | Wed Jul 16 15:29:21 2014 +0300 |
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | Sat Jul 19 09:55:19 2014 +0300 |
tree | f3445328ea40a14c6efb6db248247b6a8088e7f4 | |
parent | f1cb705accc70ac327de2108ecf07b300e03fc42 [diff] |
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: hujianyang <hujianyang@huawei.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
diff --git a/fs/ubifs/misc.h b/fs/ubifs/misc.h index ee7cb5e..81bbf79 100644 --- a/fs/ubifs/misc.h +++ b/fs/ubifs/misc.h
@@ -297,6 +297,7 @@ if (lnum > c->log_last) lnum = UBIFS_LOG_LNUM; + ubifs_assert(lnum != c->ltail_lnum); return lnum; }