lkml.org 
[lkml]   [2002]   [Aug]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 29 Aug 2002 23:37:24 -0700
FromAndrew Morton <>
SubjectRe: page-flags.h pollution?
David Mosberger wrote:
> 
> In the 2.5.3x kernel, what's the point of defining pte_chain_lock()
> and pte_chain_unlock() in page-flags.h?  These two routines make it
> impossible to include page-flags.h on it's own, because they require
> "struct page" to be defined (and a forward declaration isn't
> sufficient either).  This can introduce rather annoying circular
> include-file dependencies.

It's a wart.  The now-abandoned hashed spinlocking patch moves
them into <linux/rmap-locking.h>.   We can do that anyway - only
two files need it.

Or maybe just put them in asm-generic/rmap.h.   I'll fix it up.
-
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/

\
 
 \ /
  Last update: 2005-03-22 12:28    [from the cache]
©2003-2008