Message ID | 20210727193511.lcvC7oH36%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-call-flush_dcache_page-in-memcpy_to_page-and-memzero_page.patch removed from -mm tree | expand |
--- a/include/linux/highmem.h~mm-call-flush_dcache_page-in-memcpy_to_page-and-memzero_page +++ a/include/linux/highmem.h @@ -318,6 +318,7 @@ static inline void memcpy_to_page(struct VM_BUG_ON(offset + len > PAGE_SIZE); memcpy(to + offset, from, len); + flush_dcache_page(page); kunmap_local(to); } @@ -325,6 +326,7 @@ static inline void memzero_page(struct p { char *addr = kmap_atomic(page); memset(addr + offset, 0, len); + flush_dcache_page(page); kunmap_atomic(addr); }