mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 14:56:48 +07:00
sh: Add a PG_dcache_dirty sanity check in kmap_coherent().
This plugs in a BUG_ON() in kmap_coherent() for PG_dcache_dirty pages to catch when things go horribly wrong. Copied from the MIPS implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
3ed6e12939
commit
700487c158
@ -37,6 +37,8 @@ static inline void *kmap_coherent(struct page *page, unsigned long addr)
|
||||
unsigned long vaddr, flags;
|
||||
pte_t pte;
|
||||
|
||||
BUG_ON(test_bit(PG_dcache_dirty, &page->flags));
|
||||
|
||||
inc_preempt_count();
|
||||
|
||||
idx = (addr & current_cpu_data.dcache.alias_mask) >> PAGE_SHIFT;
|
||||
|
Loading…
Reference in New Issue
Block a user