From: Alexander Zarochentsev <zam@namesys.com>
To: reiserfs-list@namesys.com, Andrew James Wade <andrew.j.wade@gmail.com>
Subject: Re: [nikita-3002]: assertion failed: carry_level_invariant(doing, CARRY_DOING)
Date: Thu, 3 Aug 2006 19:28:23 +0400 [thread overview]
Message-ID: <200608031928.25155.zam@namesys.com> (raw)
In-Reply-To: <200608030851.30457.ajwade@cpe001346162bf9-cm0011ae8cd564.cpe.net.cable.rogers.com>
Hello,
> I've just had some warnings show up in my kernel log. I don't know if
> they're related to the troubles I've been having (I fscked after the
> last panic).
please apply the following patch:
re-add to reiser4_releasepage mistakenly removed page_count check.
extra page reference is used to protect page from detaching from the
jnode.
Signed-off-by: Alexander Zarochentsev <zam@namesys.com>
---
fs/reiser4/as_ops.c | 5 +++++
1 file changed, 5 insertions(+)
Index: linux-2.6-git/fs/reiser4/as_ops.c
===================================================================
--- linux-2.6-git.orig/fs/reiser4/as_ops.c
+++ linux-2.6-git/fs/reiser4/as_ops.c
@@ -350,6 +350,11 @@ int reiser4_releasepage(struct page *pag
if (PageDirty(page))
return 0;
+ /* extra page reference is used by reiser4 to protect
+ * jnode<->page link from this ->releasepage(). */
+ if (page_count(page) > 3)
+ return 0;
+
/* releasable() needs jnode lock, because it looks at the jnode fields
* and we need jload_lock here to avoid races with jload(). */
spin_lock_jnode(node);
next prev parent reply other threads:[~2006-08-03 15:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-02 21:49 [nikita-3002]: assertion failed: carry_level_invariant(doing, CARRY_DOING) Andrew James Wade
2006-08-03 12:51 ` Andrew James Wade
2006-08-03 15:28 ` Alexander Zarochentsev [this message]
2006-08-04 0:53 ` Andrew James Wade
2006-08-07 2:24 ` Andrew James Wade
2006-08-10 17:55 ` Andrew James Wade
2006-08-11 9:15 ` Vladimir V. Saveliev
2006-08-11 18:37 ` Andrew James Wade
2006-08-16 13:32 ` Benjamin Vander Jagt
2006-08-17 20:34 ` Andrew James Wade
2006-08-19 1:39 ` Benjamin Vander Jagt
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=200608031928.25155.zam@namesys.com \
--to=zam@namesys.com \
--cc=andrew.j.wade@gmail.com \
--cc=reiserfs-list@namesys.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.