Re: [PATCH] export swapper_space

From: Andrew Morton
Date: Sun May 23 2004 - 18:07:30 EST


James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote:
>
> This is now used as part of the page_mapping() macro. However, certain
> filesystems, such as ext3, make use of this. If it's not exported, they
> can't be compiled as modules.

I'd be a bit reluctant to do this. filesystems actually have no need for
page_mapping() - page->mapping is always correct in that context and
page_mapping() has additional overhead. So if poss we should avoid this
export so as to force filesystems to avoid page_mapping().

parisc broke because its flush_dcache_page() is inlined, and it uses
page_mapping(). I'd suggest that parisc and arm uninline that function -
it's quite large anyway.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/