Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -6
+1 -6
include/crypto/scatterwalk.h
··· 81 81 struct page *page; 82 82 83 83 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); 84 - /* Test ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE first as 85 - * PageSlab cannot be optimised away per se due to 86 - * use of volatile pointer. 87 - */ 88 - if (ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE && !PageSlab(page)) 89 - flush_dcache_page(page); 84 + flush_dcache_page(page); 90 85 } 91 86 92 87 if (more && walk->offset >= walk->sg->offset + walk->sg->length)