summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2021-06-24 08:32:15 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-06-28 05:28:08 +0200
commitb0d2193ba643ec8246e7a194e336c71018b8e6f3 (patch)
tree22350078017b6572ee1a98df0701d20358a58d7d /include
parentcrypto: qat - ratelimit invalid ioctl message and print the invalid cmd (diff)
downloadlinux-b0d2193ba643ec8246e7a194e336c71018b8e6f3.tar.xz
linux-b0d2193ba643ec8246e7a194e336c71018b8e6f3.zip
crypto: scatterwalk - Remove obsolete PageSlab check
As it is now legal to call flush_dcache_page on slab pages we no longer need to do the check in the Crypto API. Reported-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/scatterwalk.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h
index c837d0775474..7af08174a721 100644
--- a/include/crypto/scatterwalk.h
+++ b/include/crypto/scatterwalk.h
@@ -81,12 +81,7 @@ static inline void scatterwalk_pagedone(struct scatter_walk *walk, int out,
struct page *page;
page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT);
- /* Test ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE first as
- * PageSlab cannot be optimised away per se due to
- * use of volatile pointer.
- */
- if (ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE && !PageSlab(page))
- flush_dcache_page(page);
+ flush_dcache_page(page);
}
if (more && walk->offset >= walk->sg->offset + walk->sg->length)