Message ID | 20220403053957.10770-3-songmuchun@bytedance.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e583b5c472bd23d450e06f148dc1f37be74f7666 |
Headers | show |
Series | Fix some bugs related to ramp and dax | expand |
diff --git a/fs/dax.c b/fs/dax.c index 67a08a32fccb..a372304c9695 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -845,7 +845,8 @@ static void dax_entry_mkclean(struct address_space *mapping, pgoff_t index, if (!pmd_dirty(*pmdp) && !pmd_write(*pmdp)) goto unlock_pmd; - flush_cache_page(vma, address, pfn); + flush_cache_range(vma, address, + address + HPAGE_PMD_SIZE); pmd = pmdp_invalidate(vma, address, pmdp); pmd = pmd_wrprotect(pmd); pmd = pmd_mkclean(pmd);