All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Good Oleg <olecom.gnu-linux@mail.ru>
Cc: Andrew Morton <akpm@osdl.org>, Rik van Riel <riel@redhat.com>,
	marcel cotta <mc123@mail.ru>, <linux-kernel@vger.kernel.org>
Subject: Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
Date: Fri, 6 Feb 2004 21:36:15 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0402062124120.2552-100000@localhost.localdomain> (raw)
In-Reply-To: <E1ApAqS-0000nh-00.olecom-gnu-linux-mail-ru@f22.mail.ru>

This should fix your swapfile.c:806.
Looks like mail.ru XFS users get more jumbled block allocations.
I've other fixes and tidyups hereabouts, but they can wait.

Hugh

--- 2.6.2/mm/swapfile.c	2004-02-04 02:45:17.000000000 +0000
+++ linux/mm/swapfile.c	2004-02-06 21:21:08.011274104 +0000
@@ -841,7 +841,8 @@
 	lh = sis->extent_list.next;	/* The highest-addressed block */
 	while (lh != &sis->extent_list) {
 		se = list_entry(lh, struct swap_extent, list);
-		if (se->start_block + se->nr_pages == start_block) {
+		if (se->start_block + se->nr_pages == start_block &&
+		    se->start_page  + se->nr_pages == start_page) {
 			/* Merge it */
 			se->nr_pages += nr_pages;
 			return 0;


  reply	other threads:[~2004-02-06 21:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 18:36 [BUG]: kernel BUG at mm/swapfile.c:806! (2.6) "Good Oleg" 
2004-02-06 21:36 ` Hugh Dickins [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-02-06  1:29 "Good Oleg" 
2004-02-06  1:57 ` Andrew Morton
2004-02-06  2:40 ` Rik van Riel
2004-02-06  7:21 ` Hugh Dickins
2004-02-06 15:57   ` marcel cotta

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=Pine.LNX.4.44.0402062124120.2552-100000@localhost.localdomain \
    --to=hugh@veritas.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mc123@mail.ru \
    --cc=olecom.gnu-linux@mail.ru \
    --cc=riel@redhat.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.