projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/ksm: use folio in write_protect_page
[linux-block.git]
/
mm
/
memory.c
diff --git
a/mm/memory.c
b/mm/memory.c
index 36ba94eae853c18e4afae476f56ad4db699b9c07..d592128d7f7d5e879eb460efaa5ca75bab4b6727 100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-1502,8
+1502,7
@@
static __always_inline void zap_present_folio_ptes(struct mmu_gather *tlb,
if (!delay_rmap) {
folio_remove_rmap_ptes(folio, page, nr, vma);
- /* Only sanity-check the first page in a batch. */
- if (unlikely(page_mapcount(page) < 0))
+ if (unlikely(folio_mapcount(folio) < 0))
print_bad_pte(vma, addr, ptent, page);
}