linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ubifs: assertion fails
@ 2014-03-24  6:03 Dolev Raviv
  2014-03-31 10:14 ` Artem Bityutskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Dolev Raviv @ 2014-03-24  6:03 UTC (permalink / raw)
  To: linux-mtd

Hi all,

I’m doing my first steps learning ubifs and I’m trying to understand a
something that does not make much sense to me.

In fs/ubifs/shrinker.c, at shrink_tnc(), there is an assert condition that
shows up every once I a while (after stressing).
ubifs_assert(atomic_long_read(&c->clean_zn_cnt) >= 0);

In another place in the same file in the function ubifs_shrinker(), I
found the following comment:
/*
* Due to the way UBIFS updates the clean znode counter it may
* temporarily be negative.
*/

Could the assertion condition be wrong?
Can anyone share information on what are those times that the counter can
be negative?

Thanks,
Dolev
-- 
QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-29  7:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-24  6:03 ubifs: assertion fails Dolev Raviv
2014-03-31 10:14 ` Artem Bityutskiy
2014-04-01  5:52   ` Tanya Brokhman
2014-04-07 11:43     ` Artem Bityutskiy
2014-04-27 12:12       ` Dolev Raviv
2014-05-29  1:55         ` hujianyang
2014-05-29  7:24           ` Dolev Raviv
2014-05-29  7:42           ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).