Re: Export swapper_space

From: Andrew Morton
Date: Thu Jun 03 2004 - 12:15:25 EST


Russell King <rmk+lkml@xxxxxxxxxxxxxxxx> wrote:
>
> > Please not. This seems to be some cache-flushing magic on the stranger
> > architectures again :) Can you check how they're using it in the end
> > and hopefully fix it by uninlining something?
>
> extern struct address_space swapper_space;
> static inline struct address_space *page_mapping(struct page *page)
> {
> struct address_space *mapping = NULL;
>
> if (unlikely(PageSwapCache(page)))
> mapping = &swapper_space;
> else if (likely(!PageAnon(page)))
> mapping = page->mapping;
> return mapping;
> }

Christoph means "can arm uninline flush_dcache_page()"?

It looks like that would be the best approach - it's quite a large function.
-
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/