linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Dolev Raviv" <draviv@codeaurora.org>
To: linux-mtd@lists.infradead.org
Subject: ubifs: assertion fails
Date: Mon, 24 Mar 2014 06:03:48 -0000	[thread overview]
Message-ID: <f08bbebef039d5bb28c2fcd3022165b0.squirrel@www.codeaurora.org> (raw)

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

             reply	other threads:[~2014-03-24  6:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24  6:03 Dolev Raviv [this message]
2014-03-31 10:14 ` ubifs: assertion fails 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f08bbebef039d5bb28c2fcd3022165b0.squirrel@www.codeaurora.org \
    --to=draviv@codeaurora.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).