diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 71e5039d940dcbbff29ca51a76767e1b4850153e..76ad35df3b1eea696b16f8dba988f2e9f482e444 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -1525,6 +1525,8 @@ static int pagemap_pmd_range(pmd_t *pmdp, unsigned long addr, unsigned long end, } #endif + if (page && !PageAnon(page)) + flags |= PM_FILE; if (page && !migration && page_mapcount(page) == 1) flags |= PM_MMAP_EXCLUSIVE;