login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
7
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
KOSAKI Motohiro <kosaki.motohiro@...>
To: Andrew Morton <akpm@...>
Cc: <kosaki.motohiro@...>, Rik van Riel <riel@...>, <linux-kernel@...>, <lee.schermerhorn@...>
Subject:
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
Date: Saturday, June 7, 2008 - 1:21 am
Hi
quoted text
> > +static void check_move_noreclaim_page(struct page *page, struct zone *zone) > > +{ > > + > > + ClearPageNoreclaim(page); /* for page_reclaimable() */ > > Confused. Didn't we just lose track of our NR_NORECLAIM accounting?
I think this code is right. this patch track it by below code. but comments adding is better?
quoted text
> > + if (page_reclaimable(page, NULL)) { > > + enum lru_list l = LRU_INACTIVE_ANON + page_file_cache(page); > > + __dec_zone_state(zone, NR_NORECLAIM); > > + list_move(&page->lru, &zone->list[l]); > > + __inc_zone_state(zone, NR_INACTIVE_ANON + l); > > + } else { > > + /* > > + * rotate noreclaim list > > + */ > > + SetPageNoreclaim(page); > > + list_move(&page->lru, &zone->list[LRU_NORECLAIM]); > > + } > > +}
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Rik van Riel
, (Fri Jun 6, 4:28 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Andrew Morton
, (Fri Jun 6, 9:05 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Rik van Riel
, (Tue Jun 10, 5:03 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Lee Schermerhorn
, (Tue Jun 10, 5:22 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Andrew Morton
, (Tue Jun 10, 5:49 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, KOSAKI Motohiro
, (Sat Jun 7, 1:21 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
-mm merge plans for 2.6.23
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
openbsd-misc
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Arjan van de Ven
Re: [GIT]: Networking
Auke Kok
[PATCH] e1000e: test MSI interrupts
git
:
Colocation donated by:
Who's online
There are currently
3 users
and
982 guests
online.
Online users
zeekec
ceramicchristma
ceramicchristma
Syndicate