From: <vik@chelnydom.ru>
To: linux-mm@kvack.org
Subject: [PATCH] mm: include/linux/mm.h page_mapping() bug of swapcache case
Date: Sun, 18 Nov 2012 02:09:34 +0400 [thread overview]
Message-ID: <636271353190174@web10g.yandex.ru> (raw)
I run linux swap less and xwindows become not respond sometime. The bug is share swapper_space over all mappings of memory.
Also the dmesg show several lines which is hidden before. Test of 3.0.51 fail near the end of kernel compilation. I run 3.0.50
successly a hours.
*** linux-3.0.50.a/include/linux/mm.h 2012-10-31 20:51:59.000000000 +0400
--- linux-3.0.50.b/include/linux/mm.h 2012-11-17 19:44:56.864762720 +0400
***************
*** 787,793 ****
struct address_space *mapping = page->mapping;
VM_BUG_ON(PageSlab(page));
! if (unlikely(PageSwapCache(page)))
mapping = &swapper_space;
else if ((unsigned long)mapping & PAGE_MAPPING_ANON)
mapping = NULL;
--- 787,793 ----
struct address_space *mapping = page->mapping;
VM_BUG_ON(PageSlab(page));
! if (likely(PageSwapCache(page)))
mapping = &swapper_space;
else if ((unsigned long)mapping & PAGE_MAPPING_ANON)
mapping = NULL;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2012-11-17 22:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=636271353190174@web10g.yandex.ru \
--to=vik@chelnydom.ru \
--cc=linux-mm@kvack.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