linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kosaki.motohiro@jp.fujitsu.com,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Lee Schermerhorn <Lee.Schermerhorn@hp.com>,
	linux-mm@kvack.org, Rik van Riel <riel@redhat.com>,
	Nick Piggin <npiggin@suse.de>
Subject: Re: [mmotm][PATCH 5/9] mlock-mlocked-pages-are-unevictable.patch
Date: Thu, 24 Jul 2008 14:45:52 +0900	[thread overview]
Message-ID: <20080724143947.8691.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <20080723203704.BFBD.KOSAKI.MOTOHIRO@jp.fujitsu.com>

> > > unevictable-lru-infrastructure-putback_lru_page-rework.patch and unevictable-lru-infrastructure-kill-unnecessary-lock_page.patch
> > > makes following patch failure.
> > 
> > This patch (or one nearby) breaks nommu:
> > 
> > mm/built-in.o(.text+0x1bb70): In function `truncate_complete_page':
> > : undefined reference to `__clear_page_mlock'
> > mm/built-in.o(.text+0x1ca90): In function `__invalidate_mapping_pages':
> > : undefined reference to `__clear_page_mlock'
> > mm/built-in.o(.text+0x1d29c): In function `invalidate_inode_pages2_range':
> > : undefined reference to `__clear_page_mlock'
> 
> sorry, I have very limited code viewing environment on this week because OLS.
> Lee-san, Could you review code today?
> 
> I guess __clear_page_mlock() written in wrong ifdef..


Andrew, maybe following patch fixes build error.
Please apply.

------------------------------------
Against:       mmotm Jul 23
Applies after: revert-to-unevictable-lru-infrastructure-kconfig-fixpatch.patch

Current unevictable infrastructure code depend on MMU.
Then, nommu build cause following error.

mm/built-in.o(.text+0x1bb70): In function `truncate_complete_page':
: undefined reference to `__clear_page_mlock'
mm/built-in.o(.text+0x1ca90): In function `__invalidate_mapping_pages':
: undefined reference to `__clear_page_mlock'
mm/built-in.o(.text+0x1d29c): In function `invalidate_inode_pages2_range':
: undefined reference to `__clear_page_mlock'


So, adding dependency to Kconfig is better.


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>

Index: linux-2.6.26-mmotm-0723/mm/Kconfig
===================================================================
--- linux-2.6.26-mmotm-0723.orig/mm/Kconfig	2008-07-25 11:47:13.000000000 +0900
+++ linux-2.6.26-mmotm-0723/mm/Kconfig	2008-07-25 11:51:36.000000000 +0900
@@ -212,6 +212,7 @@
 config UNEVICTABLE_LRU
 	bool "Add LRU list to track non-evictable pages"
 	default y
+	depends on MMU
 	help
 	  Keeps unevictable pages off of the active and inactive pageout
 	  lists, so kswapd will not waste CPU time or have its balancing



--
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:[~2008-07-24  5:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 19:06 [mmotm][PATCH 0/9] putback_lru_page() rework v5 KOSAKI Motohiro
2008-07-14 19:09 ` [mmotm][PATCH 1/9] putback_lru_page()/unevictable page handling rework KOSAKI Motohiro
2008-07-14 19:10 ` [mmotm][PATCH 2/9] kill unnecessary lock_page() in vmscan.c KOSAKI Motohiro
2008-07-14 19:12 ` [mmotm][PATCH 3/9] revert migration change of unevictable lru infrastructure KOSAKI Motohiro
2008-07-14 19:13 ` [mmotm][PATCH 4/9] revert shm change of shm_locked pages are unevictable patch KOSAKI Motohiro
2008-07-14 19:19 ` [mmotm][PATCH 5/9] mlock-mlocked-pages-are-unevictable.patch KOSAKI Motohiro
2008-07-23  9:07   ` Andrew Morton
2008-07-23 11:55     ` KOSAKI Motohiro
2008-07-24  5:45       ` KOSAKI Motohiro [this message]
2008-07-14 19:21 ` [mmotm][PATCH 6/9] restore patch failure hunk of mlock-mlocked-pages-are-unevictable.patch KOSAKI Motohiro
2008-07-14 19:24 ` [mmotm][PATCH 7/9] fix truncate race and sevaral comments KOSAKI Motohiro
2008-07-14 19:26 ` [mmotm][PATCH 8/9] vmstat-unevictable-and-mlocked-pages-vm-events.patch KOSAKI Motohiro
2008-07-14 19:27 ` [mmotm][PATCH 9/9] restore patch failure of vmstat-unevictable-and-mlocked-pages-vm-events.patch KOSAKI Motohiro

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=20080724143947.8691.KOSAKI.MOTOHIRO@jp.fujitsu.com \
    --to=kosaki.motohiro@jp.fujitsu.com \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=akpm@linux-foundation.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=npiggin@suse.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox