Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 545f7fdf authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

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: default avatarhujianyang <hujianyang@huawei.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent f1cb705a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}