Thread (3 messages) 3 messages, 2 authors, 2020-05-28

Cache flush issue with page_mapping_file() and swap back shmem page ?

From: Jerome Glisse <hidden>
Date: 2020-05-28 00:20:54
Also in: linux-arm-kernel, linux-mips, linux-mm, lkml, sparclinux

So any arch code which uses page_mapping_file() might get the wrong
answer, this function will return NULL for a swap backed page which
can be a shmem pages. But shmem pages can still be shared among
multiple process (and possibly at different virtual addresses if
mremap was use).

Attached is a patch that changes page_mapping_file() to return the
shmem mapping for swap backed shmem page. I have not tested it (no
way for me to test all those architecture) and i spotted this while
working on something else. So i hope someone can take a closer look.

Cheers,
Jérôme

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help