login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
28
Re: [PATCH 1/2] mm: Avoid putting a bad page back on the LRU
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Christoph Lameter <clameter@...>
To: Russ Anderson <rja@...>
Cc: <linux-kernel@...>, <linux-ia64@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Tony Luck <tony.luck@...>
Subject:
Re: [PATCH 1/2] mm: Avoid putting a bad page back on the LRU
Date: Monday, April 28, 2008 - 3:39 pm
On Mon, 28 Apr 2008, Russ Anderson wrote:
quoted text
> +#if (BITS_PER_LONG > 32) > +#define PageMemError(page) test_bit(PG_memerror, &(page)->flags) > +#define SetPageMemError(page) set_bit(PG_memerror, &(page)->flags) > +#define ClearPageMemError(page) clear_bit(PG_memerror, &(page)->flags) > +#define PAGE_FLAGS (1 << PG_lru | 1 << PG_private | 1 << PG_locked | \ > + 1 << PG_buddy | 1 << PG_writeback | \ > + 1 << PG_slab | 1 << PG_swapcache | 1 << PG_active | \ > + 1UL << PG_memerror) > +#else > +#define PageMemError(page) 0 > +#define PAGE_FLAGS (1 << PG_lru | 1 << PG_private | 1 << PG_locked | \ > + 1 << PG_buddy | 1 << PG_writeback | \ > + 1 << PG_slab | 1 << PG_swapcache | 1 << PG_active) > +#endif > +#define PAGE_FLAGS_RECLAIM (PAGE_FLAGS | 1 << PG_reclaim | 1 << PG_dirty) > +#define PAGE_FLAGS_RESERVE (PAGE_FLAGS | 1 << PG_reserved) > +#define PAGE_FLAGS_DIRTY (PAGE_FLAGS | 1 << PG_reserved | 1 << PG_dirty) > +
All the PAGE_FLAGS_xx things could be in a separate cleanup patch. Also note that the way page flags are defined may change soon. --
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 1/2] mm: Avoid putting a bad page back on the LRU
, Russ Anderson
, (Mon Apr 28, 3:23 pm)
Re: [PATCH 1/2] mm: Avoid putting a bad page back on the LRU
, Andrew Morton
, (Tue Apr 29, 5:33 pm)
Re: [PATCH 1/2] mm: Avoid putting a bad page back on the LRU
, Arjan van de Ven
, (Tue Apr 29, 10:17 am)
Re: [PATCH 1/2] mm: Avoid putting a bad page back on the LRU
, Russ Anderson
, (Tue Apr 29, 5:47 pm)
Re: [PATCH 1/2] mm: Avoid putting a bad page back on the LRU
, Christoph Lameter
, (Mon Apr 28, 3:39 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Hiten Pandya
Re: up? (emacs docbook xml ide)
Andy Whitcroft
clam
Kamalesh Babulal
Re: 2.6.23-rc6-mm1
git
:
linux-netdev
:
Stephen Hemminger
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
7 users
and
796 guests
online.
Online users
sequestrationhe
playgolfucm
broce982
sontips
alaskacruisexc
c4drenderhuaau
bestantiviruss
Syndicate