lkml.org 
[lkml]   [2004]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] [RFC] move 'struct page' into its own header
From
Date
On Thu, 2004-12-16 at 14:25, Christoph Hellwig wrote:
> On Thu, Dec 16, 2004 at 02:04:15PM -0800, Dave Hansen wrote:
> > So, put 'struct page' into structpage.h, along with a nasty comment
> > telling everyone to keep their grubby mitts out of the file.

> What about calling it page.h? structfoo.h sounds like a really strange
> name.

The only reason I didn't do that is that there is already an
asm/page.h. But, linux/page.h would be a fine name, too.

> And while you're at it page-flags.h should probably be merged into
> it.

The only tricky part might be page-flags.h includes asm/pgtable.h, which
(on i386) includes linux/slab.h, which includes asm/page.h. This might
somewhat restrict the number of places that the new header can be
included. As it stands, it can be included (and get you a full
definition of struct page) almost anywhere.

But, I'm not quite sure why page-flags.h even needs asm/pgtable.h. I
just took it out in i386, and it still compiles just fine. Maybe it is
needed for another architecture.

-- Dave

-
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 14:08    [W:0.052 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site