Skip to content

Commit

Permalink
sparc64: Fix D-cache flushing on swapin from SW devices.
Browse files Browse the repository at this point in the history
Thanks to tip form ARM folks and Russell King.

If flush_dcache_page() occurs on a swapin it will have a mapping
and we'll try to defer the flush by setting the dirty bit.

But when it hits update_dcache_page() we won't flush because the
page won't have a mapping any more.  So remove the mapping
requirement in flush_dcache().

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 12, 2009
1 parent de23cf3 commit 1a78ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static void flush_dcache(unsigned long pfn)
struct page *page;

page = pfn_to_page(pfn);
if (page && page_mapping(page)) {
if (page) {
unsigned long pg_flags;

pg_flags = page->flags;
Expand Down

0 comments on commit 1a78ced

Please sign in to comment.