]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Fix D-cache flushing on swapin from SW devices.
authorDavid S. Miller <davem@davemloft.net>
Mon, 12 Oct 2009 10:20:57 +0000 (03:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Oct 2009 10:20:57 +0000 (03:20 -0700)
commitb31acb89ca1792f6e109788406a3b97e82c62b4e
tree4069a8517b0f2f4255e8af2f60000e791268303c
parentd813d108be0015963384b06dd74d6a9320e5f2df
sparc64: Fix D-cache flushing on swapin from SW devices.

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>
arch/sparc/mm/init_64.c