login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KOSAKI Motohiro
Subject:
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
Date: Friday, June 6, 2008 - 10:21 pm
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, 1:28 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Andrew Morton
, (Fri Jun 6, 6:05 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, KOSAKI Motohiro
, (Fri Jun 6, 10:21 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Rik van Riel
, (Tue Jun 10, 2:03 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Lee Schermerhorn
, (Tue Jun 10, 2:22 pm)
Re: [PATCH -mm 16/25] SHM_LOCKED pages are non-reclaimable
, Andrew Morton
, (Tue Jun 10, 2:49 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
David Miller
Re: 'global' rq->clock
Vivek Goyal
Re: perf hw in kexeced kernel broken in tip
git
:
Len Brown
Re: fatal: unable to create '.git/index': File exists
Oliver Hoffmann
git init --bare versus git --bare init
Sam Vilain
Re: RFC: Flat directory for notes, or fan-out? Both!
Erik Mouw
Re: cpio command not found
Andy Parkins
Re: cloning/pulling hooks
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Paulius Zaleckas
Re: [RFC] Patch to option HSO driver to the kernel
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
checkpatch: add check for too short Kconfig descriptions
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
Gilles Chehade
Re: Longest Uptime?
Colocation donated by:
Syndicate