crypto: scatterwalk - Avoid flush_dcache_page on slab pages
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Feb 2009 03:22:14 +0000 (14:22 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Feb 2009 03:30:25 +0000 (14:30 +1100)
commit4f3e797ad07d52d34983354a77b365dfcd48c1b4
tree0c45ac9add06b72dac5e1da1c0023aa019ff2ac2
parent412e87ae5d852bc3d836f475c19d954b3324363d
crypto: scatterwalk - Avoid flush_dcache_page on slab pages

It's illegal to call flush_dcache_page on slab pages on a number
of architectures.  So this patch avoids doing so if PageSlab is
true.

In future we can move the flush_dcache_page call to those page
cache users that actually need it.

Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scatterwalk.c